From eea5f283b27dffd31a92d4f00c0545348205f64f Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 11 Dec 2020 04:42:39 +0000 Subject: [PATCH] Bug 27198: Fix syntax in marc21-retrieval-info-auth-dom.xml This patch fixes the syntax in marc21-retrieval-info-auth-dom.xml, so that one can use the Zebra special retrieval elements documented at https://software.indexdata.com/zebra/doc/special-retrieval.html These are very useful when troubleshooting issues with authority records in Zebra. Test plan (using KTD): 1. yaz-client unix:/var/run/koha/kohadev/authoritysocket 2. Enter these commands: . base authorities . format xml . elements zebra::snippet . find e . show 1 3. Result = diagnostic message: Diagnostic message(s) from database: [25] Specified element set name not valid for specified database -- v2 addinfo 'zebra::snippet' 4. Apply the patch 5. Copy updated file: sudo cp debian/templates/marc21-retrieval-info-auth-dom.xml /etc/koha/marc21-retrieval-info-auth-dom.xml 6. Stop and restart zebra (no need to rebuild the Zebra index): . sudo koha-zebra --stop kohadev . sudo pkill zebrasrv . sudo koha-zebra --start kohadev 7. Repeat commands in step 2. 8. Result from show 1 = XML output: Sent presentRequest (1+1). Records: 1 Record type: XML Gontarski, S. E nextResultSetPosition = 2 Elapsed: 0.013929 Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit 10d5f6ef379768663cd6b26a81315ce44b65520d) Signed-off-by: Fridolin Somers (cherry picked from commit f129c009a40f9af4f4d9d984058e99829bc21a0d) Signed-off-by: Lucas Gass --- debian/templates/marc21-retrieval-info-auth-dom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/templates/marc21-retrieval-info-auth-dom.xml b/debian/templates/marc21-retrieval-info-auth-dom.xml index 7e45f3873c..e2b608c320 100644 --- a/debian/templates/marc21-retrieval-info-auth-dom.xml +++ b/debian/templates/marc21-retrieval-info-auth-dom.xml @@ -14,6 +14,7 @@ outputcharset="utf-8"/> + -- 2.39.5