Bug 23007: Add TransfersBlockCirc system preference
authorNick Clemens <nick@bywatersolutions.com>
Thu, 27 Jun 2019 10:54:26 +0000 (10:54 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Oct 2019 11:42:20 +0000 (12:42 +0100)
Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref

diff --git a/installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl b/installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl
new file mode 100644 (file)
index 0000000..bb24f44
--- /dev/null
@@ -0,0 +1,9 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+        ('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo')
+    });
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 23007: Make transfer modals optionally block circ)\n";
+}
index 88476cd..bb3c809 100644 (file)
@@ -619,6 +619,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
 ('TrackClicks','0',NULL,'Track links clicked','Integer'),
 ('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
+('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
 ('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
 ('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
 ('TranslateNotices','0',NULL, 'Allow notices to be translated','YesNo'),
index 915d991..6c51ec5 100644 (file)
@@ -565,6 +565,12 @@ Circulation:
                   yes: "Hide"
                   no: "Don't hide"
             - patrons phone number, email address, street address and city on the circulation page.
+        -
+            - pref: TransfersBlockCirc
+              choices:
+                  yes: "Block"
+                  no: "Don't block"
+            - staff from continuing to checkin items when a transfer is triggered.
     Holds Policy:
         -
             - In the staff client, split the holds queue into separate tables by