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

(-)a/circ/returns.pl (-1 / +10 lines)
Lines 42-47 use C4::Members; Link Here
42
use C4::Output   qw( output_html_with_http_headers );
42
use C4::Output   qw( output_html_with_http_headers );
43
use C4::Reserves qw( ModReserve ModReserveAffect CheckReserves );
43
use C4::Reserves qw( ModReserve ModReserveAffect CheckReserves );
44
use C4::RotatingCollections;
44
use C4::RotatingCollections;
45
use C4::CourseReserves;
45
use Koha::AuthorisedValues;
46
use Koha::AuthorisedValues;
46
use Koha::BiblioFrameworks;
47
use Koha::BiblioFrameworks;
47
use Koha::Calendar;
48
use Koha::Calendar;
Lines 388-394 if ( $barcode && ( $op eq 'cud-checkin' || $op eq 'cud-affect_reserve' ) ) { Link Here
388
                );
389
                );
389
            }
390
            }
390
        }
391
        }
391
392
        # Verify if the item is in the course reserve
393
        my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber );
394
        if($course_reserves) {
395
            $template->param(
396
                found          => 1,
397
                course_reserve => 1,
398
                course_name => $course_reserves->[0]->{course}->{course_name}
399
            );
400
        }
392
    } elsif ( C4::Context->preference('ShowAllCheckins')
401
    } elsif ( C4::Context->preference('ShowAllCheckins')
393
        and !$messages->{'BadBarcode'}
402
        and !$messages->{'BadBarcode'}
394
        and !$needs_confirm
403
        and !$needs_confirm
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +6 lines)
Lines 773-778 Link Here
773
            <!-- /#hold-found1 -->
773
            <!-- /#hold-found1 -->
774
        [% END # /IF waiting %]
774
        [% END # /IF waiting %]
775
775
776
        [% IF ( course_reserve ) %]
777
        <!-- the item has to be returned to the reserved items -->
778
        <div class="alert alert-info">
779
            <h3><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber%]">[% title or "item" |html %]</a> is part of the [% course_name %] course reserve.</h3>
780
        </div>
781
        [% END %]
776
        [% IF (transfer || needstransfer) && !(reserved and !recalled and !waitingrecall) %]
782
        [% IF (transfer || needstransfer) && !(reserved and !recalled and !waitingrecall) %]
777
            [% IF Koha.Preference('TransfersBlockCirc') %]
783
            [% IF Koha.Preference('TransfersBlockCirc') %]
778
                [% SET div_class='block' %]
784
                [% SET div_class='block' %]
779
- 

Return to bug 13334