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=56725b3a95277a816619d400a57e75c98b64ada7;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 87ee1d9516..005b1e8253 100644 --- a/Open-ILS/src/templates/opac/parts/footer.tt2 +++ b/Open-ILS/src/templates/opac/parts/footer.tt2 @@ -29,7 +29,14 @@ [% l('Apply for a PINES Library Card') %]
[% END %] - + [% 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 Research Databases') %]
[%- l('Learn More About PINES') %]
@@ -39,7 +46,6 @@
- [% IF ctx.timing %]
[% FOR event IN ctx.timing %]