From 838a58a07f6a04a09a97210c82150090dd8013a2 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 4 May 2015 16:49:01 -0400 Subject: [PATCH] Adding GALILEO in-library link logic to topnav links. --- Open-ILS/src/templates/opac/parts/topnav_links.tt2 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/topnav_links.tt2 b/Open-ILS/src/templates/opac/parts/topnav_links.tt2 index c269f66d09..0002952594 100644 --- a/Open-ILS/src/templates/opac/parts/topnav_links.tt2 +++ b/Open-ILS/src/templates/opac/parts/topnav_links.tt2 @@ -18,7 +18,14 @@ [% l('Kids Catalog') %] [% l("Kids' Catalog") %] - + [% IF ctx.physical_loc; + # patron is at the branch, no redirect needed + gurl = 'http://www.galileo.usg.edu/express'; + ELSE; + # send patron to galileo auth redirector + gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1); + END %] + [% l('GALILEO') %] [% l('GALILEO Research Databases') %] @@ -28,4 +35,4 @@ -
\ No newline at end of file +
-- 2.11.0