Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
reloaded:is_req [2017/07/28 16:53] giancarlo |
reloaded:is_req [2017/08/01 16:56] giancarlo |
</WRAP> | </WRAP> |
| |
* Fedora policy update | * Fedora policy update [not sure we need this] |
| |
If yuo plan to redirect Tile source URL from front-end to directly back-end, you need to add Image Server IP to /usr/local/fedora/data/fedora-xacml-policies/repository-policies/default/deny-apim-if-not-localhost.xml | If yuo plan to redirect Tile source URL from front-end to directly back-end, you need to add Image Server IP to /usr/local/fedora/data/fedora-xacml-policies/repository-policies/default/deny-apim-if-not-localhost.xml |
preg_match('/datastream%2[fF](.*)%2[fF]view/', $variables['settings']['options']['tileSources'][0], $matches); | preg_match('/datastream%2[fF](.*)%2[fF]view/', $variables['settings']['options']['tileSources'][0], $matches); |
$dsid = isset($matches[1]) ? $matches[1] : NULL; | $dsid = isset($matches[1]) ? $matches[1] : NULL; |
$identifier = "http://150.145.48.37:8080/fedora/objects/".$pid."/datastreams/".$dsid."/content"; | $identifier = "http://FEDORA_IP_or_FQDN:8080/fedora/objects/".$pid."/datastreams/".$dsid."/content"; |
$variables['settings']['options']['tileSources'] = islandora_openseadragon_identifier_tile_source($identifier); | $variables['settings']['options']['tileSources'] = islandora_openseadragon_identifier_tile_source($identifier); |
} | } |
</code> | </code> |
</WRAP> | </WRAP> |
| This function replaces tile source URL and remove token, so IIIF server download directly from fedora avoiding network loop with front-end. |