LP#1098669: improve handling of Content Cafe external content in staff client user/gmcharlt/lp1098669_set_proto_for_external_content_links
authorGalen Charlton <gmc@esilibrary.com>
Fri, 11 Jan 2013 18:11:48 +0000 (13:11 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 11 Jan 2013 18:11:48 +0000 (13:11 -0500)
commite3337418d86b26ff10c9d527b331d66bee1d8af6
tree226ca256381bd77584a7a95fd5c0c8909e820e37
parent8e854c6a4edafe506780573fafe35c5e647a3e58
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 <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
Open-ILS/src/templates/opac/parts/record/summaryplus.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2