From: Galen Charlton Date: Fri, 11 Jan 2013 18:11:48 +0000 (-0500) Subject: LP#1098669: improve handling of Content Cafe external content in staff client X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5fbf6ae971febfc952eea49c077ccee33c603216;p=contrib%2FConifer.git LP#1098669: improve handling of Content Cafe external content in staff client This patch introduces a new TPac content variable, ctx.ext_proto, to specify whether external content should be retrieved via HTTP or HTTPS. ctx.proto can't be used for that purpose since it's set to 'oils' when TPac is running inside the staff client. This fixes a bug where Content Cafe reviews wouldn't display in the staff client bib record page and where clicking on the reviews link from search results would open an empty window. Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm index cb65581107..8787ee515f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm @@ -144,6 +144,7 @@ sub load_context { $ctx->{skin} = $cgi->cookie(OILS_HTTP_COOKIE_SKIN) || 'default'; $ctx->{theme} = $cgi->cookie(OILS_HTTP_COOKIE_THEME) || 'default'; $ctx->{proto} = $cgi->https ? 'https' : 'http'; + $ctx->{ext_proto} = $ctx->{proto}; my $default_locale = $r->dir_config('OILSWebDefaultLocale') || 'en_us'; my @template_paths = uniq $r->dir_config->get('OILSWebTemplatePath'); diff --git a/Open-ILS/src/templates/opac/parts/record/summaryplus.tt2 b/Open-ILS/src/templates/opac/parts/record/summaryplus.tt2 index 27513be9f4..23e21ea1a2 100644 --- a/Open-ILS/src/templates/opac/parts/record/summaryplus.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summaryplus.tt2 @@ -12,7 +12,7 @@ [% ident = attrs.isbn_clean || attrs.upc %] [%- END %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 199d672d47..93e2e3d2ab 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -253,9 +253,9 @@ [% IF ENV.OILS_CONTENT_CAFE_USER %]