From 1009d3fca807d9ee5f9f3e388f6d6143e377b93e 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 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- 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 fad32d896e..ed5f6a4ab5 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -293,6 +293,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'), ('ILLPartnerCode','IL','','Patrons from this patron category will be used as partners to place ILL requests with','free'), 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 c72993c0d9..83b3fb313a 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.39.5