From e72a5bdb9f0c09a47c8d187b54ef32f48e912d46 Mon Sep 17 00:00:00 2001
From: Lari Taskula <lari.taskula@hypernova.fi>
Date: Thu, 3 Mar 2022 00:02:17 +0000
Subject: [PATCH] Bug 30200: Add a new system preference ILLRequestsTabs

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 .../Bug_30200-Add_ILLRequestsTabs.pl           | 18 ++++++++++++++++++
 installer/data/mysql/mandatory/sysprefs.sql    |  1 +
 2 files changed, 19 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 00000000000..5c6cb265ba6
--- /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 f9e2c643a1f..ab22a876994 100644
--- a/installer/data/mysql/mandatory/sysprefs.sql
+++ b/installer/data/mysql/mandatory/sysprefs.sql
@@ -328,6 +328,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('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'),
+('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'),
-- 
2.34.1