From 4ff4233b14b852279939966276f0221b0fa93531 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 4 May 2023 13:33:23 +0000 Subject: [PATCH] Bug 33716: New ILLModuleDisclaimerByType sys pref --- installer/data/mysql/mandatory/sysprefs.sql | 1 + .../admin/preferences/interlibrary_loans.pref | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index ccedbf901e..c7b21c6949 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -288,6 +288,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('IllLog', 0, '', 'If ON, log information about ILL requests', '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'), +('ILLModuleDisclaimerByType','','','YAML defining disclaimer settings for each ILL request type','Textarea'), ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'), ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'), ('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref index 2f724d4151..44ad9f8021 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref @@ -12,6 +12,23 @@ Interlibrary loans: - pref: ILLModuleCopyrightClearance type: textarea class: long + - + - "If the ILL backend supports it, adding YAML will enable the request type disclaimer stage in request creation, prompting the user with a request type specific disclaimer as defined (Staff and OPAC). Example (paste bold text in the input box):
+ all:
+  text: |
+   <h2>HTML title</h2>
+   <p>This is an HTML paragraph</p>
+   <p>This is another HTML paragraph</p>
+  av_category_code: YES_NO
+ article:
+  text: copyright text for all article type requests
+  av_category_code: YES_NO
+  bypass: 1
+
" + - pref: ILLModuleDisclaimerByType + type: textarea + syntax: text/x-yaml + class: code - - pref: ILLModuleUnmediated default: 0 -- 2.30.2