[Patches] [PATCH] [SIGNED-OFF] Bug 7020 Items with no checkouts report does

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Fri Nov 4 23:40:05 NZDT 2011


From: Jon Aker <jaker at mvwsd.org>
Date: Thu, 13 Oct 2011 15:21:37 +1300
Subject: [PATCH] [SIGNED-OFF] 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: Sophie Meynieux <sophie.meynieux at biblibre.com>
---
 .../prog/en/modules/reports/catalogue_out.tt       |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 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..bcf9131 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>[% loopro.itemcallnumber %]</td>
+						<td>[% loopro.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="" %]
+							[% loopro.author %]
 							[% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
 						</td>
 					</tr>
-- 
1.7.5.4


More information about the Patches mailing list