https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43969

--- Comment #1 from Adolfo Rodríguez Taboada <[email protected]> ---
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 <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to