PINES - indent popularity line on search results page rel_3_4_1_pines_popularity_indent
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 30 Dec 2019 20:39:52 +0000 (15:39 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Mon, 30 Dec 2019 20:39:52 +0000 (15:39 -0500)
We recently enabled popularity ranking visibility in the OPAC,
but it isn't indented with the rest of the item info. This adds
the indent and un-does the bolding since it is distracting.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/result/table.tt2

index c06f440..620ac57 100644 (file)
@@ -35,7 +35,7 @@
                     <input type="checkbox" id="select_all_records"></input>
                     <label for="select_all_records">[% l('Select [_1] - [_2]', ctx.result_start, ctx.result_stop) %]</label>
                     <span id="selected_records_summary">
-                        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
+                        <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec opac_links" rel="nofollow" vocab="">
                           <span id="selected_records_count">[% ctx.mylist.size %]</span>
                           [% IF ctx.mylist.size == 1; %]
                               [% l('selected title') %]
@@ -45,7 +45,7 @@
                         </a>
                         <span id="hit_selected_record_limit" class="hidden">Reached limit!</span>
                     <span>
-                    <a id="clear_basket" href="#">[% l('Clear basket') %]</a>
+                    <a id="clear_basket" href="#" class="opac_links">[% l('Clear basket') %]</a>
                 </div>
                 [% END %]
                 <table id="result_table_table" title="[% l('Search Results') %]"
                                             <td class='result_table_pic_header'>
                                                 <a href="[% mkurl(record_url_path, add_parms, del_parms); %]">
                                                  <img alt="[% l('Book cover') %]"
-                                                        name='item_jacket' class='result_table_pic' width="55"
-                                                        src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/r/[% rec.bre_id | uri %]' /></a><br />
+                                                        name='item_jacket' class='result_table_pic' width="85" style="border:1px solid #ccc;margin:0px 15px 5px 0px;"
+                                                        src='[% ctx.media_prefix %]/opac/extras/ac/jacket/medium/r/[% rec.bre_id | uri %]' /></a><br />
                                             </td>
                                             <td class='result_table_title_cell' name='result_table_title_cell'>
                                                <div class="result_metadata">
@@ -189,34 +189,38 @@ END;
                                                                 src="[% format.icon %]" /> 
                                                             [% format.label | html %]
                                                         [% END %]
-                                                    [%- END %]
-                                                    [%- UNLESS show_detail_view;
+                                                    [%- END %]<br/>
+                                                    [%- UNLESS CGI.param('detail_record_view')
+                                                            OR (show_more_details.default == 'true'
+                                                            OR show_more_details.default == 'hide');
                                                             IF attrs.pubdate;
                                                                 pubdate_clean = attrs.pubdate | html;
+                                                                l("Publication Date:");
                                                                 l(" ([_1])", pubdate_clean);
                                                             ELSIF attrs.copyright;
                                                                 copyright_clean = attrs.copyright | html;
+                                                                l("Copyright Date:");
                                                                 l(" ([_1])", copyright_clean);                                                                
                                                             END;
                                                         END
                                                     -%]
                                                     </div>
                                                     [% IF rec.popularity > 0.0 AND ctx.hide_badge_scores != 'true' %]
-                                                      <div>
-                                                        <span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span>
+                                                      <div class="result_count">
+                                                        <span>[% l('Popularity:') %] [% rec.popularity %] / 5.0</span>
                                                       </div>
                                                     [% END %]
                                                     <table 
                                                        role="presentation"
                                                        title="[% l('Record Holdings Summary') %]"
-                                                       class="table_no_border_space table_no_cell_pad table_no_border results_info_table">
-                                                        [% UNLESS rec.mmr_id OR show_detail_view %]
+                                                       class="table_no_border_space table_no_cell_pad table_no_border results_info_table call_number_box">
+                                                        [% UNLESS rec.mmr_id %]
                                                            [% 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.label | html %]</td>
+                                                            <td><strong>[% args.holdings.0.label | html %]</strong></td>
                                                         </tr>
                                                            [% END %]
                                                         [% END %]
@@ -348,7 +352,7 @@ END;
                                                                 <td valign='top'>
                                                                     <strong>[% l('Electronic resource') %]</strong>
                                                                 </td>
-                                                                <td><a href="[% uri.href %]" class="uri_link" target="_blank" rel="noopener">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+                                                                <td><a href="[% uri.href %]" class="uri_link" target="_blank">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
                                                             </tr>
                                                             [% END %]
                                                          [% END %]
@@ -414,9 +418,9 @@ END;
                                                     [% IF ctx.bookbag;
                                                         rec_id = rec.id;
                                                         FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
-                                                    <div class="result-bookbag-item-note">
-                                                        [% note.note | html %]
-                                                    </div>
+                                                            <div class="result-bookbag-item-note">
+                                                                Note: [% note.note | html %]
+                                                            </div>
                                                         [% END %]
                                                     [% END %]
                                                 </div>
@@ -449,10 +453,10 @@ END;
                                                                 href="[% mkurl(ctx.opac_root _ '/place_hold',
                                                                     add_parms, del_parms) %]"
                                                                 [% html_text_attr('title', l('Place Hold on [_1]', attrs.title)) %]
-                                                                    class="no-dec" rel="nofollow" vocab=""><img
+                                                                    class="no-dec" rel="nofollow" vocab=""  style="margin-left:17px;"><img
                                                                 src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
                                                                 alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
-                                                        </div>
+                                                        </div><br/>
 [%- END -%]
 
                                                         [%- IF ebook_api.enabled == 'true' && args.ebook %]
@@ -499,11 +503,29 @@ END;
                                                                 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
                                                                 [% l("Remove from basket") %]
                                                             </a>
+                                                                                                               <!-- PINES Customization: Bring back list link even though it doesn't fully work in the staff client -->
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
                                                                 END;
                                                             %]
