Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
frontend:pager [2012/05/17 17:20] giancarlo |
frontend:pager [2012/05/22 22:49] giancarlo |
====== Custom Pager ====== | ====== Custom Pager and Collection rendering ====== |
| |
Edit xsl/sparql_to_html.xsl in Islandora module: | Edit xsl/sparql_to_html.xsl in Islandora module: |
</xsl:when> | </xsl:when> |
<xsl:otherwise> | <xsl:otherwise> |
| <!--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="concat($BASEURL, '/fedora/repository/', $PID)"/> | <xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID)"/> |
</xsl:otherwise> | </xsl:otherwise> |
<xsl:value-of select="s:content"/> | <xsl:value-of select="s:content"/> |
</xsl:variable> | </xsl:variable> |
<td valign="top" width="25%"> | <xsl:choose> |
<table class="collcell"> | <xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> |
<tr> | <td valign="top" width="25%"> |
<td class="cellthumb" height="250px"> | <table class="collcell1"> |
<a> | <tr> |
<xsl:attribute name="href"> | <td class="celldescr1"> |
<xsl:value-of select="$linkUrl"/> | <xsl:value-of select="$newTitle" disable-output-escaping="yes"/> |
</xsl:attribute> | </td> |
<img> | </tr> |
<xsl:attribute name="src"> | <tr> |
<xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID, '/TN')"/> | <td class="cellthumb1"> |
</xsl:attribute> | <a> |
<xsl:attribute name="alt"> | <xsl:attribute name="href"> |
<xsl:value-of select="$newTitle" disable-output-escaping="yes"/> | <xsl:value-of select="$linkUrl"/> |
</xsl:attribute> | </xsl:attribute> |
</img> | <img> |
</a> | <xsl:attribute name="src"> |
<br clear="all"/> | <xsl:value-of select="concat($BASEURL, '/fedora/repository/', $PID, '/TN')"/> |
</td> | </xsl:attribute> |
</tr> | <xsl:attribute name="alt"> |
<tr> | <xsl:value-of select="$newTitle" disable-output-escaping="yes"/> |
<td class="celldescr"> | </xsl:attribute> |
<xsl:choose> | </img> |
<xsl:when test="($CONTENTMODEL='islandora:pageCModel')"> | </a> |
| <!-- <br clear="all"/> --> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </xsl:when> |
| <xsl:otherwise> |
| <td valign="top" width="25%"> |
| <table class="collcell"> |
| <tr> |
| <td class="cellthumb" height="250px"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:value-of select="$linkUrl"/> |
| </xsl:attribute> |
| <img> |
| <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> |
| </img> |
| </a> |
| <br clear="all"/> |
| </td> |
| </tr> |
| <tr> |
| <td class="celldescr"> |
| <xsl:choose> |
| <xsl:when test="($CONTENTMODEL='islandora:pageCModel')"> |
page <xsl:value-of select="substring-after($newTitle, '- page')" disable-output-escaping="yes"/> | page <xsl:value-of select="substring-after($newTitle, '- page')" disable-output-escaping="yes"/> |
</xsl:when> | </xsl:when> |
<xsl:otherwise> | <xsl:otherwise> |
<xsl:value-of select="$newTitle" disable-output-escaping="yes"/> | <xsl:value-of select="$newTitle" disable-output-escaping="yes"/> |
</xsl:otherwise> | </xsl:otherwise> |
</xsl:choose> | </xsl:choose> |
</td> | </td> |
</tr> | </tr> |
</table> | </table> |
</td> | </td> |
| </xsl:otherwise> |
| </xsl:choose> |
<xsl:if test="(position() = last()) and (position() < $cellsPerRow)"> | <xsl:if test="(position() = last()) and (position() < $cellsPerRow)"> |
<xsl:call-template name="FillerCells"> | <xsl:call-template name="FillerCells"> |