From 7509f5996980860e7685fb4dc6c5dc203d03cfa4 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 11 Jul 2016 12:57:29 -0300 Subject: [PATCH] Bug 15131: Make SCO use the new syspref. This patch just makes SCO use the new syspref (AllowItemsOnHoldCheckoutSCO) instead of the old one, thus making it configurable, separate from the non-SCO syspref. Sponsored-by: NEKLS Signed-off-by: George --- opac/sco/sco-main.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index c97280b..02df011 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -31,8 +31,7 @@ # # FIXME: inputfocus not really used in TMPL -use strict; -use warnings; +use Modern::Perl; use CGI qw ( -utf8 ); use Digest::MD5 qw(md5_base64); @@ -142,7 +141,7 @@ elsif ( $op eq "checkout" ) { $barcode, undef, 0, - C4::Context->preference("AllowItemsOnHoldCheckout") + C4::Context->preference("AllowItemsOnHoldCheckoutSCO") ); } $confirm_required = scalar keys %$needconfirm; @@ -231,7 +230,7 @@ if ($borrower->{cardnumber}) { $it->{'barcode'}, undef, 0, - C4::Context->preference("AllowItemsOnHoldCheckout") + C4::Context->preference("AllowItemsOnHoldCheckoutSCO") ); $it->{'norenew'} = 1 if $renewokay->{'NO_MORE_RENEWALS'}; $it->{date_due} = $it->{date_due_sql}; -- 1.7.10.4