[Koha-patches] [PATCH] Bug 5979 : OPAC : using OPACISBD systempreference to display link

Chris Cormack chrisc at catalyst.net.nz
Mon Mar 28 23:07:42 CEST 2011


From: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>

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
---
 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 a5c9789..35f0a7f 100755
--- a/opac/opac-MARCdetail.pl
+++ b/opac/opac-MARCdetail.pl
@@ -266,8 +266,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 );
 }
 
 #Search for title in links
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 1015e54..45cc8c2 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -265,9 +265,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.1



More information about the Koha-patches mailing list