From 6f127ebb8c4ecab620787666bd11987579e52a76 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <katrin.fischer.83@web.de>
Date: Mon, 8 Aug 2022 21:18:19 +0000
Subject: [PATCH] Bug 30200: (follow-up) Update database update and pref
description
* Rephrases the system preference description a bit
* Adds IGNORE to the database statement
* Update output message of database statement to include pref name
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
.../data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl | 4 ++--
.../prog/en/modules/admin/preferences/circulation.pref | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
index 5c6cb265ba..b1ac49d1a1 100644
--- a/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
+++ b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
@@ -2,13 +2,13 @@ use Modern::Perl;
return {
bug_number => "30200",
- description => "Add customizable tabs to interlibrary loan requests list",
+ description => "Add ILLRequestsTabs system preference",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{
- INSERT INTO `systempreferences`
+ INSERT IGNORE INTO `systempreferences`
(variable,value,options,explanation,type)
VALUES
('ILLRequestsTabs','','','Add customizable tabs to interlibrary loan requests list','Textarea');
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 e395e5d3be..bad489d324 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
@@ -1003,12 +1003,12 @@ Circulation:
class: multi
- (separated with |). If left empty, all installed backends will be enabled.
-
- - "Add customizable tabs to interlibrary loan requests list:"
+ - "Add customizable tabs to the 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.<br/><br/>"
+ - "This allows to define tabs with their description and linked ILL request statuses that will appear under the tab.<br/><br/>"
- "Examples:<br/>"
- "<pre>- name: Closed</pre>"
- "<pre> status:</pre>"
--
2.20.1