Bug 24269: Adjust C4::Heading to generate headings from auth tags
authorNick Clemens <nick@bywatersolutions.com>
Tue, 14 Jan 2020 13:00:03 +0000 (13:00 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Feb 2020 13:33:32 +0000 (13:33 +0000)
commitd4783f244b9b8bfe786849c8bc5f46489999a7af
tree72682e7ef3c02229db6ca6318a1919b9dc2e1214
parent907914624248890a3b50f407618d80e57c16b698
Bug 24269: Adjust C4::Heading to generate headings from auth tags

To test:
1 - Be using Elasticsearch
2 - Check that field 150 is mapped to 'Match-heading' or add it (the subfields don't matter)
3 - Add a topic term authority record like "150 $aCats$vFiction"
4 - Add a 650 with $aCats and $vFiction and  $e depicted to a bibliographic record
5 - Run the linker for the bib
    perl misc/link_bibs_to_authorities.pl --bib-limit "biblionumber=89" -v
6 - Confirm the record is not correctly linked to the record
7 - Apply patch
8 - Reindex authorities for ES
    perl misc/search_tools/rebuild_elasticsearch.pl -v -d -a
9 - Run the linker and confirm record is correctly linked
    perl misc/link_bibs_to_authorities.pl --bib-limit "biblionumber=89" -v

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Biblio.pm
C4/Heading.pm
C4/Heading/MARC21.pm
C4/Heading/UNIMARC.pm
C4/Linker/Default.pm
Koha/SearchEngine/Elasticsearch.pm
t/Koha/SearchEngine/Elasticsearch.t
t/db_dependent/Heading.t
t/db_dependent/Heading_MARC21.t
t/db_dependent/Linker_Default.t
t/db_dependent/Linker_FirstMatch.t