* adds a GALILEO link in the footer template
* adds a new TPAC URL target for /eg/opac/galileo, which redirects the
user to the GALILEO URL, ensuring the user is first logged in.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Conflicts:
Open-ILS/src/templates/opac/parts/footer.tt2
return $self->load_myopac_prefs if $path =~ m|opac/myopac/prefs|;
return $self->load_sms_cn if $path =~ m|opac/sms_cn|;
+ return $self->load_galileo if $path =~ m|opac/galileo|;
+
return Apache2::Const::OK;
}
);
}
+
+sub load_galileo {
+ my $self = shift;
+
+ my $token = $U->simplereq(
+ 'open-ils.actor',
+ 'open-ils.actor.session.safe_token',
+ $self->ctx->{authtoken}
+ );
+
+ return $self->generic_redirect(
+ "https://www.galileo.usg.edu/express?pinesid=$token");
+}
+
+
1;
<a href="[% mkurl(ctx.opac_root _ '/register') %]">[%
l('Request Library Card') %]</a> |
[% ELSE %]
+ [% gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1) %]
+ <a href="[% gurl %]"> [% l('GALILEO') %] </a> |
<a href="http://example.com">[% l('Bottom Link 2') %]</a> |
[% END %]
<a href="http://example.com">[% l('Bottom Link 3') %]</a> |