[Bug 38252] New: Zebra's Record-control-number does not include $w for 760, 762, 765, 767, 786, 788
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38252 Bug ID: 38252 Summary: Zebra's Record-control-number does not include $w for 760, 762, 765, 767, 786, 788 Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Zebra Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org INCLUDED 770 772 773 774 775 776 777 780 785 787 NOT INCLUDED 760 762 765 767 786 788 -- 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=38252 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor -- 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=38252 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35330 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35330 [Bug 35330] Split rcn index to allow for more specific searches -- 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=38252 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=44064 -- 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=38252 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211474 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211474&action=edit Bug 38252: Index the $w of 760, 762, 765, 767, 786 and 788 in Record-control-number The Record-control-number (rcn) index is meant to hold the $w of the linking entry fields, so that the records that link to a record can be searched for. It did not hold the $w of 760, 762, 765, 767, 786 and 788, although it holds the $w of 770, 772 to 777, 780, 785, 787, 800, 810, 811 and 830. Index them too, for Zebra and for Elasticsearch, and add an atomic update for installations that already have the Elasticsearch mappings. Add a test that checks that Zebra and Elasticsearch index the same fields, and that the generated Zebra stylesheet is up to date with the index definitions it is generated from. Existing installations need to reindex. With Zebra, copy biblio-zebra-indexdefs.xsl to the Zebra configuration first. To test: 1. Create a record with a 001 (for example T1) 2. Create records that have a 760, 762, 765, 767, 786 or 788 with $w T1 3. Search for rcn:T1 in the staff interface => The records with 760, 762, 765, 767, 786 and 788 are not found 4. Apply the patch With Elasticsearch run $ perl installer/data/mysql/updatedatabase.pl With Zebra copy etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl to your Zebra configuration 5. Reindex 6. Search for rcn:T1 again => All the records are found 7. Run $ prove t/Koha_SearchEngine_rcn.t => SUCCESS: Tests pass! 8. Sign 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=38252 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk Status|NEW |Needs Signoff --- Comment #2 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Hi Marcel, Thanks for filing this. I have attached a patch that indexes the $w of 760, 762, 765, 767, 786 and 788 in Record-control-number, for Zebra and for Elasticsearch. There is an atomic update for existing Elasticsearch installations, and a test that checks that Zebra and Elasticsearch index the same linking fields and that the generated Zebra stylesheet is up to date with biblio-koha-indexdefs.xml. I checked it on Elasticsearch 8 with records linking to one record through 13 different linking fields: rcn:T1 found 7 of them before the patch, and all 13 after the atomic update and a reindex. I did not run the Zebra part against a Zebra instance, but it is generated from the index definitions and the test checks that. Existing installations need to reindex (and with Zebra copy biblio-zebra-indexdefs.xsl to their configuration first), so this needs a release note. One thing to be aware of: the components search also uses rcn (limited to bib-level a and b), so a component record that links to a host through 765 or 767 would now match too. That is rare, and I think the right answer is a narrower index for the host link, as discussed on bug 35330. I am setting this to Needs Signoff. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org