From fbc23c07a9a215f61c48e8905327e2818b97f4e4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 25 Sep 2013 15:18:35 -0400 Subject: [PATCH] PINES/GALILEO avoid auth redirect within library If the physical_loc is set, indicating the patron is physically at a branch (via IP redirect), link directly to the GALILEO site with no authentication pass-through. GALILEO does not requires PINES auth if the client is coming from a known IP address. Signed-off-by: Bill Erickson Conflicts: Open-ILS/src/templates/opac/parts/footer.tt2 --- Open-ILS/src/templates/opac/parts/footer.tt2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/footer.tt2 b/Open-ILS/src/templates/opac/parts/footer.tt2 index bae0a8c6af..23d1dc9df4 100644 --- a/Open-ILS/src/templates/opac/parts/footer.tt2 +++ b/Open-ILS/src/templates/opac/parts/footer.tt2 @@ -5,7 +5,13 @@ [% l('Find a Library Near Me') %]  |  [% l('Help') %]  |  [% l('About PINES') %]  |  - [% gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1) %] + [% 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') %]  |  [% IF ctx.timing %]
-- 2.11.0