From 556d88c26d2878ac89cdff4b42ce7a1dffdfa201 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Thu, 3 Mar 2022 00:02:17 +0000 Subject: [PATCH] Bug 30200: Add a new system preference ILLRequestsTabs --- .../Bug_30200-Add_ILLRequestsTabs.pl | 18 ++++++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../modules/admin/preferences/circulation.pref | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl diff --git a/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl new file mode 100644 index 0000000000..5c6cb265ba --- /dev/null +++ b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl @@ -0,0 +1,18 @@ +use Modern::Perl; + +return { + bug_number => "30200", + description => "Add customizable tabs to interlibrary loan requests list", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + # Do you stuffs here + $dbh->do(q{ + INSERT INTO `systempreferences` + (variable,value,options,explanation,type) + VALUES + ('ILLRequestsTabs','','','Add customizable tabs to interlibrary loan requests list','Textarea'); + }); + + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index dd83a00fd8..7029b2b746 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -259,6 +259,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('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'), ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'), +('ILLRequestsTabs','','','Add customizable tabs to interlibrary loan requests list','Textarea'), ('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'), ('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'), ('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index ecc49a3a90..e5cd6e8284 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -933,6 +933,24 @@ Circulation: - pref: ILLOpacbackends class: multi - (separated with |). If left empty, all installed backends will be enabled. + - + - "Add customizable tabs to interlibrary loan requests list:" + - pref: ILLRequestsTabs + syntax: text/x-yaml + class: code + type: textarea + - "This is a list that defines tab names and statuses that will be sorted under that tab.

" + - "Examples:
" + - "
- name: Closed
" + - "
  status:
" + - "
    - COMP
" + - "
- name: Ordered
" + - "
  status:
" + - "
    - REQ
" + - "
    - ANOTHER_ORDER_STATUS
" + - "
- name: On loan
" + - "
  status:
" + - "
    - CHK
" - - pref: ILLModuleUnmediated default: 0 -- 2.25.1