Bug 7278: Follow up fixing display of item informaton on detail page
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Tue, 20 Dec 2011 07:40:03 +0000 (08:40 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 10 Jan 2012 21:41:52 +0000 (22:41 +0100)
Fixes a display problem in the item table on staff detail page.

To test:
Add a record with 3 items:
- 1 with copynumber
- 1 with materials specified
- 1 with opac notes

Before patch the table will be broken a bit and the headings
don't match the contents (wrong sequence).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 5740c1f..6238f05 100644 (file)
@@ -248,15 +248,14 @@ function verify_images() {
                 <th>Status</th>
                 <th>Last seen</th>
                 <th>Barcode</th>
-               [% IF materials %]<th>Materials Specified</th>[% END %]
                 [% IF ( volinfo ) %]<th>Publication Details</th>[% END %]
                 [% IF ( itemdata_uri ) %]<th>url</th>[% END %]
                 [% IF ( itemdata_copynumber ) %]<th>Copy No.</th>[% END %]
+                [% IF materials %]<th>Materials Specified</th>[% END %]
                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine Label</th>[% END %]
                [% IF ( hostrecords ) %]<th>Host Records</th>[% END %]
-               [% IF ( analyze ) %]<th>Used in</th>[% END %]
-               [% IF ( analyze ) %]<th></th>[% END %]
+               [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
             </tr>
             [% FOREACH itemloo IN itemloop %]
                 <tr>
@@ -378,8 +377,8 @@ function verify_images() {
                                [% IF ( itemdata_copynumber ) %]
                                        <td class="copynumber">[% itemloo.copynumber %]</td>
                                [% END %]
-               [% IF itemloo.materials %]
-                   <td> [% itemloo.materials %] </td>
+               [% IF materials %]
+                   <td class="materials"> [% itemloo.materials %] </td>
                [% END %]
                 [% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]