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

(-)a/installer/data/mysql/atomicupdate/bug_41960.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "41960",
6
    description => "New systempreference 'OverduesBlockHolds'",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OverduesBlockHolds','noblock','noblock|block','Should overdue items block the placement of a hold','Choice')}
13
        );
14
15
        say $out "Added new system preference 'OverduesBlockHolds'";
16
    },
17
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 622-627 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
622
('OverdueNoticeCalendar','0',NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
622
('OverdueNoticeCalendar','0',NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
623
('OverdueNoticeFrom', 'cron', 'cron|item-issuebranch|item-homebranch', 'Organize and send overdue notices by item home library or checkout library', 'Choice'),
623
('OverdueNoticeFrom', 'cron', 'cron|item-issuebranch|item-homebranch', 'Organize and send overdue notices by item home library or checkout library', 'Choice'),
624
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
624
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
625
('OverduesBlockHolds','noblock','noblock|block','Should overdue items block the placement of a hold','Choice'),
625
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
626
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
626
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made available to XSLT sheets. Otherwise they will be removed.','YesNo'),
627
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made available to XSLT sheets. Otherwise they will be removed.','YesNo'),
627
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
628
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 941-946 Circulation: Link Here
941
                pending: Pending
941
                pending: Pending
942
                intransit: In transit
942
                intransit: In transit
943
                suspended: Suspended
943
                suspended: Suspended
944
        -
945
            - pref: OverduesBlockHolds
946
              choices:
947
                  block: Block
948
                  noblock: "Don't block"
949
            - "hold placement when the patron has overdue items."
944
        -
950
        -
945
            - pref: ReservesNeedReturns
951
            - pref: ReservesNeedReturns
946
              choices:
952
              choices:
947
- 

Return to bug 41960