From eeba703a10237074cc01506fb0ad968750424a5f Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Thu, 25 May 2017 16:26:49 +0200 Subject: [PATCH] Bug 7317: Add ILLModuleCopyrightClearance syspref. * installer/data/mysql/atomicupdate/ill_tables.sql: Add default syspref for upgrade. * installer/data/mysql/sysprefs.sql: Add default syspref for new installs. * koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref: Define syspref in UI. Signed-off-by: Magnus Enger --- installer/data/mysql/atomicupdate/ill_tables.sql | 3 +++ installer/data/mysql/sysprefs.sql | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/installer/data/mysql/atomicupdate/ill_tables.sql b/installer/data/mysql/atomicupdate/ill_tables.sql index 25312d1..cab65f2 100644 --- a/installer/data/mysql/atomicupdate/ill_tables.sql +++ b/installer/data/mysql/atomicupdate/ill_tables.sql @@ -46,6 +46,9 @@ CREATE TABLE illrequestattributes ( INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('ILLModule','0','If ON, enables the interlibrary loans module.','','YesNo'); +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES + ('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'); + -- Userflags INSERT INTO userflags (bit,flag,flagdesc,defaulton) diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 4eb796b..9aef3fc 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -199,6 +199,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('IDreamBooksReviews','0','','Display book review snippets from IDreamBooks.com','YesNo'), ('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'), ('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 0c1d2cd..d9d5e49 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 @@ -73,6 +73,11 @@ Administration: yes: Enable no: Disable - the interlibrary loans module (master switch). + - + - "Adding text will enable the copyright clearance stage in request creation. The text you enter will be the text displayed." + - pref: ILLModuleCopyrightClearance + type: textarea + class: long Login options: - - "Inactivity timeout in seconds to automatically log out users: " -- 2.7.4