From 5046ced464f8689814409da2e75fc9a8a3c489f0 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Mon, 25 Feb 2019 10:24:09 -0800 Subject: [PATCH] LP1797934: follow-up: make the reservations tab in MyOpac optional Signed-off-by: Jane Sandberg Signed-off-by: Dan Wells --- 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(-) 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 = "../" %]

[% l('My Account') %]

-- 2.11.0