LP1797934: follow-up: make the reservations tab in MyOpac optional
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / myopac / base.tt2
index 2153a1d..284fdab 100644 (file)
@@ -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>