Bugzilla – Attachment 157004 Details for
Bug 32776
Choose to convert oldest reserve or all possible reserves to recalls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32776: Add ConvertSelectedReservesToRecalls system preference
Bug-32776-Add-ConvertSelectedReservesToRecalls-sys.patch (text/plain), 3.97 KB, created by
Aleisha Amohia
on 2023-10-12 22:39:11 UTC
(
hide
)
Description:
Bug 32776: Add ConvertSelectedReservesToRecalls system preference
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-10-12 22:39:11 UTC
Size:
3.97 KB
patch
obsolete
>From cef420b4fa4530150af1f1fc2e258b86e4a5d294 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 1 Feb 2023 04:20:47 +0000 >Subject: [PATCH] Bug 32776: Add ConvertSelectedReservesToRecalls system > preference > >--- > ...add_ConvertSelectedReservesToRecalls_syspref.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/circulation.pref | 9 +++++++++ > 3 files changed, 24 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_32776_-_add_ConvertSelectedReservesToRecalls_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_32776_-_add_ConvertSelectedReservesToRecalls_syspref.pl b/installer/data/mysql/atomicupdate/bug_32776_-_add_ConvertSelectedReservesToRecalls_syspref.pl >new file mode 100644 >index 00000000000..b53de318836 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_32776_-_add_ConvertSelectedReservesToRecalls_syspref.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "32776", >+ description => "Convert selected reserves to recalls", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('ConvertSelectedReservesToRecalls', 'oldest', 'oldest|recallable', 'Choose whether the convert_reserves_to_recalls.pl cronjob should convert only the oldest reserve on the record to a recall, or one reserve for each item available to be recalled', 'Choice') }); >+ >+ say $out "Added system preference 'ConvertSelectedReservesToRecalls'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 3b34035efbd..2b34e16a15d 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -158,6 +158,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'), > ('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'), > ('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'), >+('ConvertSelectedReservesToRecalls', 'oldest', 'oldest|recallable', 'Choose whether the convert_reserves_to_recalls.pl cronjob should convert only the oldest reserve on the record to a recall, or one reserve for each item available to be recalled', 'Choice'), > ('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'), > ('CookieConsentedJS', '', NULL, 'Add Javascript code that will run if cookie consent is provided (e.g. tracking code).', 'Free'), > ('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'), >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 4cd9f40905f..67be9cb732c 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 >@@ -1349,6 +1349,15 @@ Circulation: > staff: the staff interface only > both: both the OPAC and the staff interface > - . (Requires <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseRecalls">UseRecalls</a>.) >+ - >+ - Automatically convert >+ - pref: ConvertSelectedReservesToRecalls >+ default: oldest >+ choices: >+ oldest: the oldest reserve placed on the record >+ recallable: one reserve for each item available to be recalled >+ - to a recall, once a specific number of reserves have been requested on the record. >+ - <span class="hint">This system preference is used by the convert_reserves_to_recalls.pl cronjob.</span> > > SIP2: > - >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32776
:
145987
|
145988
| 157004 |
157005
|
157006
|
157007
|
157178
|
157966
|
158015
|
159125
|
159126
|
159127