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:48:06 +0000 (00:48 -0500)
commit5fbf6ae971febfc952eea49c077ccee33c603216
tree293f4a4e71f2c3915752c75fb69fd268952acfdd
parent30504d3ba9ebb6b1e33a344981d1139cae27d4c0
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