From: Thomas Berezansky Date: Mon, 6 Aug 2012 16:48:19 +0000 (-0400) Subject: Redirect to OILS in staff client X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b029b810bdba473f5c7743f582aab1e84b60fc85;p=working%2FEvergreen.git Redirect to OILS in staff client Signed-off-by: Thomas Berezansky Signed-off-by: Bill Erickson --- 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.