From: Jane Sandberg Date: Mon, 25 Feb 2019 18:24:09 +0000 (-0800) Subject: LP1797934: follow-up: make the reservations tab in MyOpac optional X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5046ced464f8689814409da2e75fc9a8a3c489f0;p=evergreen%2Fmasslnc.git LP1797934: follow-up: make the reservations tab in MyOpac optional Signed-off-by: Jane Sandberg Signed-off-by: Dan Wells --- 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') %]