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

(-)a/C4/SIP/ILS.pm (+3 lines)
Lines 19-24 use C4::SIP::ILS::Transaction::Hold; Link Here
19
use C4::SIP::ILS::Transaction::Renew;
19
use C4::SIP::ILS::Transaction::Renew;
20
use C4::SIP::ILS::Transaction::RenewAll;
20
use C4::SIP::ILS::Transaction::RenewAll;
21
21
22
use C4::Context; #BZ 18317
23
22
my $debug = 0;
24
my $debug = 0;
23
25
24
my %supports = (
26
my %supports = (
Lines 148-153 sub checkout { Link Here
148
        $circ->screen_msg("Invalid Item");
150
        $circ->screen_msg("Invalid Item");
149
    }
151
    }
150
    elsif ( $item->{borrowernumber}
152
    elsif ( $item->{borrowernumber}
153
        && ! C4::Context->preference('AllowItemsOnLoanCheckoutSIP') #BZ 18317
151
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) )
154
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) )
152
    {
155
    {
153
        $circ->screen_msg("Item checked out to another patron");
156
        $circ->screen_msg("Item checked out to another patron");
(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-1 / +3 lines)
Lines 80-86 sub do_checkout { Link Here
80
               $debug and warn "Item is on hold for another patron.";
80
               $debug and warn "Item is on hold for another patron.";
81
               $self->screen_msg("Item is on hold for another patron.");
81
               $self->screen_msg("Item is on hold for another patron.");
82
               $noerror = 0;
82
               $noerror = 0;
83
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER') {
83
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER' and C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
84
                next;
85
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER' and ! C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
84
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
86
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
85
                $noerror = 0;
87
                $noerror = 0;
86
                last;
88
                last;
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 31-36 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
31
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
31
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
32
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
32
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
33
('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVED warning when checking out items reserved to someone else via SIP. This allows self checkouts for those items.','YesNo'),
33
('AllowItemsOnHoldCheckoutSIP','0','','Do not generate RESERVED warning when checking out items reserved to someone else via SIP. This allows self checkouts for those items.','YesNo'),
34
('AllowItemsOnLoanCheckoutSIP','0','','Do not generate ISSUED_TO_ANOTHER warning when checking out items already checked out to someone else via SIP. This allows self checkouts for those items.','YesNo'),
34
('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'),
35
('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'),
35
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
36
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
36
('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'),
37
('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +8 lines)
Lines 220-225 Circulation: Link Here
220
            - checkouts of items reserved to someone else via SIP checkout messages.
220
            - checkouts of items reserved to someone else via SIP checkout messages.
221
            - If allowed do not generate RESERVED warning.
221
            - If allowed do not generate RESERVED warning.
222
            - This allows self checkouts for those items. If using the holds queue items with pending holds will be marked as "unavailable" if this set to "Don't allow".
222
            - This allows self checkouts for those items. If using the holds queue items with pending holds will be marked as "unavailable" if this set to "Don't allow".
223
        -
224
            - pref: AllowItemsOnLoanCheckoutSIP
225
              choices:
226
                  1: Allow
227
                  0: "Don't allow"
228
            - checkouts of items already checked out to someone else via SIP checkout messages.
229
            - If allowed do not generate ISSUED_TO_ANOTHER warning.
230
            - This allows self checkouts for those items.
223
        -
231
        -
224
            - pref: AllowItemsOnHoldCheckoutSCO
232
            - pref: AllowItemsOnHoldCheckoutSCO
225
              choices:
233
              choices:
226
- 

Return to bug 18317