From 98700320c8936ac3223e4fa840783e885ae06799 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 --- 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 95d3684..1aff1a4 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 d9d5235..3dade26 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 1b7fb90..a48de2a 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.1.4