Bug 25147: (RM follow-up) Update pref references.
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 17 Apr 2020 08:02:58 +0000 (09:02 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 17 Apr 2020 08:03:47 +0000 (09:03 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

C4/UsageStats.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
opac/sco/sco-main.pl
t/db_dependent/UsageStats.t

index d608eb9..52fb4ce 100644 (file)
@@ -198,7 +198,7 @@ sub BuildReport {
         UpdateTotalIssuesOnCirc
         UseTablesortForCirc
         WaitingNotifyAtCheckin
-        AllowSelfCheckReturns
+        SCOAllowCheckin
         AutoSelfCheckAllowed
         FRBRizeEditions
         OPACFRBRizeEditions
index e475470..1b984e6 100644 (file)
@@ -86,7 +86,7 @@
                                 Please see a member of the library staff.
                             </p>
 
-                            [% IF ( returnitem && Koha.Preference('AllowSelfCheckReturns') ) %]
+                            [% IF ( returnitem && Koha.Preference('SCOAllowCheckin') ) %]
                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
                                     <input type="hidden" name="op" value="returnbook" />
                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
                                 <p>This item is already checked out to you.</p>
                             [% END %]
 
-                            [% IF ( renew && Koha.Preference('AllowSelfCheckReturns') ) %]
+                            [% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %]
                                 <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
                                     <input type="hidden" name="op" value="returnbook" />
                                     <input type="hidden" name="patronid" value="[% patronid | html %]" />
                             <div id="newcheckout" class="sco_entry">
                                 <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');">
                                     <fieldset>
-                                        <legend>Check out[% IF ( Koha.Preference('AllowSelfCheckReturns') ) %], return[% END %] or renew an item: </legend>
+                                        <legend>Check out[% IF ( Koha.Preference('SCOAllowCheckin') ) %], return[% END %] or renew an item: </legend>
                                         <div class="input-append">
                                             <label for="barcode">Scan a new item or enter its barcode:</label>
                                             <input id="barcode" name="barcode" size="20" type="text" class="focus" autocomplete="off" />
                                                                         [% ELSE %]
                                                                             <span>No renewals allowed</span>
                                                                         [% END %]
-                                                                        [% IF Koha.Preference('AllowSelfCheckReturns') %]
+                                                                        [% IF Koha.Preference('SCOAllowCheckin') %]
                                                                             <input type="submit" value="Check in item" name="confirm" class="btn return" />
                                                                             <input type="hidden" name="op" value="returnbook" />
                                                                             <input type="hidden" name="confirmed" value=""  />
index 69363ea..83a37ac 100755 (executable)
@@ -93,10 +93,10 @@ if (C4::Context->preference('SelfCheckTimeout')) {
 }
 $template->param( SelfCheckTimeout => $selfchecktimeout );
 
-# Checks policy laid out by AllowSelfCheckReturns, defaults to 'on' if preference is undefined
+# Checks policy laid out by SCOAllowCheckin, defaults to 'on' if preference is undefined
 my $allowselfcheckreturns = 1;
-if (defined C4::Context->preference('AllowSelfCheckReturns')) {
-    $allowselfcheckreturns = C4::Context->preference('AllowSelfCheckReturns');
+if (defined C4::Context->preference('SCOAllowCheckin')) {
+    $allowselfcheckreturns = C4::Context->preference('SCOAllowCheckin');
 }
 
 my $issuerid = $loggedinuser;
index 1aabf76..f4e9949 100644 (file)
@@ -459,7 +459,7 @@ sub mocking_systempreferences_to_a_set_value {
         UpdateTotalIssuesOnCirc
         UseTablesortForCirc
         WaitingNotifyAtCheckin
-        AllowSelfCheckReturns
+        SCOAllowCheckin
         AutoSelfCheckAllowed
         FRBRizeEditions
         OPACFRBRizeEditions