diff --git a/course_reserves/add_items.pl b/course_reserves/add_items.pl index f48c113a37..35836997cf 100755 --- a/course_reserves/add_items.pl +++ b/course_reserves/add_items.pl @@ -55,9 +55,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( flagsrequired => { coursereserves => 'add_reserves' }, } ); -my $inumber = $itemnumber ? "(blank) (itemnumber:$itemnumber)" : ""; -$template->param( ERROR_BARCODE_NOT_FOUND => $barcode . $inumber ) - unless ( $barcode && !$itemnumber && $item && $action eq 'lookup' ); + +unless ( $item && $action eq 'lookup' ){ + $template->param( ERROR_ITEM_NOT_FOUND => 1 ); + $template->param( UNKNOWN_BARCODE => $barcode ) if $barcode; +} $template->param( course => GetCourse($course_id) ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt index b5036363ff..daf1602a3d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt @@ -11,8 +11,13 @@