From 09a7d37d53a87e35f2151e00200995ab3dfa3896 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 --- 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 4e7e25f613..039b63c864 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt @@ -30,7 +30,7 @@ to add to Batch [% batch_id | html %] [% 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 427f737679..8cbc5a9f49 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -82,9 +82,9 @@ [% IF ( expanded_options ) %] [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] - + [% ELSE %] - + [% END %] -- 2.20.1