From edbf3ea4dc0b2f72d01be0e0a999f22007acb0ae Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sat, 13 Oct 2012 10:36:37 +0200 Subject: [PATCH] Bug 8916: Hide Curriculum index in advanced search if marcflavor = unimarc This patch hides curriculum option value in koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc and koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt if marcflavor = UNIMARC To test - set marcflavour to UNIMARC, this option should be hidden in the index list in opac and staff interface advanced search - set marcflavour to MARC21, this option should be visible, as before Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc | 4 +++- koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 09e748b..8102201 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc @@ -26,7 +26,9 @@ - + [% IF (marcflavour != 'UNIMARC' ) %] + + [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt index 515d954..55eea18 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt @@ -92,7 +92,9 @@ [% END %] [% IF ( expanded_options ) %] + [% IF (marcflavour != 'UNIMARC') %] + [% END %] [% END %] -- 1.7.10.4