From 7bc4a6025b5e87457504fedf9e5324ac530f6547 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 10 Jun 2012 10:16:16 -0400 Subject: [PATCH] Bug 5910: [SIGNED-OFF] only add "All authority types" for UNIMARC UNIMARC is the only marcflavour that does not already have an option for searching all authority types, so check that the marcflavour is UNIMARC before displaying the additional "All authority types" option. Signed-off-by: Jonathan Druart Signed-off-by: Paul Poulain --- authorities/authorities-home.pl | 2 ++ authorities/detail.pl | 2 ++ .../intranet-tmpl/prog/en/includes/authorities-search.inc | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index e4eae84749..d687c78033 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -177,5 +177,7 @@ $template->param( authtypesloop => \@authtypesloop, ); +$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour"); + # Print the page output_html_with_http_headers $query, $cookie, $template->output; diff --git a/authorities/detail.pl b/authorities/detail.pl index a7d7d8f218..458746c862 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -241,5 +241,7 @@ $template->param(authid => $authid, authtypetext => $authtypes->{$authtypecode}{'authtypetext'}, authtypesloop => \@authtypesloop, ); + +$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour"); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc index 895b6cd94a..ca6f4af696 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc @@ -8,7 +8,7 @@