From: Mike Rylander Date: Wed, 3 Feb 2016 18:40:14 +0000 (-0500) Subject: LP#1549505: Show popularity if > 0 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6f2edaa07a3a9bea9148096f95df57f91d5159aa;p=working%2FEvergreen.git LP#1549505: Show popularity if > 0 Also Pass badge list to record detail page if coming from a search, to retain badge context Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 251d069726..06ee760568 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -58,11 +58,11 @@ ELSE; # for MR, bre_id refers to the master and in # this case, only, record - record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id); + record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id, { badges => rec.badges.join(',') }); END; hold_type = 'M'; ELSE; - record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id); + record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id, { badges => rec.badges.join(',') }); hold_type = 'T'; END; -%] @@ -159,6 +159,11 @@ END; END -%] + [% IF rec.popularity > 0.0 %] +
+ [% l('Popularity:') %] [% rec.popularity %] / 5.0 +
+ [% END %]