[Koha-bugs] [Bug 30024] link_bibs_to_authorities.pl relies on CatalogModuleRelink

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 5 19:19:03 CEST 2023


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

Phil Ringnalda <phil at chetcolibrary.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phil at chetcolibrary.org

--- Comment #6 from Phil Ringnalda <phil at chetcolibrary.org> ---
Testing notes (with ktd):

You can't just run link_bibs_to_authorities.pl, since bib 369 is unparseable
and crashes it. Instead you have to find a single bib to run against with,
e.g., --bib-limit=biblionumber=16

You can't relink anything but 6xx headings without bug 33277

Test plan:

1. Set the preferences AutoLinkBiblios and CatalogModuleRelink to "Don't" so
you can cause something to be mislinked, set LinkerRelink to "Do" (those are
all default values) and set EnableAdvancedCatalogingEditor to "Enable."
2. Load http://127.0.0.1:8081/cgi-bin/koha/cataloguing/editor.pl#catalog/16 and
change subfield 9 for one of the subjects to a recognizably wrong value like
999999 and save, ensuring that it didn't get automatically relinked
3. misc/link_bibs_to_authorities.pl --bib-limit=biblionumber=16 should list
"Number of bibs modified: 0" because CatalogModuleRelink is still "Don't"
4. Switch CatalogModuleRelink to "Do", misc/link_bibs_to_authorities.pl
--bib-limit=biblionumber=16 should list "Number of bibs modified: 1" and
reloading http://127.0.0.1:8081/cgi-bin/koha/cataloguing/editor.pl#catalog/16
should show the 999999 replaced with the correct authid
5. Apply patch, restart
6. Redo Step 1 and 2.
7. misc/link_bibs_to_authorities.pl --bib-limit=biblionumber=16 should list
"Number of bibs modified: 1" and reloading
http://127.0.0.1:8081/cgi-bin/koha/cataloguing/editor.pl#catalog/16 should show
the 999999 replaced with the correct authid when you have CatalogModuleRelink
at "Don't" and LinkerRelink at "Do".

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list