setting UNIMARC parameter at the right place

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-30 13:02:50 -05:00 committed by Joshua Ferraro
parent 0234284cc4
commit 3f4816d356

View file

@ -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