From 05486da41f4627ea83263f0b90a829c9f32b0cd9 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 30 Jun 2010 21:55:39 +0200 Subject: [PATCH] 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 Verified that new system preference is added cleanly and ISBD view can be configured independently for staff and OPAC using OPACISBD and viewISBD system preferences. Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher --- 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 83e97b8ab2..065b5700af 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -300,8 +300,8 @@ for my $subfield_code ( @item_subfield_codes ) { } } -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 6d71bedd09..3d8025cd52 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -828,9 +828,8 @@ foreach ( @$reviews ) { } } - -if(C4::Context->preference("ISBD")) { - $template->param(ISBD => 1); +if ( C4::Context->preference("OPACISBD") ) { + $template->param( ISBD => 1 ); } $template->param( -- 2.39.5