[Patches] [PATCH] Bug 7020 Items with no checkouts report does not output

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Wed Dec 7 12:10:03 NZDT 2011


From: Jon Aker <jaker at mvwsd.org>
Date: Wed, 7 Dec 2011 12:06:41 +1300
Subject: [PATCH] Bug 7020 Items with no checkouts report does  not output
 call number, barcode or item details

When running the Items with no checkouts report and outputting to
screen, the results do not include any identifying information for
the items. The only information listed is the item count and the
branch location.

Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
---
 .../prog/en/modules/reports/catalogue_out.tt       |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt
index 48ad8a3..d751fc0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt
@@ -65,13 +65,20 @@
 			</tr>
 				[% IF ( looptable.looprow ) %]
 				[% FOREACH loopro IN looptable.looprow %]
-                    [% UNLESS ( loop.odd ) %]<tr class="highlight">
-                    [% ELSE %]<tr>[% END %]
+				[% DEFAULT
+				    loopro.itemcallnumber="No Call Number"
+				    loopro.barcode="No Barcode"
+				    loopro.title="NO TITLE"
+				    loopro.author=""
+				%]
+				    [% UNLESS ( loop.odd ) %]<tr class="highlight">
+		                    [% ELSE %]<tr>[% END %]
+		    
 						<td>[% loop.count %]</td>
-						<td>[% DEFAULT loopro.itemcallnumber="No Call Number" %]</td>
-						<td>[% DEFAULT loopro.barcode="No Barcode" %]</td>
-						<td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% DEFAULT loopro.title="NO TITLE" %]</a></p>
-							[% DEFAULT loopro.author="" %]
+						<td>[% loopro.itemcallnumber %]</td>
+						<td>[% loopro.barcode %]</td>
+ 						<td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% loopro.title %]</a></p>
+							[% loopro.author %]
 							[% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
 						</td>
 					</tr>
-- 
1.7.5.4


More information about the Patches mailing list