LP#1098669: improve handling of Content Cafe external content in staff client
authorGalen Charlton <gmc@esilibrary.com>
Fri, 11 Jan 2013 18:11:48 +0000 (13:11 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 23 Jan 2013 05:19:46 +0000 (00:19 -0500)
commit0082c30b6920a9aaf48b1f77273c833b88c378e1
treec60d6ac620614fb9d8f64de325ca724f5a2abb3a
parent0f7b03cbf9d6c2fe43c09b32e112543b8ebac8a9
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>
Signed-off-by: Bill Erickson <berick@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