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

(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-1 / +1 lines)
Lines 57-63 sub do_checkout { Link Here
57
    my $borrower = $patron->unblessed;
57
    my $borrower = $patron->unblessed;
58
	$debug and warn "do_checkout borrower: . " . Dumper $borrower;
58
	$debug and warn "do_checkout borrower: . " . Dumper $borrower;
59
    my ($issuingimpossible, $needsconfirmation) = _can_we_issue($patron, $barcode,
59
    my ($issuingimpossible, $needsconfirmation) = _can_we_issue($patron, $barcode,
60
        C4::Context->preference("AllowItemsOnHoldCheckout")
60
        C4::Context->preference("AllowItemsOnHoldCheckoutSIP")
61
    );
61
    );
62
62
63
    my $noerror=1;  # If set to zero we block the issue
63
    my $noerror=1;  # If set to zero we block the issue
(-)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
('AllowItemsOnHoldCheckout','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
30
('AllowItemsOnHoldCheckout','0','','Do not generate RESERVE_WAITING and RESERVED warning 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'),
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 213-218 Circulation: Link Here
213
                  yes: Allow
213
                  yes: Allow
214
                  no: "Don't allow"
214
                  no: "Don't allow"
215
            - 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.
215
            - 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.
216
        -
217
            - pref: AllowItemsOnHoldCheckoutSIP
218
              choices:
219
                  yes: Allow
220
                  no: "Don't allow"
221
            - 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.
216
        -
222
        -
217
            - pref: AllFinesNeedOverride
223
            - pref: AllFinesNeedOverride
218
              choices:
224
              choices:
219
- 

Return to bug 23223