From 0ccc89990b15207655ca2ba6630722da455c41dd Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Mon, 4 Apr 2011 14:25:26 +0200 Subject: [PATCH] Bug 4157: Display of barcode in checked out items in OPAC wr76595: barcode display Signed-off-by: Matthias Meusburger Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 6 +++++- opac/opac-user.pl | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl index 4f8ae07b91..5513f13dee 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl @@ -196,11 +196,12 @@ $.tablesorter.addParser({ "> - + + @@ -241,6 +242,7 @@ $.tablesorter.addParser({ + @@ -292,6 +294,7 @@ $.tablesorter.addParser({ + @@ -323,6 +326,7 @@ $.tablesorter.addParser({ + diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 5601e85d5c..23de179a46 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -108,7 +108,7 @@ my @issuedat; my $itemtypes = GetItemTypes(); my ($issues) = GetPendingIssues($borrowernumber); if ($issues){ - foreach my $issue ( sort sort { $b->{'date_due'} cmp $a->{'date_due'} } @$issues ) { + foreach my $issue ( sort { $b->{'date_due'} cmp $a->{'date_due'} } @$issues ) { # check for reserves my ( $restype, $res ) = CheckReserves( $issue->{'itemnumber'} ); if ( $restype ) { @@ -228,7 +228,7 @@ foreach my $res (@reserves) { $res->{'wait'}= 1; $res->{'holdingbranch'}=$item->{'holdingbranch'}; $res->{'biblionumber'}=$item->{'biblionumber'}; - $res->{'barcodenumber'} = $item->{'barcode'}; + $res->{'barcode'} = $item->{'barcode'}; $res->{'wbrcode'} = $res->{'branchcode'}; $res->{'itemnumber'} = $res->{'itemnumber'}; $res->{'wbrname'} = $branches->{$res->{'branchcode'}}->{'branchname'}; -- 2.39.5
Items Checked Out Item(s) Checked Out
  Title Item Type Barcode Call No. Due " title="" alt="" />   Title Item Type Barcode Call No. Due "> " title="" alt="" />