[Koha-bugs] [Bug 11297] Add support for custom PQF attributes for Z39.50 server searches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 2 01:29:47 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11297

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #50420|0                           |1
        is obsolete|                            |
  Attachment #59448|0                           |1
        is obsolete|                            |

--- Comment #43 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 62938
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62938&action=edit
[SIGNED OFF] Bug 11297 - Add support for custom PQF attributes for Z39.50
server searches.

Adds the "Attributes" field to z3950 servers.

The feature here is not quite de same.

In the old patches, the attributes were applied to individual query parts if
the part already contains "@attr" and the additionnal attribute is not already
in the query part.

Here, the content of the new field is prepended to all PQF queries sent to the
server.

This new way of doing is simpler and works for the sponsor.

Test plan:
 I) Apply the patch
II) Run updatedatabase.pl

1) Add a new z3950 server with the following parameters:
Hostname : catalogue.banq.qc.ca
Port     : 210
Database : IRIS
Syntax   : Marc21

2) Perform a z3950 search on that server.
    Keyword (Any) : egypt
2.1) Nothing Found.

3) Add attributes on the server administration page
    @attr 4=1

4) Perform the same z3950 search
4.1) A lot of results

        modified:   C4/Breeding.pm
        modified:   Koha/Schema/Result/Z3950server.pm
        modified:   admin/z3950servers.pl
        new file:  
installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.sql
        modified:   installer/data/mysql/kohastructure.sql
        modified:  
koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt

Followed test plan, works as expected.
Signed-off-by: Marc Véron <veron at veron.ch>

New sign-off, works as expected.
Signed-off-by: Marc Véron <veron at veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list