From 3f4816d35656d83aa53a72d1f782ece7427a6eaa Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 30 Oct 2007 13:02:50 -0500 Subject: [PATCH] setting UNIMARC parameter at the right place Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- catalogue/search.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index ac1cb2e2fa..a3a3e53d3d 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -186,9 +186,6 @@ else { $template_name = 'catalogue/advsearch.tmpl'; $template_type = 'advsearch'; } -if (C4::Context->preference("marcflavour") eq "UNIMARC" ) { - $template->param('UNIMARC' => 1); -} # load the template ($template, $borrowernumber, $cookie) = get_template_and_user({ template_name => $template_name, @@ -198,6 +195,9 @@ if (C4::Context->preference("marcflavour") eq "UNIMARC" ) { flagsrequired => { catalogue => 1 }, } ); +if (C4::Context->preference("marcflavour") eq "UNIMARC" ) { + $template->param('UNIMARC' => 1); +} =head1 BUGS and FIXMEs -- 2.11.0