Display abstract/summary in search results
authorWilliam Rockwood <wrockwood@tadl.org>
Fri, 23 Nov 2012 16:48:54 +0000 (11:48 -0500)
committerWilliam Rockwood <wrockwood@tadl.org>
Fri, 23 Nov 2012 16:48:54 +0000 (11:48 -0500)
- Added truncated args.summaries.0 to result table, below call number
- Modified copy counts to be <strong>

Signed-off-by: William Rockwood <wrockwood@tadl.org>
templates_tadlskin/opac/parts/result/copy_counts.tt2
templates_tadlskin/opac/parts/result/table.tt2

index 32bc347..09ef6fe 100644 (file)
 %]
 <div class="result_count">
 [% IF ctx.get_aou(attrs.copy_counts.$depth.org_unit).opac_visible == 't' AND !ctx.is_staff %]
-    [% l('[_1] of [quant,_2,copy,copies] available [_3].',
+    <strong>[% l('[_1] of [quant,_2,copy,copies] available [_3].',
         attrs.copy_counts.$depth.available,
         attrs.copy_counts.$depth.count,
         ou_name) | html
-    %]
+    %]</strong>
 [% END %]
 </div>
 [%-     END;
     
 %]
 [%- IF attrs.plib_copy_counts.$depth.count > 0; %]
-<div class="result_count preferred">[%
+<div class="result_count preferred"><strong>[%
      l('[_1] of [quant,_2,copy,copies] available [_3].',
         attrs.plib_copy_counts.$depth.available,
         attrs.plib_copy_counts.$depth.count,
         ou_name) | html
-    %]
+    %]</strong>
 </div>
 [%- END %]
 [%- END %]
index d48dfa1..9298707 100644 (file)
@@ -81,7 +81,7 @@
                                                         [% IF args.holdings.size > 0 %]
                                                         <tr name='bib_cn_list' class='result_table_title_cell'>
                                                             <td valign='top'>
-                                                                <strong>[% l('Call number:') %]</strong>
+                                                                <strong>[% l('Call number: ') %]</strong>
                                                             </td>
                                                             <td>[% args.holdings.0.label | html %]</td>
                                                         </tr>
                                                         </tr>
                                                         [% END %]
 
+                                                        [% IF args.summaries %]
+                                                        <tr name='bib_summary' class='result_table_summary'>
+                                                                <td valign='top' colspan='2'>
+                                                                    [% args.summaries.0 | truncate(200) %]
+                                                                </td>
+                                                        </tr>
+                                                        [% END %]
+
                                                         [% IF CGI.param('detail_record_view') %]
                                                         <!-- These fields are visible when viewing the results page in 'detailed' mode -->