]> git.koha-community.org Git - koha.git/commit
Bug 28513: Fix analytics search links so they don't match unrelated biblios
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Fri, 4 Jun 2021 11:06:53 +0000 (14:06 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 8 Jul 2021 00:49:13 +0000 (14:49 -1000)
commita4dfdb794de1856105c75a8812546771909210c8
treea62f43d9a3087a21101005a215d82ec2f0cc31d3
parentc94e306cc0269bcaaf93b384e5cf5bf0581725c7
Bug 28513: Fix analytics search links so they don't match unrelated biblios

At least when using Searchengine=Elasticsearch what happened was that
without () parenthese included the search for Host-item field was done
only to the first token, the subsequent ones matched any
fields. Adding the parentheses restrict the search to Host-item search
field only.

To test:
 1) Set Searchengine = elasticsearch
 2) Make a biblio with 245a = "biológica paranaense." and 773a = "Acta"
 3) Go to a biblio with 245a = "Acta biológica paranaense" (in
 kohadevbox or create one if you need).
 4) Notice that the "Acta biológica paranaense" biblio's detail page link "Show
 analytics" takes to the "biológica paranaense" incorrectly just
 because the 773a has "Acta" and the words "biológica" and "paranaense"
 appear elsewhere in the biblio.
 5) Apply patch and notice the link is now not created at all

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit cfe712367943da16e00ea0bee35b75d31d4f943c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
catalogue/detail.pl
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl
opac/opac-detail.pl