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

(-)a/course_reserves/add_items.pl (-3 / +5 lines)
Lines 54-62 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
54
        flagsrequired   => { coursereserves => 'add_reserves' },
54
        flagsrequired   => { coursereserves => 'add_reserves' },
55
    }
55
    }
56
);
56
);
57
my $inumber = $itemnumber ? "(blank) (itemnumber:$itemnumber)" : "";
57
58
$template->param( ERROR_BARCODE_NOT_FOUND => $barcode . $inumber )
58
unless ( $item && $action eq 'lookup' ){
59
  unless ( $barcode && !$itemnumber && $item && $action eq 'lookup' );
59
    $template->param( ERROR_ITEM_NOT_FOUND => 1 );
60
    $template->param( UNKNOWN_BARCODE => $barcode ) if $barcode;
61
}
60
62
61
$template->param( course => GetCourse($course_id) );
63
$template->param( course => GetCourse($course_id) );
62
64
(-)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