my $c = shift;
my $barcode = $c->param('barcode');
+ $c->stash( barcode => $barcode );
my $dbh = C4::Context->dbh;
my $sth_items = $dbh->prepare(qq{
%= submit_button 'Scan'
% end
+% if ( stash('title') ) {
<%= stash('author') %>
<b><%= stash('title') %></b>
+<%= stash('barcode') %>
+% } else {
+<big style="color:red"><%= stash('barcode') %> not found</big>
+% }
% if ( stash('userid') ) {
<br>Borrower: