From 1226d77e01d33e2887ce364b3bb9a82a09692323 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 Content-Type: text/plain; charset=utf-8 '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 --- 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 4e7e25f..039b63c 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 427f737..8cbc5a9 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.1.4