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

(-)a/installer/data/mysql/atomicupdate/bug-23571.perl (+17 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    $dbh->do(qq{
5
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
6
        VALUES ('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else through SIPServer. This allows self checkouts for those items.','YesNo')
7
    });
8
9
    $dbh->do(qq{
10
        UPDATE systempreferences new, (select value from systempreferences where variable = 'AllowItemsOnHoldCheckout') old
11
        SET new.value = old.value
12
        WHERE new.variable = 'AllowItemsOnHoldCheckoutSIP'
13
    });
14
15
    SetVersion( $DBversion );
16
    print "Upgrade to $DBversion done (Bug 23571 - Add AllowItemsOnHoldCheckoutSIP preference)\n";
17
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 29-34 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
29
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
29
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
30
('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else via SIP. This allows self checkouts for those items.','YesNo'),
30
('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else via SIP. This allows self checkouts for those items.','YesNo'),
31
('AllowItemsOnHoldCheckoutSCO','0','','Do not generate RESERVE_WAITING and RESERVED warning in the SCO module when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
31
('AllowItemsOnHoldCheckoutSCO','0','','Do not generate RESERVE_WAITING and RESERVED warning in the SCO module when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
32
('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else through SIPServer. This allows self checkouts for those items.','YesNo'),
32
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
33
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
33
('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'),
34
('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'),
34
('AllowNotForLoanOverride','0','','If ON, Koha will allow the librarian to loan a not for loan item.','YesNo'),
35
('AllowNotForLoanOverride','0','','If ON, Koha will allow the librarian to loan a not for loan item.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 215-220 Circulation: Link Here
215
                  yes: Allow
215
                  yes: Allow
216
                  no: "Don't allow"
216
                  no: "Don't allow"
217
            - checkouts of items reserved to someone else in the SCO module. If allowed do not generate RESERVE_WAITING and RESERVED warning. This allows self checkouts for those items.
217
            - checkouts of items reserved to someone else in the SCO module. If allowed do not generate RESERVE_WAITING and RESERVED warning. This allows self checkouts for those items.
218
        -
219
            - pref: AllowItemsOnHoldCheckoutSIP
220
              choices:
221
                  yes: Allow
222
                  no: "Don't allow"
223
            - checkouts of items reserved to someone else through SIPServer. If allowed do not generate RESERVE_WAITING and RESERVED warning. This allows self checkouts for those items.
218
        -
224
        -
219
            - pref: AllFinesNeedOverride
225
            - pref: AllFinesNeedOverride
220
              choices:
226
              choices:
221
- 

Return to bug 23223