[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
Sat Sep 29 11:17:03 CEST 2018


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

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

When using the authority finder plugin, you can pick an entry from the
'Special relationship:' dropdown menu in order to set the relationship
between authorities. If you're on a UNIMARC setup and click one of the
'Choose' buttons for the search results, only subfield $a (i.e. 'Entry
Element') will be copied over to the authority tag you are editing. In
MARC21 installs, however, all the authority data plus the authority id
are correctly copied over. This is due to hardcoded subfield values in
blinddetail-biblio-search{.pl,.tt} which are MARC21-specific.

This patch fixes that by checking the 'marcflavour' system preference
and selecting the correct subfields to copy the authority data to.

Test plan (steps 0-4 are common to both UNIMARC and MARC21 setups):

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'.
   c) 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.
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: all subfields are populated correctly.
   UNIMARC: notice how subfields $3 and $5 are not populated.
6) Apply the patch (you may have to restart Plack, too).
7) Repeat steps 3) and 4) above.
    MARC21: all subfields are populated correctly, same as before.
   UNIMARC: both the relator code and the authority id are copied
            over along with any other subfields that may exist.

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


More information about the Koha-bugs mailing list