From 6f2edaa07a3a9bea9148096f95df57f91d5159aa Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 3 Feb 2016 13:40:14 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/result/table.tt2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 %]