Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
##############################################################################
# ctx.cache_key = '001'
+##############################################################################
+# Display of badge scores
+##############################################################################
+badge_scores.display = 'true';
+
%]
</span>
</li>
[%- END %]
- [%- IF (ctx.badge_scores.size > 0) %]
+ [%- IF (badge_scores.display == 'true' && ctx.badge_scores.size > 0) %]
<li id='rdetail_badges'>
<strong class='rdetail_label'>[% l("Badges:") %]</strong>
<ul>
END
-%]
</div>
- [% IF rec.popularity > 0.0 %]
+ [% IF badge_scores.display == 'true' AND rec.popularity > 0.0 %]
<div>
<span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span>
</div>
--- /dev/null
+Optional Display of Badges in OPAC
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+A new setting controls whether badges (popularity, etc.) are displayed in the
+OPAC. If you do not wish badges to be displayed, set the `badge_scores.display`
+setting to "true" in `config.tt2`.