[Koha-bugs] [Bug 21453] blinddetail-biblio-search.pl/.tt use hardcoded subfield values for MARC21

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 5 17:43:21 CEST 2018


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

--- Comment #4 from Andreas Roussos <arouss1980 at gmail.com> ---
Created attachment 80140
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80140&action=edit
Bug 21453: blinddetail-biblio-search.pl/.tt use hardcoded subfield values for
MARC21

When using the authority finder plugin from within the Authorities
module, you can pick an entry from the 'Special relationship:'
dropdown menu in order to set the relationship between authorities.

On a UNIMARC setup, clicking on 'Choose' will not populate subfields
$3 (Authority Record Number) and $5 (Tracing Control), which are
required for authority linking and hierarchies to work properly. In
MARC21 installs, however, 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 'marcflavour' syspref,
and then setting the correct subfields to copy the authority data to.

Test plan:

0) [PREREQUISITES in order for the authority finder plugin to come up]
   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) MARC21/NORMARC setup: all subfields are populated correctly.
   UNIMARC setup: notice how subfields $3 and $5 are not populated.

6) Apply the patch.

7) Repeat steps 3) and 4) above.
   MARC21/NORMARC: all subfields are populated correctly, as before.
   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 biblio editor, find a MARC tag that allows
   you to search for an authority, and link it.
   MARC21/NORMARC: all authority data is copied over (auth id in $9).
   UNIMARC: all authority data is copied over (auth id in $9).

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


More information about the Koha-bugs mailing list