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

(-)a/course_reserves/add_items.pl (-3 / +5 lines)
Lines 55-63 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
55
        flagsrequired   => { coursereserves => 'add_reserves' },
55
        flagsrequired   => { coursereserves => 'add_reserves' },
56
    }
56
    }
57
);
57
);
58
my $inumber = $itemnumber ? "(blank) (itemnumber:$itemnumber)" : "";
58
59
$template->param( ERROR_BARCODE_NOT_FOUND => $barcode . $inumber )
59
unless ( $item && $action eq 'lookup' ){
60
  unless ( $barcode && !$itemnumber && $item && $action eq 'lookup' );
60
    $template->param( ERROR_ITEM_NOT_FOUND => 1 );
61
    $template->param( UNKNOWN_BARCODE => $barcode ) if $barcode;
62
}
61
63
62
$template->param( course => GetCourse($course_id) );
64
$template->param( course => GetCourse($course_id) );
63
65
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-3 / +7 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
15
            <div class="dialog alert">No item found with barcode [% ERROR_BARCODE_NOT_FOUND %]</div>
15
        [% IF ERROR_ITEM_NOT_FOUND %]
16
            [% IF UNKNOWN_BARCODE %]
17
                <div class="dialog alert">No item found with barcode [% UNKNOWN_BARCODE %]</div>
18
            [% ELSE %]
19
                 <div class="dialog alert">No item found</div>
20
            [% END %]
16
        [% END %]
21
        [% END %]
17
22
18
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
23
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
19
- 

Return to bug 18367