[Bug 27198] New: Sync marc21-retrieval-info-auth-dom.xml with retrieval-info-auth-dom.xml
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Bug ID: 27198 Summary: Sync marc21-retrieval-info-auth-dom.xml with retrieval-info-auth-dom.xml Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Zebra Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au ./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 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor Assignee|koha-bugs@lists.koha-commun |dcook@prosentient.com.au |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- 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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Created attachment 114319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114319&action=edit 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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Academy --- Comment #3 from David Cook <dcook@prosentient.com.au> --- Listing this one as Academy as it's pretty straight-forward. Happy to help people with this one too. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Victoria Faafia <vfaafia29@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vfaafia29@gmail.com --- Comment #4 from Victoria Faafia <vfaafia29@gmail.com> --- Can you please provide a test plan? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #5 from David Cook <dcook@prosentient.com.au> --- (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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Eden <eden.bacani@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eden.bacani@gmail.com --- Comment #6 from Eden <eden.bacani@gmail.com> --- Followed the test plan but an error kept recurring even after applying patch. Is there a step missing such as rebuilding zebra etc? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- (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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #8 from David Nind <david@davidnind.com> --- Hi David. I had a go at testing. Test plan: 1. yaz-client unix:/var/run/koha/kohadev/authoritysocket 2. Enter these commands (see comment #1): . 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. Stop and restart zebra (no need to rebuild the Zebra index): . koha-zebra --stop kohadev . pkill zebrasrv . koha-zebra --start kohadev 6. Repeat commands in step 2. 7. Result from show 1 = XML output: 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 I still get the results as per step 3. The only thing I noticed is that the version information is different when you connect - 2.0.59 instead of 4.2.30: root@kohadevbox:koha(bz27198)$ 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: 2.0.59/5.27.1 872b6f92a024bb53bc1c11dfeccd47f065f98238 Options: search present delSet triggerResourceCtrl scan sort extendedServices namedResultSets Elapsed: 0.002171 Z> I am using koha-testing-docker. David -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- Hmm interesting. Happy for you to mark this as Failed QA. I'm probably not going to review it any time soon, to be honest. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dcook@prosentient.com.au |koha-bugs@lists.koha-commun | |ity.org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #10 from David Cook <dcook@prosentient.com.au> --- Oh man... looking back on this and it's so obvious what I was missing in the test plan. I made the assumption that the tester had copied the file. After applying the patch, you'll need to do the following: cp debian/templates/marc21-retrieval-info-auth-dom.xml /etc/koha/marc21-retrieval-info-auth-dom.xml -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114319|0 |1 is obsolete| | --- Comment #11 from David Nind <david@davidnind.com> --- Created attachment 163664 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163664&action=edit 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. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #163664|0 |1 is obsolete| | --- Comment #12 from David Nind <david@davidnind.com> --- Created attachment 163665 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163665&action=edit 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 <record xmlns="http://www.indexdata.com/zebra/"> <snippet name="Any" type="w">Gontarski, S. <s>E</s></snippet> </record>nextResultSetPosition = 2 Elapsed: 0.013929 Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This fixes the syntax in release notes| |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-retri | |eval.html | | | |These are very | |useful when troubleshooting | |issues with authority | |records in Zebra. Assignee|koha-bugs@lists.koha-commun |dcook@prosentient.com.au |ity.org | --- Comment #13 from David Nind <david@davidnind.com> --- I have: 1. Amended the patch to include the test plan 2. Changed the assignee -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #163665|0 |1 is obsolete| | --- Comment #14 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 164177 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164177&action=edit 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 <record xmlns="http://www.indexdata.com/zebra/"> <snippet name="Any" type="w">Gontarski, S. <s>E</s></snippet> </record>nextResultSetPosition = 2 Elapsed: 0.013929 Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |24.05.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 --- Comment #15 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.05! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Pushed to stable Version(s)|24.05.00 |24.05.00,23.11.06 released in| | --- Comment #16 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to 23.11.x for 23.11.06 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Version(s)|24.05.00,23.11.06 |24.05.00,23.11.06,23.05.12 released in| | Status|Pushed to stable |Pushed to oldstable --- Comment #17 from Lucas Gass <lucas@bywatersolutions.com> --- Backported to 23.05.x for upcoming 23.05.12 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27198 Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Pushed to oldstable |RESOLVED CC| |wainuiwitikapark@catalyst.n | |et.nz --- Comment #18 from Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> --- Not backporting to 22.11 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org