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

(-)a/C4/SIP/ILS.pm (+3 lines)
Lines 20-25 use C4::SIP::ILS::Transaction::Hold; Link Here
20
use C4::SIP::ILS::Transaction::Renew;
20
use C4::SIP::ILS::Transaction::Renew;
21
use C4::SIP::ILS::Transaction::RenewAll;
21
use C4::SIP::ILS::Transaction::RenewAll;
22
22
23
use C4::Context; #BZ 18317
24
23
my %supports = (
25
my %supports = (
24
    'magnetic media'        => 1,
26
    'magnetic media'        => 1,
25
    'security inhibit'      => 0,
27
    'security inhibit'      => 0,
Lines 161-166 sub checkout { Link Here
161
        $circ->screen_msg("Invalid Item");
163
        $circ->screen_msg("Invalid Item");
162
    }
164
    }
163
    elsif ( $item->{borrowernumber}
165
    elsif ( $item->{borrowernumber}
166
        && ! C4::Context->preference('AllowItemsOnLoanCheckoutSIP') #BZ 18317
164
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) )
167
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) )
165
    {
168
    {
166
        $circ->screen_msg("Item checked out to another patron");
169
        $circ->screen_msg("Item checked out to another patron");
(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-1 / +3 lines)
Lines 88-94 sub do_checkout { Link Here
88
            {
88
            {
89
                $self->screen_msg("Item is on hold for another patron.");
89
                $self->screen_msg("Item is on hold for another patron.");
90
                $noerror = 0;
90
                $noerror = 0;
91
            } elsif ( $confirmation eq 'ISSUED_TO_ANOTHER' ) {
91
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER' and C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
92
                next;
93
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER' and ! C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
92
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
94
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
93
                $noerror = 0;
95
                $noerror = 0;
94
                last;
96
                last;
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 34-39 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
34
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
34
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
35
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
35
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
36
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
36
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
37
('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'),
37
('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'),
38
('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'),
38
('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'),
39
('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'),
39
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
40
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +8 lines)
Lines 226-231 Circulation: Link Here
226
            - checkouts of items reserved to someone else via SIP checkout messages.
226
            - checkouts of items reserved to someone else via SIP checkout messages.
227
            - If allowed do not generate RESERVED warning.
227
            - If allowed do not generate RESERVED warning.
228
            - 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".
228
            - 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".
229
        -
230
            - pref: AllowItemsOnLoanCheckoutSIP
231
              choices:
232
                  1: Allow
233
                  0: "Don't allow"
234
            - checkouts of items already checked out to someone else via SIP checkout messages.
235
            - If allowed do not generate ISSUED_TO_ANOTHER warning.
236
            - This allows self checkouts for those items.
229
        -
237
        -
230
            - pref: AllowItemsOnHoldCheckoutSCO
238
            - pref: AllowItemsOnHoldCheckoutSCO
231
              choices:
239
              choices:
232
- 

Return to bug 18317