Add department-specific iframes for ys dept
authorJeff Godin <jgodin@tadl.org>
Mon, 11 Mar 2013 20:10:10 +0000 (16:10 -0400)
committerJeff Godin <jgodin@tadl.org>
Mon, 11 Mar 2013 20:10:10 +0000 (16:10 -0400)
Add department-specific iframes for Youth Services (ys) department
sliders. This relies on a ctx.physical_dept variable being set to
'ys'.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/home.tt2
templates_tadlskin/opac/parts/homesearch_ys.tt2 [new file with mode: 0644]

index 1cd5bf8..1d0a6ea 100644 (file)
     <div id="content-wrapper">
         <div id="main-content-home">
             <div class="common-full-pad"></div>
-            [% INCLUDE "opac/parts/homesearch.tt2" %]
+            [%- IF ctx.physical_dept == 'ys' %]
+                [% INCLUDE "opac/parts/homesearch_ys.tt2" %]
+            [%- ELSE %]
+                [% INCLUDE "opac/parts/homesearch.tt2" %]
+           [%- END -%]
             <div class="common-full-pad"></div>        
         </div>
     </div>
diff --git a/templates_tadlskin/opac/parts/homesearch_ys.tt2 b/templates_tadlskin/opac/parts/homesearch_ys.tt2
new file mode 100644 (file)
index 0000000..32b3e46
--- /dev/null
@@ -0,0 +1,6 @@
+<div id="homesearch_main_logo">
+<h1 class="home-header">[% l("New Books"); %]</h1>
+<iframe width="960" height="240" src="https://www.tadl.org/slider/youth.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="background:#F0F2F5;text-align:center"></iframe>
+<h1 class="home-header">[% l("On Display"); %]</h1>
+<iframe width="960" height="200" src="https://www.tadl.org/slider/youthdisplay.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="background:#F0F2F5;text-align:center"></iframe>
+</div>