[Bug 32488] New: add indexes for content, media and carrier type
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32488 Bug ID: 32488 Summary: add indexes for content, media and carrier type Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: mathsabypro@gmail.com QA Contact: testopia@bugs.koha-community.org I don't think there are indexes for those MARC21 fields 336 - Content Type (R) 337 - Media Type (R) 338 - Carrier Type (R) nor for their UNIMARC equivalent 181 - Content form 182 - Media type 183 - type of carrier It could be nice to add those indexes and to add the ability to use them in advanced search -- 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=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|add indexes for content, |Add indexes for content, |media and carrier type |media and carrier type -- 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=32488 Eric Phetteplace <ephetteplace@cca.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ephetteplace@cca.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32488 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au Summary|Add indexes for content, |Add search engine indexes |media and carrier type |for content, media and | |carrier type -- 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=32488 Nick Clemens (kidclamp) <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- 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=32488 --- Comment #1 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 181505 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181505&action=edit Bug 32488: Add RDA content, media, and carrier fields to ES mappings MARC21 -- 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=32488 Nick Clemens (kidclamp) <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com --- Comment #2 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- I didn't add the UNIMARC mappings, they seem to be much more specifically coded, so I am not sure if they can go into the same fields. Possibly we want a bug for each MARC flavour? -- 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=32488 --- Comment #3 from Mathieu Saby <mathsabypro@gmail.com> --- I can take care of a followup for Unimarc in an other bug ;-) -- 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=32488 --- Comment #4 from Mathieu Saby <mathsabypro@gmail.com> --- But you added it only for Elasticsearch. Should we not also add it for Zebra ? -- 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=32488 --- Comment #5 from David Cook <dcook@prosentient.com.au> --- (In reply to Mathieu Saby from comment #4)
But you added it only for Elasticsearch. Should we not also add it for Zebra ?
+1 I think so too -- 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=32488 --- Comment #6 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 182034 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182034&action=edit Bug 32488: Zebra updates and aliases -- 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=32488 --- Comment #7 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- (In reply to David Cook from comment #5)
(In reply to Mathieu Saby from comment #4)
But you added it only for Elasticsearch. Should we not also add it for Zebra ?
+1 I think so too
Added, but I can't make them work, tossing them here for other eyes, been a while since I touched zebra -- 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=32488 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This looks ok, I think. Have you: 1) Copied the files into the right place in ktd? Something like this I believe: sudo cp -i etc/zebradb/biblios/etc/bib1.att /etc/koha/zebradb/biblios/etc/bib1.att sudo cp -i etc/zebradb/ccl.properties /etc/koha/zebradb/ccl.properties sudo cp -i etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl 2) Restarted Zebra? -- 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=32488 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=39418 -- 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=32488 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #9 from David Nind <david@davidnind.com> --- I've tested the Elasticsearch changes, and these work, so happy to sign off. Not sure how to test the Zebra changes. Elasticsearch testing notes (using KTD): 1. Start up KTD with ES7: ktd --es7 up 2. Go to Koha administration > Catalog > Search engine configuration (Elasticsearch) > Bibliohgraphic records 3. Search the page for 336, 337, and 338 4. Note that there are no search field mappings for this tag 5. Apply the patch 6. Either reset everything (reset_all) or from the staff interface (Reset mappings) 7. Note that these new mappings are in place: . content-type-code: 336b . content-type-term: 336a . media-type-code: 337b . media-type-term: 337a . carrier-type-code: 338b . carrier-type-term: 338a -- 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=32488 Miranda Nero <mnero@oslri.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mnero@oslri.net -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=41610 -- 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=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off Patch complexity|--- |Small patch -- 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=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #181505|0 |1 is obsolete| | --- Comment #10 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 191400 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191400&action=edit Bug 32488: Add RDA content, media, and carrier fields to ES mappings MARC21 Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- 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=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #182034|0 |1 is obsolete| | --- Comment #11 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 191401 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191401&action=edit Bug 32488: Zebra updates and aliases Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- 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=32488 --- Comment #12 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 191402 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191402&action=edit Bug 32488: (follow-up) Zebra: Fix mapping of ports to indexes Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- 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=32488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add search engine indexes |Add search engine indexes |for content, media and |for content, media and |carrier type |carrier type (MARC21) Assignee|koha-bugs@lists.koha-commun |nick@bywatersolutions.com |ity.org | --- Comment #13 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- 1) QA checks - pass. 2) Code review - nothing found 3) Testing a) Zebra sudo cp -i etc/zebradb/biblios/etc/bib1.att /etc/koha/zebradb/biblios/etc/bib1.att sudo cp -i etc/zebradb/ccl.properties /etc/koha/zebradb/ccl.properties sudo cp -i etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl sudo koha-zebra --restart kohadev Edit record, add fields, save This gave me some headache since my searches still wouldn't work. The issue is here: +Media-type-term 1=9020 +mett Media-type-term +Media-type-code 1=9021 +metc Media-type-code +att 9020 Media-type-code +att 9021 Media-type-term Ports have been switched. Fixed in a follow-up. b) Elasticsearch Worked nicely. 4) Notes UNIMARC mappings are still missing. I have filed a new bug report: bug 41610 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org