|
|
@ -1,11 +1,14 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php"> |
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php"> |
|
|
|
<!-- Red and White XSLT --> |
|
|
|
<!-- Red and White XSLT --> |
|
|
|
<xsl:variable name="BASEURL" select="$baseUrl"/> |
|
|
|
<xsl:param name="BASEURL" select="$baseUrl"/> |
|
|
|
<xsl:variable name="PATH" select="$path"/> |
|
|
|
<xsl:param name="PATH" select="$path"/> |
|
|
|
<xsl:variable name="thisPid" select="$collectionPid"/> |
|
|
|
<xsl:param name="thisPid" select="$collectionPid"/> |
|
|
|
|
|
|
|
<xsl:param name="page" select="$hitPage"/> |
|
|
|
|
|
|
|
<xsl:param name="COLLECTION_TITLE" select="$collectionTitle"/> |
|
|
|
|
|
|
|
<xsl:param name="imagecache_preset">fedora_repository_collection_thumbnail</xsl:param> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="size" select="20"/> |
|
|
|
<xsl:variable name="size" select="20"/> |
|
|
|
<xsl:variable name="page" select="$hitPage"/> |
|
|
|
|
|
|
|
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> |
|
|
|
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> |
|
|
|
<xsl:variable name="end" select="($start - 1) + number($size)"/> |
|
|
|
<xsl:variable name="end" select="($start - 1) + number($size)"/> |
|
|
|
<xsl:variable name="cellsPerRow" select="4"/> |
|
|
|
<xsl:variable name="cellsPerRow" select="4"/> |
|
|
@ -42,7 +45,7 @@ |
|
|
|
<li class="pager-previous"> |
|
|
|
<li class="pager-previous"> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $thisPid, '/-/Collection/', $page - 1)"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $thisPid, '/-/Collection/', $page - 1))"/> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:attribute> |
|
|
|
<Prev |
|
|
|
<Prev |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -53,7 +56,7 @@ |
|
|
|
<li class="pager-next"> |
|
|
|
<li class="pager-next"> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $thisPid, '/-/Collection/', $page + 1)"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $thisPid, '/-/Collection/', $page + 1))"/> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:attribute> |
|
|
|
Next> |
|
|
|
Next> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -64,7 +67,7 @@ |
|
|
|
<li class="pager-previous"> |
|
|
|
<li class="pager-previous"> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $thisPid, '/-/Collection/', $page - 1)"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $thisPid, '/-/Collection/', $page - 1))"/> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:attribute> |
|
|
|
<Prev |
|
|
|
<Prev |
|
|
|
</a>  |
|
|
|
</a>  |
|
|
@ -72,7 +75,7 @@ |
|
|
|
<li class="pager-next"> |
|
|
|
<li class="pager-next"> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $thisPid, '/-/Collection/', $page + 1)"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $thisPid, '/-/Collection/', $page + 1))"/> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:attribute> |
|
|
|
Next> |
|
|
|
Next> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -101,12 +104,12 @@ |
|
|
|
<xsl:variable name="linkUrl"> |
|
|
|
<xsl:variable name="linkUrl"> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> |
|
|
|
<xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID, '/-/collection')"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $PID, '/-/collection'))"/> |
|
|
|
</xsl:when> |
|
|
|
</xsl:when> |
|
|
|
<xsl:otherwise> |
|
|
|
<xsl:otherwise> |
|
|
|
<!--the below is an example of going straight to a datastream instead of the details page. |
|
|
|
<!--the below is an example of going straight to a datastream instead of the details page. |
|
|
|
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/>--> |
|
|
|
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/>--> |
|
|
|
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID)"/> |
|
|
|
<xsl:value-of select="php:functionString('url', concat('fedora/repository/', $PID))"/> |
|
|
|
</xsl:otherwise> |
|
|
|
</xsl:otherwise> |
|
|
|
</xsl:choose> |
|
|
|
</xsl:choose> |
|
|
|
<xsl:value-of select="s:content"/> |
|
|
|
<xsl:value-of select="s:content"/> |
|
|
@ -116,10 +119,11 @@ |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="$linkUrl"/> |
|
|
|
<xsl:value-of select="$linkUrl"/> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:attribute> |
|
|
|
<img> |
|
|
|
<xsl:copy-of select="php:function('fedora_repository_string_to_domnode', php:functionString('fedora_repository_render_image', $PID, 'TN', $imagecache_preset))"/> |
|
|
|
|
|
|
|
<!-- <img> |
|
|
|
<xsl:attribute name="src"><xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID, '/TN')"/></xsl:attribute> |
|
|
|
<xsl:attribute name="src"><xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID, '/TN')"/></xsl:attribute> |
|
|
|
<xsl:attribute name="alt"><xsl:value-of select="$newTitle" disable-output-escaping="yes"/></xsl:attribute> |
|
|
|
<xsl:attribute name="alt"><xsl:value-of select="$newTitle" disable-output-escaping="yes"/></xsl:attribute> |
|
|
|
</img> |
|
|
|
</img> --> |
|
|
|
</a><br clear="all" /> |
|
|
|
</a><br clear="all" /> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> |
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> |
|
|
|