LP#1879983: Restrict top-level curbside tab display
[Evergreen.git] / Open-ILS / src / templates / opac / parts / myopac / base.tt2
index c6e38e8..e7d2006 100644 (file)
@@ -5,13 +5,15 @@
         {url => "messages", name => l("Messages")},
         {url => "circs", name => l("Items Checked Out")},
         {url => "holds", name => l("Holds")},
-        {url => "holds_curbside", name => l("Curbside Pickup")},
         {url => "prefs", name => l("Account Preferences")},
         {url => "lists", name => l("My Lists")}
     ];
     IF (ctx.show_reservations_tab == 'true');
         myopac_pages.push({url => "reservations", name => l("Reservations")});
     END;
+    IF ctx.curbside_pickup_libs.size;
+        myopac_pages.push({url => "holds_curbside", name => l("Curbside Pickup")});
+    END;
     skin_root = "../"
 %]
     <h2 class="sr-only">[% l('My Account') %]</h2>