From edd947c51792037202bfad6a78cd7427e8e25041 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Mon, 6 Aug 2012 12:48:19 -0400 Subject: [PATCH] Redirect to OILS in staff client Signed-off-by: Thomas Berezansky Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 5d40319716..94fdc2cc9f 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. -- 2.43.2