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

(-)a/C4/SIP/ILS.pm (-4 / +6 lines)
Lines 20-26 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
23
use C4::Context;    #BZ 18317
24
24
25
my %supports = (
25
my %supports = (
26
    'magnetic media'        => 1,
26
    'magnetic media'        => 1,
Lines 162-170 sub checkout { Link Here
162
    elsif ( !$item ) {
162
    elsif ( !$item ) {
163
        $circ->screen_msg("Invalid Item");
163
        $circ->screen_msg("Invalid Item");
164
    }
164
    }
165
    elsif ( $item->{borrowernumber}
165
    elsif (
166
        && ! C4::Context->preference('AllowItemsOnLoanCheckoutSIP') #BZ 18317
166
        $item->{borrowernumber}
167
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) )
167
        && !C4::Context->preference('AllowItemsOnLoanCheckoutSIP')    #BZ 18317
168
        && !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber )
169
        )
168
    {
170
    {
169
        $circ->screen_msg("Item checked out to another patron");
171
        $circ->screen_msg("Item checked out to another patron");
170
    }
172
    }
(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-3 / +4 lines)
Lines 88-96 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' and C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
91
            } elsif ( $confirmation eq 'ISSUED_TO_ANOTHER' and C4::Context->preference("AllowItemsOnLoanCheckoutSIP") )
92
            {
92
                next;
93
                next;
93
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER' and ! C4::Context->preference("AllowItemsOnLoanCheckoutSIP")) { #BZ 18317
94
            } elsif ( $confirmation eq 'ISSUED_TO_ANOTHER' and !C4::Context->preference("AllowItemsOnLoanCheckoutSIP") )
95
            {
94
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
96
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
95
                $noerror = 0;
97
                $noerror = 0;
96
                last;
98
                last;
97
- 

Return to bug 18317