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

(-)a/course_reserves/add_items.pl (-3 / +5 lines)
Lines 52-60 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
52
        flagsrequired   => { coursereserves => 'add_reserves' },
52
        flagsrequired   => { coursereserves => 'add_reserves' },
53
    }
53
    }
54
);
54
);
55
my $inumber = $itemnumber ? "(blank) (itemnumber:$itemnumber)" : "";
55
56
$template->param( ERROR_BARCODE_NOT_FOUND => $barcode . $inumber )
56
unless ( $item && $action eq 'lookup' ){
57
  unless ( $barcode && !$itemnumber && $item && $action eq 'lookup' );
57
    $template->param( ERROR_ITEM_NOT_FOUND => 1 );
58
    $template->param( UNKNOWN_BARCODE => $barcode ) if $barcode;
59
}
58
60
59
$template->param( course => GetCourse($course_id) );
61
$template->param( course => GetCourse($course_id) );
60
62
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-3 / +2 lines)
Lines 11-18 Link Here
11
11
12
<div id="doc" class="yui-t7">
12
<div id="doc" class="yui-t7">
13
    <div id="bd">
13
    <div id="bd">
14
        [% IF ERROR_BARCODE_NOT_FOUND %]
14
        [% IF ERROR_ITEM_NOT_FOUND %]
15
            <div class="dialog alert">No item found with barcode [% ERROR_BARCODE_NOT_FOUND %]</div>
15
            <div class="dialog alert">No item found [% IF UNKNOWN_BARCODE %]with barcode [% UNKNOWN_BARCODE %][% END %]</div>
16
        [% END %]
16
        [% END %]
17
17
18
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
18
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
19
- 

Return to bug 18367