From c47acd31fc9f18e5dffc6c1b4699e48cc32ae53f Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>
Date: Wed, 21 Jun 2017 16:56:17 +0200
Subject: [PATCH] Add ILL Unmediated syspref stuff.
* installer/data/mysql/atomicupdate/illunmediated_tables.sql: New
file.
* installer/data/mysql/sysprefs.sql: Add `ILLModuleUnmediated`.
* koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref:
Add `ILLModuleUnmediated` handling.
https://bugs.koha-community.org/show_bug.cgi?id=18837
---
installer/data/mysql/atomicupdate/illunmediated_tables.sql | 4 ++++
installer/data/mysql/sysprefs.sql | 1 +
.../intranet-tmpl/prog/en/modules/admin/preferences/admin.pref | 7 +++++++
3 files changed, 12 insertions(+)
create mode 100644 installer/data/mysql/atomicupdate/illunmediated_tables.sql
diff --git a/installer/data/mysql/atomicupdate/illunmediated_tables.sql b/installer/data/mysql/atomicupdate/illunmediated_tables.sql
new file mode 100644
index 0000000000..8bb64bd391
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/illunmediated_tables.sql
@@ -0,0 +1,4 @@
+-- System preferences
+
+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
+ ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo');
diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql
index ec1854cdd5..548fc0ebb9 100644
--- a/installer/data/mysql/sysprefs.sql
+++ b/installer/data/mysql/sysprefs.sql
@@ -200,6 +200,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('IdRef','0','','Disable/enable the IdRef webservice from the OPAC detail page.','YesNo'),
('ILLModule','0','If ON, enables the interlibrary loans module.','','YesNo'),
('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
+('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'),
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
index d9d5e4932a..530d54df3a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
@@ -78,6 +78,13 @@ Administration:
- pref: ILLModuleCopyrightClearance
type: textarea
class: long
+ -
+ - pref: ILLModuleUnmediated
+ default: 0
+ choices:
+ yes: Enable
+ no: Disable
+ - unmediated interlibrary loan requests.
Login options:
-
- "Inactivity timeout in seconds to automatically log out users: "
--
2.13.4