Bug 24269: Adjust C4::Heading to generate headings from auth tags
commit82a84bfbde7e46a67b02d7fbb8a70ade3972fc41
authorNick Clemens <nick@bywatersolutions.com>
Tue, 14 Jan 2020 13:00:03 +0000 (14 13:00 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 13 Mar 2020 00:39:55 +0000 (13 00:39 +0000)
treeb09cafacdccc227a483c72ce70617c480f415066
parent48f4383bda8c9236ea130280cfb5e5cbf766a7e5
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>
Signed-off-by: Joy Nelson <joy@bywatersolutions.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