Make inlib_nav physical_dept-aware
authorJeff Godin <jgodin@tadl.org>
Tue, 19 Mar 2013 21:49:00 +0000 (17:49 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 19 Mar 2013 21:49:00 +0000 (17:49 -0400)
Make the inlib_nav iframe invlude physical_dept-aware. For now, we
use this to let the Kids' Catalog link to the Full Catalog and vice
versa.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/parts/inlib_nav.tt2

index 75dacc5..6acbc7a 100644 (file)
@@ -1,3 +1,7 @@
 <div id="inlib_nav" style="width: 100%; height: 30px;">
+[% IF ctx.physical_dept == 'ys' -%]
+<iframe id="inlib_nav_frame" width="100%" height="29px" style="border: none;" src="http://pcres.lib.tadl.org/inlib_nav_ys.html" scrolling="no"></iframe>
+[% ELSE -%]
 <iframe id="inlib_nav_frame" width="100%" height="29px" style="border: none;" src="http://pcres.lib.tadl.org/inlib_nav.html" scrolling="no"></iframe>
+[% END -%]
 </div>