View | Details | Raw Unified | Return to bug 32776
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_32776_-_add_ConvertSelectedReservesToRecalls_syspref.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "32776",
5
    description => "Convert selected reserves to recalls",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $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') });
11
12
        say $out "Added system preference 'ConvertSelectedReservesToRecalls'";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 158-163 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
158
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
158
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
159
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
159
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
160
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
160
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
161
('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'),
161
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
162
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
162
('CookieConsentedJS', '', NULL, 'Add Javascript code that will run if cookie consent is provided (e.g. tracking code).', 'Free'),
163
('CookieConsentedJS', '', NULL, 'Add Javascript code that will run if cookie consent is provided (e.g. tracking code).', 'Free'),
163
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
164
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +9 lines)
Lines 1349-1354 Circulation: Link Here
1349
                  staff: the staff interface only
1349
                  staff: the staff interface only
1350
                  both: both the OPAC and the staff interface
1350
                  both: both the OPAC and the staff interface
1351
            - . (Requires <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseRecalls">UseRecalls</a>.)
1351
            - . (Requires <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseRecalls">UseRecalls</a>.)
1352
        -
1353
            - Automatically convert
1354
            - pref: ConvertSelectedReservesToRecalls
1355
              default: oldest
1356
              choices:
1357
                  oldest: the oldest reserve placed on the record
1358
                  recallable: one reserve for each item available to be recalled
1359
            - to a recall, once a specific number of reserves have been requested on the record.
1360
            - <span class="hint">This system preference is used by the convert_reserves_to_recalls.pl cronjob.</span>
1352
1361
1353
    SIP2:
1362
    SIP2:
1354
        -
1363
        -
1355
- 

Return to bug 32776