Bug 15172: (follow-up)Serial enumchron/sequence not visible when returning/checking...
authorHector Castro <hector.hecaxmmx@gmail.com>
Wed, 2 Dec 2015 16:56:25 +0000 (10:56 -0600)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 14:14:08 +0000 (14:14 +0000)
Display br and span tag only if the value enumchron exists.

To test
-Apply patches
-Follow the previous test plan
-Checkin whichever material (e.g., book) without sequence or enumchrom
-Open up source code for checkin page, search under title and
verify that b and span tags do not appear

Signed-off-by: Alain et Aurélie <aurelie.berut@enssib.fr>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index 77a2bc2..fbfbd0c 100644 (file)
@@ -636,8 +636,10 @@ $(document).ready(function () {
             <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
                     [% riloo.itemtitle |html %]
                 </a>
-                <br/>
-                <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
+                [% IF ( riloo.enumchron ) %]
+                    <br/>
+                    <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
+                [% END %]
             </td>
             <td class="ci-author">[% riloo.itemauthor %]</td>
             <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&amp;itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>