-                                                        [% END %]
+                                                            [%  ELSE;
+                                                                operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
+                                                                label = (operation == "add") ?  l("Add to my list") : l("Remove from my list");
+                                                                title_label = (operation == "add") ? 
+                                                                  l("Add [_1] to my list", attrs.title) : 
+                                                                  l("Remove [_1] from my list", attrs.title);
+                                                                href = mkurl(ctx.opac_root _ '/mylist/' _ operation, 
+                                                                        {record => rec.id, anchor => 'record_' _ rec.id}, 1);
+                                                            %]      
+                                                            <a href="[% href %]" class="no-dec" 
+                                                                [% html_text_attr('title', title_label) %] rel="nofollow" vocab="">
+                                                                <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="" />
+                                                                [% label %]
+                                                            </a>
+                                                                                                                       <a href="http://pines.georgialibraries.org/catalog-help#my_list" target="_blank">
+                                                                                                                           <img src="[% ctx.media_prefix %]/images/question-mark.png" alt="Learn about lists" border=0></a>
+                                                            [% END %]
+                                                        
                                                         </div>
                                                     [% END %]
                                                         [% IF ENV.OILS_CONTENT_CAFE_USER %]
@@ -513,7 +535,7 @@ END;
                                                                [% html_text_attr('title', l('Reviews and More for [_1]', attrs.title)) %]
                                                                 href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- 
                                                                     ENV.OILS_CONTENT_CAFE_USER %]&amp;Password=[%-
-                                                                    ENV.OILS_CONTENT_CAFE_PASS %]&amp;ItemKey=[% ident | uri %]&amp;Options=Y" rel="noopener nofollow" vocab="">
+                                                                    ENV.OILS_CONTENT_CAFE_PASS %]&amp;ItemKey=[% ident | uri %]&amp;Options=Y" rel="nofollow" vocab="">
                                                                 <img src='[% ctx.media_prefix %]/images/starz.png[% ctx.cache_key %]' alt="[% l('Ratings Icon') %]"/>
                                                                 <span class="results_reviews">[% l('Reviews &amp; More') %]</span>
                                                             </a>