From 5ff4fdb7409cb916ea35ab191d9bc60c0a95990e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 9 Sep 2011 16:41:45 -0400 Subject: [PATCH] TPac: Review & More content cafe option on results page Links to a new top-level page. Also cleaned up some bare &'s in the content cafe url. added a ctx->proto = http / https var. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm | 1 + .../web/templates/default/opac/parts/record/summaryplus.tt2 | 4 ++-- Open-ILS/web/templates/default/opac/parts/result/table.tt2 | 11 +++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm index 8226be799b..6e7bb0b267 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm @@ -154,6 +154,7 @@ sub load_context { $ctx->{base_url} = $cgi->url(-base => 1); $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->{locale} = $cgi->cookie(OILS_HTTP_COOKIE_LOCALE) || diff --git a/Open-ILS/web/templates/default/opac/parts/record/summaryplus.tt2 b/Open-ILS/web/templates/default/opac/parts/record/summaryplus.tt2 index d397b48678..7796213fa8 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/summaryplus.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/summaryplus.tt2 @@ -12,8 +12,8 @@ [% ident = attrs.isbn_clean || attrs.upc %] diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index 2ec11ac44d..e3114cdea4 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -167,6 +167,17 @@ src="[% ctx.media_prefix %]/images/clipboard.png" /> + [% IF ENV.OILS_CONTENT_CAFE_USER %] + + [% END %] -- 2.11.0