From aa9f59dc15760afa8d3926ba2150ff2911286687 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 --- authorities/authorities-home.pl | 2 ++ authorities/detail.pl | 2 ++ .../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 e4eae84..d687c78 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 d4f2c67..90061cf 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -242,5 +242,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 895b6cd..ca6f4af 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 @@