Add toggle for kids/full view
authorWilliam Rockwood <wrockwood@tadl.org>
Fri, 22 Mar 2013 21:41:19 +0000 (17:41 -0400)
committerWilliam Rockwood <wrockwood@tadl.org>
Fri, 22 Mar 2013 21:41:19 +0000 (17:41 -0400)
- Added button toggle logic to topnav
- Added a class to tadl.css

Signed-off-by: William Rockwood <wrockwood@tadl.org>
css/tadl.css
templates_tadlskin/opac/parts/topnav.tt2

index ab6a133..e0c7e76 100644 (file)
@@ -158,6 +158,9 @@ span.dash_divider {
     top: 15px;
 }
 
+#home_theme_link {
+    float:right;
+}
 #dash_identity {
     float:right;
 }
index c6fe410..a78982d 100644 (file)
                 class="tbutton medium tadlblue" id="home_myopac_link"><span>
                 [% l('My Account') %]
             </span></a>
+            [% IF ctx.physical_dept == 'ys' -%]
+                <a href="[% mkurl(ctx.opac_root _ '/home', {physical_dept => 'default'}) %]"
+                    class="tbutton medium tadlblue" id="home_theme_link"><span>
+                    [% l('Full Catalog') %]
+                </span></a>
+            [% ELSE %]
+                <a href="[% mkurl(ctx.opac_root _ '/home', {physical_dept => 'ys'}) %]"
+                    class="tbutton medium tadlblue" id="home_theme_link"><span>
+                    [% l('Kids\' Catalog') %]
+                </span></a>
+            [% END %]
             <a href="https://www.tadl.org/register"
                 class="tbutton medium tadlblue" id="home_register_link"><span>
                 [% l('Register') %]
         </div>
         [% ELSE %]
         <div id="dash_wrapper">
+            [% IF ctx.physical_dept == 'ys' -%]
+                <a href="[% mkurl(ctx.opac_root _ '/home', {physical_dept => 'default'}) %]"
+                    class="tbutton medium tadlblue" id="home_theme_link"><span>
+                    [% l('Full Catalog') %]
+                </span></a>
+            [% ELSE %]
+                <a href="[% mkurl(ctx.opac_root _ '/home', {physical_dept => 'ys'}) %]"
+                    class="tbutton medium tadlblue" id="home_theme_link"><span>
+                    [% l('Kids\' Catalog') %]
+                </span></a>
+            [% END %]
             <div id="dash_identity">
                 <span id="dash_user">
                     [%  l('[_1] [_2]', ctx.user.first_given_name, ctx.user.family_name) | html %]