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
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
34
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
35
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
35
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
36
('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'),
36
('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'),
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
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
39
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
39
('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'),
40
('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