About

Content Proxy plug-in rewrites native UI URLs in 'show' and 'record' response documents for targets that are configured with a content connector in the torus.

The plug-in will attempt to rewrite these URL fields:

electronic-url
generated-url
fulltexturl

Protocol

The plug-in can be chained to the 'show' command or the 'record' command and its invocation thus follows the protocol of those commands:

Configuration

Registration

plugins.contentproxy = com.indexdata.serviceproxy.plugins.ContentProxyPlugin

Usage in chains

The content proxy plug-in can follow the Pazpar2 relay plug-in. For example:

chains.show = relay,contentproxy   # Rewrites URLs for select targets in 'show' response
chains.record = relay,contentproxy # Rewrites URLs for select targets in 'record' response

Mandatory properties

# The plug-in needs the location of the CF content proxy configuration file in order to 
# be able to exchange access data with the content proxy. For example: 
contentproxy.CPROXY_CONFIG_FILE = /etc/masterkey/cf-proxy/cproxy.cfg   

Optional properties

# None