LP#1916904 Bootstrap OPAC: Call number on Search Results Page
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 25 Feb 2021 14:58:23 +0000 (09:58 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 26 Feb 2021 15:37:43 +0000 (10:37 -0500)
This adds the call number to the search results page when
"Show More Details" is not selected. (This brings back the same
behavior as the pre-bootstrap OPAC.)

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2

index 8395412..6b0726a 100755 (executable)
                                         [%- END; END; -%]
                                     </div>
 
-
+                                    [%- IF !show_detail_view AND args.holdings.size > 0 %]
+                                        <div class="result_call_number">
+                                            [% l('Call number:') %] [% args.holdings.0.label | html %]
+                                        </div>
+                                    [% END %]
 
                                         [% IF rec.popularity > 0.0 AND ctx.hide_badge_scores != 'true' %]
                                         <div><span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span></div>