From 9c998cda51961e89e66076ce1409b89e4c6df311 Mon Sep 17 00:00:00 2001 From: rangi Date: Tue, 4 Nov 2003 19:48:50 +0000 Subject: [PATCH] Fix for bug 535, and adding the classification column to the variables available to the template --- C4/Circulation/Circ2.pm | 3 ++- circ/circulation.pl | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index f30fa4ff90..1451754653 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -1372,7 +1372,8 @@ sub getissues { biblio.author AS author, biblioitems.dewey AS dewey, itemtypes.description AS itemtype, - biblioitems.subclass AS subclass + biblioitems.subclass AS subclass, + biblioitems.classification AS classification FROM issues,items,biblioitems,biblio, itemtypes WHERE issues.borrowernumber = ? AND issues.itemnumber = items.itemnumber diff --git a/circ/circulation.pl b/circ/circulation.pl index 8ec73d8152..8cacd7fa45 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -236,6 +236,9 @@ if ($borrower) { ($tcolor eq $linecolor1) ? ($tcolor=$linecolor2) : ($tcolor=$linecolor1); $book->{'dd'}=$dd; $book->{'tcolor'}=$tcolor; + if ($book->{'author'} eq ''){ + $book->{'author'}=' '; + } push @realtodayissues,$book; } @@ -259,7 +262,10 @@ if ($borrower) { } ($pcolor eq $linecolor1) ? ($pcolor=$linecolor2) : ($pcolor=$linecolor1); $book->{'dd'}=$dd; - $book->{'tcolor'}=$pcolor; + $book->{'tcolor'}=$pcolor; + if ($book->{'author'} eq ''){ + $book->{'author'}=' '; + } push @realprevissues,$book } } -- 2.39.5