TPAC: Add format icon back to search results
authorBen Shum <bshum@biblio.org>
Wed, 25 Sep 2013 21:40:57 +0000 (17:40 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 23:03:27 +0000 (19:03 -0400)
As a compromise, add the format icon back to the search results to sit alongside
the fully spelled out format label for the record. Having the label next to the
icon helps to inform on the icon without the need to hover.

Local sites may consider customizing this to their personal desires.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/result/table.tt2

index 18b55e3..81ca68a 100644 (file)
@@ -95,7 +95,7 @@ END;
                                                     </div>
                                                     <div id='bib_format' class='result_table_title_cell'>
                                                     [%- IF attrs.format_label; %]
-                                                        [% attrs.format_label; %]
+                                                        <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" /> [% attrs.format_label; %]
                                                     [%- END %]
                                                     [%- UNLESS CGI.param('detail_record_view')
                                                             OR (show_more_details.default == 'true'