From 4312899c43cc09f3ed777ca13df5e01a829b779b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 11 Mar 2025 12:03:10 +0000 Subject: [PATCH] Bug 39303: Add audience index to SRU This patch adds a 'koha.audience' entry to the pqf properties for searching To test: 1 - curl -XGET "http://localhost:2100/biblios?version=1.1&operation=searchRetrieve&query=ta=a&maximumRecords=60&recordSchema=marcxml" 2 - Unsupported index 3 - Apply patch 4 - cp etc/z3950/pqf.properties /etc/koha/sites/kohadev/z3950/pqf.properties 5 - sudo koha-z3950-responder --restart kohadev (or restart_all) 6 - Test a search: curl -XGET "http://localhost:2100/biblios?version=1.1&operation=searchRetrieve&query=koha.audience=a&maximumRecords=60&recordSchema=marcxml" 7 - Results! --- etc/z3950/pqf.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/z3950/pqf.properties b/etc/z3950/pqf.properties index ebb2ff1f34a..02abe4f9ec8 100644 --- a/etc/z3950/pqf.properties +++ b/etc/z3950/pqf.properties @@ -180,3 +180,4 @@ index.koha.location = 1=8013 index.koha.barcode = 1=8023 index.koha.onloan = 1=8024 index.koha.itemtype = 1=8031 +index.koha.audience = 1=8822 -- 2.39.5