From e0cd4f898ffebca7d4280f438224fa5fe5375dd6 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 Signed-off-by: Paul Poulain --- 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 09e748b556..8102201e92 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 515d95408a..55eea1825b 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 %]