From 199157ef846c8abfea0dedb21bdee97e87f51ba2 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/footer.tt2 b/Open-ILS/src/templates/opac/parts/footer.tt2 index 5598f35e88..a0ba10a620 100644 --- a/Open-ILS/src/templates/opac/parts/footer.tt2 +++ b/Open-ILS/src/templates/opac/parts/footer.tt2 @@ -28,7 +28,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') %]
@@ -38,7 +45,6 @@
- [% IF ctx.timing %]
[% FOR event IN ctx.timing %] -- 2.11.0