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 430-436 if ($barcode && ( $op eq 'cud-checkin' || $op eq 'cud-affect_reserve' ) ) { Link Here
430
                );
431
                );
431
            }
432
            }
432
        }
433
        }
433
434
        # Verify if the item is in the course reserve
435
        my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber );
436
        if($course_reserves) {
437
            $template->param(
438
                found          => 1,
439
                course_reserve => 1,
440
                course_name => $course_reserves->[0]->{course}->{course_name}
441
            );
442
        }
434
    } elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) {
443
    } elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) {
435
        my $duedate = 0;
444
        my $duedate = 0;
436
        if ($issue) {
445
        if ($issue) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +7 lines)
Lines 739-744 Link Here
739
                                </div> <!-- /#hold-found1 -->
739
                                </div> <!-- /#hold-found1 -->
740
                            [% END # /IF waiting %]
740
                            [% END # /IF waiting %]
741
741
742
                            [% IF ( course_reserve ) %]
743
                            <!-- the item has to be returned to the reserved items -->
744
                            <div class="alert alert-info">
745
                                <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>
746
                            </div>
747
                            [% END %]
748
742
                            [% IF (transfer || needstransfer) && !(reserved and !recalled and !waitingrecall) %]
749
                            [% IF (transfer || needstransfer) && !(reserved and !recalled and !waitingrecall) %]
743
                                [% IF Koha.Preference('TransfersBlockCirc') %]
750
                                [% IF Koha.Preference('TransfersBlockCirc') %]
744
                                    <div id="item-transfer-modal" class="modal modal-lg block audio-alert-action" data-bs-backdrop="static" data-bs-keyboard="false">
751
                                    <div id="item-transfer-modal" class="modal modal-lg block audio-alert-action" data-bs-backdrop="static" data-bs-keyboard="false">
745
- 

Return to bug 13334