From: Bill Erickson Date: Wed, 25 Sep 2013 19:18:35 +0000 (-0400) Subject: PINES/GALILEO avoid auth redirect within library X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fbc23c07a9a215f61c48e8905327e2818b97f4e4;p=evergreen%2Fpines.git 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 --- 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 %]