[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. b029b810bdba473f5c7743f582aab1e84b60fc85
Evergreen Git
git at git.evergreen-ils.org
Mon Aug 6 12:59:19 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_3 has been updated
via b029b810bdba473f5c7743f582aab1e84b60fc85 (commit)
from 0b8fa1397d0c400f8e85829aa867c4cfbbf2b6ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b029b810bdba473f5c7743f582aab1e84b60fc85
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Mon Aug 6 12:48:19 2012 -0400
Redirect to OILS in staff client
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index 5d40319..94fdc2c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -514,8 +514,8 @@ sub check_1hit_redirect {
my $base_url = sprintf(
'%s://%s%s/record/%s',
- $ctx->{proto},
- $self->apache->hostname,
+ ($ctx->{is_staff} ? 'oils' : $ctx->{proto}),
+ ($ctx->{is_staff} ? 'remote' : $self->apache->hostname),
$self->ctx->{opac_root},
$$rec_ids[0],
);
@@ -523,7 +523,7 @@ sub check_1hit_redirect {
# If we get here from the same record detail page to which we
# now wish to redirect, do not perform the redirect. This
# approach seems to work well, with the rare exception of
- # performing a new serach directly from the detail page that
+ # performing a new search directly from the detail page that
# happens to result in the same single hit. In this case, the
# user will be left on the search results page. This could be
# overcome w/ additional CGI, etc., but I'm not sure it's necessary.
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list