Bug 8280: Add koha set and item fields to pqf.properties

This patch adds a 'koha' set to the pqf properties and maps some basic
koha fields to all for searchign

To test:
1 - Apply patch
2 - cp etc/z3950/pqf.properties /etc/koha/sites/kohadev/z3950/pqf.properties
3 - sudo koha-z3950-responder --restart kohadev
4 - Test a search:
    curl -XGET "http://localhost:2100/biblios?version=1.1&operation=searchRetrieve&query=koha.itemtype=BK&maximumRecords=60&recordSchema=marcxml"
5 - Test other fields added:
    koha.withdrawn
    koha.lost
    koha.classification-source
    koha.materials-specified
    koha.damaged
    koha.restricted
    koha.cn-sort
    koha.notforloan
    koha.ccode
    koha.itemnumber
    koha.homebranch
    koha.holdingbranch
    koha.location
    koha.barcode
    koha.onloan
    koha.itemtype

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Copied the changes from z3950 to zebradb too.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2021-06-11 12:15:35 +00:00 committed by Jonathan Druart
parent 303518c6f3
commit 701e2877ee
2 changed files with 40 additions and 0 deletions

View file

@ -15,6 +15,7 @@ set.cql = info:srw/cql-context-set/1/cql-v1.1
set.rec = info:srw/cql-context-set/2/rec-1.0
set.dc = info:srw/cql-context-set/1/dc-v1.1
set.bath = http://zing.z3950.org/cql/bath/2.0/
set.koha = https://wiki.koha-community.org/wiki/Making_more_indexes_searchable_with_Zebra_SRU
# default set (in query)
set = info:srw/cql-context-set/1/dc-v1.1
@ -160,3 +161,22 @@ index.bath.geographicName = 1=58
index.bath.notes = 1=63
index.bath.topicalSubject = 1=1079
index.bath.genreForm = 1=1075
# Koha specific indexes
index.koha.withdrawn = 1=8001
index.koha.lost = 1=8002
index.koha.classification-soruce = 1=8003
index.koha.materials-specified = 1=8004
index.koha.damaged = 1=8005
index.koha.restricted = 1=8006
index.koha.cn-sort = 1=8007
index.koha.notforloan = 1=8008
index.koha.ccode = 1=8009
index.koha.itemnumber = 1=8010
index.koha.homebranch = 1=8011
index.koha.holdingbranch = 1=8012
index.koha.location = 1=8013
index.koha.barcode = 1=8023
index.koha.onloan = 1=8024
index.koha.itemtype = 1=8031

View file

@ -15,6 +15,7 @@ set.cql = info:srw/cql-context-set/1/cql-v1.1
set.rec = info:srw/cql-context-set/2/rec-1.0
set.dc = info:srw/cql-context-set/1/dc-v1.1
set.bath = http://zing.z3950.org/cql/bath/2.0/
set.koha = https://wiki.koha-community.org/wiki/Making_more_indexes_searchable_with_Zebra_SRU
# default set (in query)
set = info:srw/cql-context-set/1/dc-v1.1
@ -160,3 +161,22 @@ index.bath.geographicName = 1=58
index.bath.notes = 1=63
index.bath.topicalSubject = 1=1079
index.bath.genreForm = 1=1075
# Koha specific indexes
index.koha.withdrawn = 1=8001
index.koha.lost = 1=8002
index.koha.classification-soruce = 1=8003
index.koha.materials-specified = 1=8004
index.koha.damaged = 1=8005
index.koha.restricted = 1=8006
index.koha.cn-sort = 1=8007
index.koha.notforloan = 1=8008
index.koha.ccode = 1=8009
index.koha.itemnumber = 1=8010
index.koha.homebranch = 1=8011
index.koha.holdingbranch = 1=8012
index.koha.location = 1=8013
index.koha.barcode = 1=8023
index.koha.onloan = 1=8024
index.koha.itemtype = 1=8031