https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21453
--- Comment #7 from Andreas Roussos <[email protected]> --- Created attachment 180268 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180268&action=edit Bug 21453: copy data to the correct subfields when linking authorities with authorities When using the authority finder plugin from within Koha's Authorities module, you can pick an entry from the 'Special relationship:' dropdown menu in order to set the relationship between authorities. The problem is that in UNIMARC setups, when you click on 'Choose' to select an authority, it does not populate subfields $3 (Authority Record Number) and $5 (Tracing Control), which are required for authority linking and authority hierarchies to work properly. In MARC21, all authority data is correctly copied over. This is due to hardcoded subfield values which are MARC21-specific in blinddetail-biblio-search{.pl,.tt}. This patch fixes that by checking the value of the 'marcflavour' syspref, and then setting the correct subfields to copy the authority data to. Test plan (involves testing in both a MARC21 and a UNIMARC instance): 0) [PREREQUISITES in order for the authority finder plugin to come up when testing in a UNIMARC instance] a) You must have at least one authority type besides the 'Default'. b) View the MARC structure of the 'Default' auth type, then click on 'Actions->Subfields' for tag 500; click on 'Edit subfields'. Select the subfield 'a' tab, then pick an auth type from the 'Thesaurus:' dropdown menu; click 'Save changes' at the top. 1) In the Staff client, go to Authorities, then click 'New Authority' and pick the 'Default' authority type (or edit an existing auth). 2) When the authority editor comes up, go to tag 500 and expand it. 3) Click on the ellipsis (...) next to subfield $a. 4) When the authority finder comes up, search for an authority, pick a relator code from the 'Special relationship:' dropdown, and then click on the 'Choose' button for one of the authorities you found. 5) In MARC21: all subfields are populated correctly. In UNIMARC: notice how subfields $3 and $5 are *not* populated. 6) Apply the patch. 7) Repeat steps 3) and 4) above. In MARC21: all subfields are populated correctly, as before. In UNIMARC: both the relator code and the authority id are copied over along with any other subfields that may exist. 8) To ensure that authority linking in the Cataloging module works as before, launch the bibliographic record editor, find a MARC tag that allows you to search for an authority, and link it. In MARC21: all authority data is copied over (authid in $9). In UNIMARC: all authority data is copied over (authid in $9). -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
