]> git.koha-community.org Git - koha.git/commit
Bug 34481: Add IncludeSeeAlsoFromInSearches like IncludeSeeFromInSearches
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 4 Aug 2023 20:51:22 +0000 (10:51 -1000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 27 Jun 2024 12:04:49 +0000 (14:04 +0200)
commitcb085034ff2019064fae552d89ff5188fc24c5b6
treebdd67975de027111ee4988fc43e7f90bbb0cc094
parent0877dfd16d0891d0b36a906ced6f8f8e83e2d738
Bug 34481: Add IncludeSeeAlsoFromInSearches like IncludeSeeFromInSearches

Like IncludeSeeFromInSearches adds see from heading in search (4xx),
new system preference IncludeSeeAlsoFromInSearches adds see also from heading (5xx).

Test plan:
Test on both Elasticsearch and Zebra:
1)
1.1) Create an authority record with heading, see from heading 4xx and see also from heading 5xx
1.2) Use this authority in a biblio record
2)
2.1) Set IncludeSeeFromInSearches and IncludeSeeAlsoFromInSearches to "Don't include"
2.3) Rebuild search engine
2.4) Perform a search on heading text => you find the biblio record
2.5) Perform a search on see from heading => you do not find the biblio record
2.6) Perform a search on see also from heading => you do not find the biblio record
3)
3.1) Set IncludeSeeFromInSearches and IncludeSeeAlsoFromInSearches to "Include"
3.2) Rebuild search engine
3.3) Perform a search on heading text => you find the biblio record
3.4) Perform a search on see from heading => you find the biblio record
3.5) Perform a search on see also from heading => you find the biblio record

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Filter/MARC/EmbedSeeFromHeadings.pm
Koha/SearchEngine/Elasticsearch.pm
installer/data/mysql/atomicupdate/bug_34481.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
misc/migration_tools/rebuild_zebra.pl