From ff7fa7371a3371be45fad8b05860c566a9e66a70 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 --- .../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 2ee04b8329..1a121fbe8e 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -274,6 +274,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 488ee65ba1..5d1c602830 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 @@ -995,6 +995,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.30.2