setting UNIMARC parameter at the right place
authorPaul POULAIN <paul@koha-fr.org>
Tue, 30 Oct 2007 18:02:50 +0000 (13:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 31 Oct 2007 10:50:21 +0000 (05:50 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
catalogue/search.pl

index ac1cb2e..a3a3e53 100755 (executable)
@@ -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