From bdfbe65c3df7f9c042f8530fb89f06a1c8503b2a 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 Signed-off-by: Magnus Enger Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../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 1575f9516b..54bce93cf5 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -278,6 +278,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 bcdb4b2b88..e395e5d3be 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 @@ -1002,6 +1002,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.20.1