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

(-)a/opac/sco/sco-main.pl (-3 / +14 lines)
Lines 135-142 if ($op eq "logout") { Link Here
135
    $query->param( patronid => undef, patronlogin => undef, patronpw => undef );
135
    $query->param( patronid => undef, patronlogin => undef, patronpw => undef );
136
}
136
}
137
elsif ( $op eq "returnbook" && $allowselfcheckreturns ) {
137
elsif ( $op eq "returnbook" && $allowselfcheckreturns ) {
138
    my ($doreturn) = AddReturn( $barcode, $branch );
138
    my $success        = 0;
139
    $template->param( returned => $doreturn );
139
    my $human_required = 0;
140
    if ( C4::Context->preference("CircConfirmItemParts") ) {
141
        my $item = Koha::Items->find( { barcode => $barcode } );
142
        if ( defined($item)
143
            && $item->materials )
144
        {
145
            $human_required = 1;
146
        }
147
    }
148
149
    ($success) = AddReturn( $barcode, $branch )
150
      unless $human_required;
151
    $template->param( returned => $success );
140
}
152
}
141
elsif ( $patron && ( $op eq 'checkout' || $op eq 'renew' ) ) {
153
elsif ( $patron && ( $op eq 'checkout' || $op eq 'renew' ) ) {
142
    my $impossible  = {};
154
    my $impossible  = {};
143
- 

Return to bug 25261