This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function islandora_object_datastream_tokened_access_callback($perm, $object = NULL, $datastream = NULL) { | |
module_load_include('inc', 'islandora', 'includes/utilities'); | |
$token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING); | |
$token_access = islandora_validate_object_token($object->id, $datastream->id, $token); | |
if(islandora_object_datastream_access_callback($perm, $object, $datastream) || $token_access) { // | |
return TRUE; | |
} | |
else { | |
return FALSE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:choose> | |
<xsl:when test="@type='uri' or substring(normalize-space(text()), 0, 5) = 'http'"> | |
<a href="{text()}"> | |
<xsl:value-of select="text()"/> | |
</a> | |
</xsl:when> | |
<xsl:otherwise> | |
<xsl:value-of select="text()"/> | |
</xsl:otherwise> | |
</xsl:choose> |
NewerOlder