From: Dobrica Pavlinusic Date: Thu, 1 Nov 2018 10:24:31 +0000 (+0100) Subject: display barcode for item X-Git-Url: http://git.rot13.org/?p=koha-dla;a=commitdiff_plain;h=refs%2Fheads%2Fmaster display barcode for item --- diff --git a/barcode-seen.pl b/barcode-seen.pl index 0770ba2..2f23172 100755 --- a/barcode-seen.pl +++ b/barcode-seen.pl @@ -16,6 +16,7 @@ get '/' => sub { my $c = shift; my $barcode = $c->param('barcode'); + $c->stash( barcode => $barcode ); my $dbh = C4::Context->dbh; my $sth_items = $dbh->prepare(qq{ @@ -72,8 +73,13 @@ __DATA__ %= submit_button 'Scan' % end +% if ( stash('title') ) { <%= stash('author') %> <%= stash('title') %> +<%= stash('barcode') %> +% } else { +<%= stash('barcode') %> not found +% } % if ( stash('userid') ) {
Borrower: