./debian/templates/marc21-retrieval-info-auth-dom.xml is out-dated and should be synchronized with ./etc/zebradb/retrieval-info-auth-dom.xml The main issue is that the XML retrieval syntax is wrong which prevents a person from using the Zebra special retrieval elements documented at https://software.indexdata.com/zebra/doc/special-retrieval.html
Before patch: root@kohadevbox:koha(bug27198)$ yaz-client unix:/var/run/koha/kohadev/authoritysocket Connecting...OK. Sent initrequest. Connection accepted by v3 target. ID : 81 Name : Zebra Information Server/GFS/YAZ Version: 4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031 Options: search present delSet triggerResourceCtrl scan sort extendedServices namedResultSets Elapsed: 0.000754 Z> base authorities Z> format xml Z> elements zebra::snippet Z> find e Sent searchRequest. Received SearchResponse. Search was a success. Number of hits: 21, setno 1 SearchResult-1: term=e cnt=21 records returned: 0 Elapsed: 0.002167 Z> show 1 Sent presentRequest (1+1). Diagnostic message(s) from database: [25] Specified element set name not valid for specified database -- v2 addinfo 'zebra::snippet' nextResultSetPosition = 2 Elapsed: 0.000218 Z> exit See you later, alligator. After patch: root@kohadevbox:koha(bug27198)$ yaz-client unix:/var/run/koha/kohadev/authoritysocket Connecting...OK. Sent initrequest. Connection accepted by v3 target. ID : 81 Name : Zebra Information Server/GFS/YAZ Version: 4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031 Options: search present delSet triggerResourceCtrl scan sort extendedServices namedResultSets Elapsed: 0.000840 Z> base authorities Z> format xml Z> elements zebra::snippet Z> find e Sent searchRequest. Received SearchResponse. Search was a success. Number of hits: 21, setno 1 SearchResult-1: term=e cnt=21 records returned: 0 Elapsed: 0.002212 Z> show 1 Sent presentRequest (1+1). Records: 1 Record type: XML <record xmlns="http://www.indexdata.com/zebra/"> <snippet name="Any" type="w">Gontarski, S. <s>E</s></snippet> </record>nextResultSetPosition = 2 Elapsed: 0.013929
Created attachment 114319 [details] [review] 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.
Listing this one as Academy as it's pretty straight-forward. Happy to help people with this one too.
Can you please provide a test plan?
(In reply to Victoria Faafia from comment #4) > Can you please provide a test plan? Ooops I forgot to label it but you should be able to use Comment 1 (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198#c1) as a test plan.
Followed the test plan but an error kept recurring even after applying patch. Is there a step missing such as rebuilding zebra etc?
(In reply to Eden from comment #6) > Followed the test plan but an error kept recurring even after applying > patch. Is there a step missing such as rebuilding zebra etc? Ah, yes. My mistake! Not rebuilding Zebra, but restarting Zebra for sure. - koha-zebra --stop kohadev - pkill zebrasrv - koha-zebra --start kohadev That should do the trick. The pkill zebrasrv is there because koha-zebra --stop kohadev won't work if the zebrasrv process has forked child processes.