From 2f4319b8905acc615b1ee77234b0c42f90f066bf Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 30 Jun 2010 21:55:39 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 5979 : OPAC : using OPACISBD systempreference to display link The OPACISBD system preference is used in order to be able to have one ISBD for OPAC another one for intranet. But the link ISBD at OPAC was depending on the presence or absence of value in ISBD which is for intranet. This patch fixes the behaviour to depend on the correct system preference at OPAC Signed-off-by: Katrin Fischer --- opac/opac-MARCdetail.pl | 4 ++-- opac/opac-detail.pl | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 2d9dc25..c2f4075 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -277,8 +277,8 @@ foreach my $subfield_code ( keys(%witness) ) { push( @header_value_loop, \%header_value ); } -if(C4::Context->preference("ISBD")) { - $template->param(ISBD => 1); +if ( C4::Context->preference("OPACISBD") ) { + $template->param( ISBD => 1 ); } #Export options diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index eaad3e2..3fe30ff 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -685,9 +685,8 @@ foreach ( @$reviews ) { } } - -if(C4::Context->preference("ISBD")) { - $template->param(ISBD => 1); +if ( C4::Context->preference("OPACISBD") ) { + $template->param( ISBD => 1 ); } $template->param( -- 1.7.9.5