From: Terran McCanna Date: Mon, 30 Dec 2019 20:39:52 +0000 (-0500) Subject: PINES - indent popularity line on search results page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=28fa563c09e8cf0ead0e1a66a91e4c6902486aab;p=evergreen%2Fpines.git PINES - indent popularity line on search results page 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 --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index c06f440ede..620ac57273 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -35,7 +35,7 @@ - + [% ctx.mylist.size %] [% IF ctx.mylist.size == 1; %] [% l('selected title') %] @@ -45,7 +45,7 @@ - [% l('Clear basket') %] + [% l('Clear basket') %] [% END %] [% l('Book cover') %]
+ 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 %]' />
[% IF rec.popularity > 0.0 AND ctx.hide_badge_scores != 'true' %] -
- [% l('Popularity:') %] [% rec.popularity %] / 5.0 +
+ [% l('Popularity:') %] [% rec.popularity %] / 5.0
[% END %] - [% 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 %] - + [% END %] [% END %] @@ -348,7 +352,7 @@ END; - + [% 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 %] -
- [% note.note | html %] -
+
+ Note: [% note.note | html %] +
[% END %] [% END %] @@ -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="">[% l('Place Hold') %] - +
[%- END -%] [%- IF ebook_api.enabled == 'true' && args.ebook %] @@ -499,11 +503,29 @@ END; [% l("Remove from basket") %] + [% 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); + %] + + + [% label %] + + + Learn about lists + [% END %] + [% 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 %]&Password=[%- - ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="noopener nofollow" vocab=""> + ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="nofollow" vocab=""> [% l('Ratings Icon') %][% l('Reviews & More') %]