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

(-)a/circ/returns.pl (+10 lines)
Lines 44-49 use C4::Members; Link Here
44
use C4::Branch; # GetBranches GetBranchName
44
use C4::Branch; # GetBranches GetBranchName
45
use C4::Koha;   # FIXME : is it still useful ?
45
use C4::Koha;   # FIXME : is it still useful ?
46
use C4::RotatingCollections;
46
use C4::RotatingCollections;
47
use C4::CourseReserves;
47
use Koha::DateUtils;
48
use Koha::DateUtils;
48
use Koha::Calendar;
49
use Koha::Calendar;
49
50
Lines 320-325 if ($barcode) { Link Here
320
                );
321
                );
321
            }
322
            }
322
        }
323
        }
324
        # Verify if the item is in the course reserve
325
        my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber );
326
        if($course_reserves) {
327
            $template->param(
328
                found          => 1,
329
                course_reserve => 1,
330
                course_name => $course_reserves->[0]->{course}->{course_name}
331
            );
332
        }
323
    }
333
    }
324
    elsif ( !$messages->{'BadBarcode'} ) {
334
    elsif ( !$messages->{'BadBarcode'} ) {
325
        $input{duedate}   = 0;
335
        $input{duedate}   = 0;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +7 lines)
Lines 271-276 $(document).ready(function () { Link Here
271
        [% END %]
271
        [% END %]
272
    [% END %]
272
    [% END %]
273
273
274
    [% IF ( course_reserve ) %]
275
    <!-- the item has to be returned to the reserved items -->
276
    <div class="dialog message">
277
        <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>
278
    </div>
279
    [% END %]
280
274
    [% IF ( needstransfer ) %]
281
    [% IF ( needstransfer ) %]
275
	<!-- needstransfer -->
282
	<!-- needstransfer -->
276
        [% IF ( soundon ) %]
283
        [% IF ( soundon ) %]
277
- 

Return to bug 13334