From d341326362656853d0f8d371bd7d685b9c4266d7 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 16 May 2018 01:05:07 +0000 Subject: [PATCH] Bug 9968: Fix wrong index for Standard number in advanced and label search 'Standard number' indicates that you can search ISBN, ISSN and other standard numbers, but we are using the wrong index and only get a very limited search for biblionumber instead. This patch changes the index from sn to ident. To test: - Check both staff and OPAC advanced search: - Search for Standard number = ISBN - Search for Standard number = ISSN Both should work. Toggle [Intranet|OPAC]NumbersPreferPhrase system preferences - Check the label creator - Add a new batch - Use 'add items' option and search for Standard number Signed-off-by: Michal Denar Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens (cherry picked from commit 09a7d37d53a87e35f2151e00200995ab3dfa3896) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc index 95d368411a..1aff1a4091 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc @@ -23,9 +23,9 @@ [% IF ( Koha.Preference('IntranetNumbersPreferPhrase') ) %] - + [% ELSE %] - + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt index d9d52357ad..3dade265f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt @@ -32,7 +32,7 @@ to add to Batch [% batch_id %] [% IF idx == 'yr' %] [% ELSE %][% END %] -[% IF idx == 'sn' %] +[% IF idx == 'sn' %] [% ELSE %][% END %] [% IF idx == 'nb' %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index 620d83b2b8..fac244b0f7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -81,9 +81,9 @@ [% IF ( expanded_options ) %] [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] - + [% ELSE %] - + [% END %] -- 2.39.5