[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5e2e8d2cdec76d4f3f822f92268c0c54a66ad497

Evergreen Git git at git.evergreen-ils.org
Fri Mar 2 16:24:45 EST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  5e2e8d2cdec76d4f3f822f92268c0c54a66ad497 (commit)
      from  7a4ca90534dfc2583a9dae685c2ac6153673d38d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5e2e8d2cdec76d4f3f822f92268c0c54a66ad497
Author: Jeff Davis <jdavis at sitka.bclibraries.ca>
Date:   Tue Dec 12 11:22:59 2017 -0800

    LP#1738064: Optionally suppress display of badges in OPAC
    
    Signed-off-by: Jeff Davis <jdavis at sitka.bclibraries.ca>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2
index ac731cd..b0ad747 100644
--- a/Open-ILS/src/templates/opac/parts/config.tt2
+++ b/Open-ILS/src/templates/opac/parts/config.tt2
@@ -260,4 +260,9 @@ ctx.exclude_electronic_checkbox = 0;
 ##############################################################################
 # ctx.cache_key = '001'
 
+##############################################################################
+# Display of badge scores
+##############################################################################
+ctx.hide_badge_scores = 'false';
+
 %]
diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 84b4b74..7797c5e 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -466,7 +466,7 @@ END;
         </span>
     </li>
     [%- END %]
-    [%- IF (ctx.badge_scores.size > 0) %]
+    [%- IF (ctx.badge_scores.size > 0 && ctx.hide_badge_scores != 'true') %]
     <li id='rdetail_badges'>
         <strong class='rdetail_label'>[% l("Badges:") %]</strong>
         <ul>
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index df787f7..c913555 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -160,7 +160,7 @@ END;
                                                         END
                                                     -%]
                                                     </div>
-                                                    [% IF rec.popularity > 0.0 %]
+                                                    [% IF rec.popularity > 0.0 AND ctx.hide_badge_scores != 'true' %]
                                                       <div>
                                                         <span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span>
                                                       </div>
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/badge_display.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/badge_display.adoc
new file mode 100644
index 0000000..23ded49
--- /dev/null
+++ b/docs/RELEASE_NOTES_NEXT/OPAC/badge_display.adoc
@@ -0,0 +1,5 @@
+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 `ctx.hide_badge_scores`
+setting to "true" in `config.tt2`.

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/config.tt2       |    5 +++++
 .../src/templates/opac/parts/record/summary.tt2    |    2 +-
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 +-
 docs/RELEASE_NOTES_NEXT/OPAC/badge_display.adoc    |    5 +++++
 4 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/badge_display.adoc


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list