Bug 8294: Fix display of serial enumeration for OPAC holds
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 14 Apr 2013 17:29:13 +0000 (19:29 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 23 Apr 2013 12:39:08 +0000 (08:39 -0400)
It turns out that this was not a missing but a broken feature.
This patch corrects the template variables to make enumchron
show up on the item table for item level holds in the OPAC.

To test:
Try to place item level holds on
1) a record where at least one item
2) a record where none of the items
has items.enumchron information.

The column with enumchron should only show for 1), but not
for 2).

Signed-off-by: David Cook <dcook@prosentient.com.au>
Works as described.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt

index 8a8bd03..65b177b 100644 (file)
                               <th>Last location</th>
                             [% END %]
                             <th>Call number</th>
-                            [% IF ( bibitemloo.itemdata_enumchron ) %]
+                            [% IF ( itemdata_enumchron ) %]
                               <th>Vol info</th>
                             [% END %]
                             <th>Information</th>
                                 <td class="holdingbranch">[% itemLoo.holdingBranchName %]</td>
                               [% END %]
                               <td class="call_no">[% itemLoo.callNumber %]</td>
-                              [% IF ( itemLoo.itemdata_enumchron ) %]<!-- test -->
+                              [% IF ( itemdata_enumchron ) %]
                                 <td class="vol_info">[% itemLoo.enumchron %]</td>
                               [% END %]
                               <td class="information">