Add in-library navigation when physical_loc=23
authorJeff Godin <jgodin@tadl.org>
Mon, 23 Jul 2012 19:09:59 +0000 (15:09 -0400)
committerJeff Godin <jgodin@tadl.org>
Mon, 23 Jul 2012 19:12:13 +0000 (15:12 -0400)
Add in-library navigation for use at TADL-WOOD, when physical_loc (set by URL
param and preserved in cookie) is set to 23 (TADL-WOOD).

This navigation bar is an iframe from an internal system which provides links
to services such as library card signup and public computer reservations.

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

index 19dfc58..1cd5bf8 100644 (file)
@@ -1,5 +1,8 @@
 [%  PROCESS "opac/parts/header.tt2";
     WRAPPER "opac/parts/base.tt2";
+    IF ctx.physical_loc == '23';
+       INCLUDE "opac/parts/inlib_nav.tt2";
+    END;
     INCLUDE "opac/parts/topnav.tt2";
     ctx.page_title = l("Home") %]
     <div id="search-wrapper">
diff --git a/templates_tadlskin/opac/parts/inlib_nav.tt2 b/templates_tadlskin/opac/parts/inlib_nav.tt2
new file mode 100644 (file)
index 0000000..75dacc5
--- /dev/null
@@ -0,0 +1,3 @@
+<div id="inlib_nav" style="width: 100%; height: 30px;">
+<iframe id="inlib_nav_frame" width="100%" height="29px" style="border: none;" src="http://pcres.lib.tadl.org/inlib_nav.html" scrolling="no"></iframe>
+</div>