[Bug 43969] New: Remove unused item count and call number code from marc21_linking_section.pl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43969 Bug ID: 43969 Summary: Remove unused item count and call number code from marc21_linking_section.pl Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: adolfo.rodriguez@xercode.es QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- In cataloguing/value_builder/marc21_linking_section.pl, the do_search operation computes two extra values for each search result: - totitem, the number of items. It checks $rechash->{itembumber} (a typo for itemnumber), so the count is always 0. - CN, a list of "holding library ( call number )" pairs. Neither value is used: marc21_linking_section.tt only shows the title, author, publisher, place, pages and notes of each result. The template has never displayed them (the code seems to come from unimarc_field_4XX.pl, whose template does show totitem). Fixing the typo would not change anything visible, so the block can simply be removed. -- 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=43969 Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> 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=43969 --- Comment #1 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Created attachment 210117 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210117&action=edit Bug 43969: Remove unused item count and call number code from marc21_linking_section.pl The do_search operation of the marc21_linking_section.pl value builder computed totitem (item count) and CN (holding library and call number) for each result. The item count checked $rechash->{itembumber}, a typo for itemnumber, so it was always 0. Neither value is used by marc21_linking_section.tt, so this patch removes the code instead of fixing the typo. Steps to follow: 1. Go to Administration > MARC bibliographic frameworks > Default framework > 773 > Edit subfields > w, and set Plugin to marc21_linking_section.pl. Make sure the subfield is visible in the editor. 2. Go to Cataloging > New record, click the plugin icon next to 773$w and search for a common word (ideally matching records with items). 3. Note the results (title, author, publisher...), go to the next page, then choose a record and check that 773 is filled in. 4. Apply the patch. 5. Repeat steps 2 and 3: the results and the filled-in values are the same, and there are no new warnings in the logs. 6. Check that the code is gone: git grep -n "itembumber\|totitem" cataloguing/value_builder/marc21_linking_section.pl returns nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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=43969 Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |adolfo.rodriguez@xercode.es |ity.org | -- 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