Bug 7020 Items with no checkouts report does not output call number, barcode or item...
authorJon Aker <jaker@mvwsd.org>
Tue, 6 Dec 2011 23:06:41 +0000 (12:06 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 8 Dec 2011 10:24:14 +0000 (11:24 +0100)
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@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt

index 48ad8a3..d751fc0 100644 (file)
                        </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>