[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5046ced464f8689814409da2e75fc9a8a3c489f0

Evergreen Git git at git.evergreen-ils.org
Mon Mar 25 16:33:31 EDT 2019


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  5046ced464f8689814409da2e75fc9a8a3c489f0 (commit)
      from  759512d66b6abbee768d631f00278c7022f48eda (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 5046ced464f8689814409da2e75fc9a8a3c489f0
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Feb 25 10:24:09 2019 -0800

    LP1797934: follow-up: make the reservations tab in MyOpac optional
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    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 ac85bdfa3a..48b4f0fee5 100644
--- a/Open-ILS/src/templates/opac/parts/config.tt2
+++ b/Open-ILS/src/templates/opac/parts/config.tt2
@@ -270,4 +270,9 @@ ctx.hide_badge_scores = 'false';
 ##############################################################################
 ctx.max_cart_size = 500;
 
+##############################################################################
+# Display booking reservations tab in myopac 
+##############################################################################
+ctx.show_reservations_tab = 'false';
+
 %]
diff --git a/Open-ILS/src/templates/opac/parts/myopac/base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/base.tt2
index 2153a1d358..284fdabc48 100644
--- a/Open-ILS/src/templates/opac/parts/myopac/base.tt2
+++ b/Open-ILS/src/templates/opac/parts/myopac/base.tt2
@@ -6,9 +6,11 @@
         {url => "circs", name => l("Items Checked Out")},
         {url => "holds", name => l("Holds")},
         {url => "prefs", name => l("Account Preferences")},
-        {url => "lists", name => l("My Lists")},
-        {url => "reservations", name => l("Reservations")}
+        {url => "lists", name => l("My Lists")}
     ];
+    IF (ctx.show_reservations_tab == 'true');
+        myopac_pages.push({url => "reservations", name => l("Reservations")});
+    END;
     skin_root = "../"
 %]
     <h2 class="sr-only">[% l('My Account') %]</h2>

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

Summary of changes:
 Open-ILS/src/templates/opac/parts/config.tt2      | 5 +++++
 Open-ILS/src/templates/opac/parts/myopac/base.tt2 | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list