Bug 26852: subfield $e missing in X11 definition of MARC21 headings
authorJanusz Kaczmarek <januszop@gmail.com>
Sun, 21 Dec 2014 08:31:47 +0000 (09:31 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Aug 2021 12:05:41 +0000 (08:05 -0400)
commit847f1e8fc3d494f482d12b22afff43b601d189f4
tree6e0c82cbf670ca672b7f38dca0d40ae73f133c92
parent1c38be34a64faaa5011e75423567e6b354adcb2b
Bug 26852: subfield $e missing in X11 definition of MARC21 headings

This patch adds $e to 111 and 611, but removes it from 100 and 110 as it's
used for the relator term there and should not be copied. Same for 111$j.

Test plan:

1. Have a biblio record with, for example, 711 field with a $e subfield.
2. Have two auth records: one with 111 field reflecting the 711 field and second similar but without $e subfield
3. Have LinkerModule set to Default
4. Run link_bibs_to_authorities.pl
5. 711 should remain unlinked since there were two record found by the Default Linker and no one was chosen.

6. Apply the patch.
7. Run link_bibs_to_authorities.pl
8. 711 should be linked now.

Repeat testing in similar fashion for authorities:

9. 100/110 $e
10. 111 $j

NB zebra index definition is OK:
kohaidx:index_match_heading tag="111" subfields="acdefghjklnpqstvxyz" subdivisions="vxyz">
in etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml

Signed-off-by: Sara Brown <sbrown@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Heading/MARC21.pm