T-PAC: Do not display a call number if we don't have one
authorDan Scott <dan@coffeecode.net>
Tue, 16 Aug 2011 20:02:17 +0000 (16:02 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 16 Aug 2011 20:02:17 +0000 (16:02 -0400)
Electronic records might not have a call number, so don't try to display
one if there isn't one (in search results).

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/default/opac/parts/result/table.tt2

index 6593342..e6343d4 100644 (file)
                                                     </div>
                                                     <table cellpadding="0" cellspacing="0" border="0"
                                                         class="results_info_table">
+                                                        [% IF args.holdings.size > 0 %]
                                                         <tr name='bib_cn_list' class='result_table_title_cell'>
                                                             <td valign='top'>
                                                                 <strong>[% l('Call number:') %]</strong>
                                                             </td>
-                                                            <td>[% args.holdings.0 %]</td>
+                                                            <td>[% args.holdings.0.label %]</td>
                                                         </tr>
+                                                        [% END %]
 
                                                         [% IF CGI.param('detail_record_view') %]
                                                         <!-- These fields are visible when viewing the results page in 'detailed' mode -->