Changeset 30841
- Timestamp:
- 2016-09-22T12:14:33+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl
r30825 r30841 23 23 24 24 <xsl:template name="siteName"> 25 <xsl:value-of select="/page/pageResponse/ metadataList/metadata[@name='siteName']"/>25 <xsl:value-of select="/page/pageResponse/displayItemList/displayItem[@name='siteName']"/> 26 26 </xsl:template> 27 27 28 28 <xsl:template name="siteDescription"> 29 <xsl:value-of select="/page/pageResponse/ metadataList/metadata[@name='siteDescription']"/>29 <xsl:value-of select="/page/pageResponse/displayItemList/displayItem[@name='siteDescription']"/> 30 30 </xsl:template> 31 31 … … 59 59 <xsl:choose> 60 60 <xsl:when test="/page/pageResponse/collection"> 61 <xsl:value-of select="/page/pageResponse/collection/displayItem [@name='name']"/>61 <xsl:value-of select="/page/pageResponse/collection/displayItemList/displayItem[@name='name']"/> 62 62 </xsl:when> 63 63 <xsl:otherwise>All Collections</xsl:otherwise> … … 213 213 <a href="{$group_href}" title="{$desc}"> 214 214 <img class="groupLinkImage"> 215 <xsl:attribute name="alt"><xsl:value-of select="displayItem [@name='name']"/></xsl:attribute>215 <xsl:attribute name="alt"><xsl:value-of select="displayItemList/displayItem[@name='name']"/></xsl:attribute> 216 216 <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/<xsl:value-of select="backgroundImage"/></xsl:attribute> 217 217 </img> … … 239 239 240 240 <xsl:template name="collectionLinkWithImage"> 241 <xsl:variable name="desc"><xsl:value-of select="displayItem [@name='shortDescription']"/></xsl:variable>241 <xsl:variable name="desc"><xsl:value-of select="displayItemList/displayItem[@name='shortDescription']"/></xsl:variable> 242 242 <xsl:variable name="coll_href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="@name"/>/page/about<xsl:choose><xsl:when test="libraryParamList/param">?<xsl:for-each select="libraryParamList/param"><xsl:value-of select="@name"/>=<xsl:value-of select="@default"/>&</xsl:for-each></xsl:when></xsl:choose></xsl:variable> 243 243 <xsl:choose> 244 <xsl:when test="displayItem [@name='smallicon']">244 <xsl:when test="displayItemList/displayItem[@name='smallicon']"> 245 245 <a href="{$coll_href}" title="{$desc}"> 246 246 <img class="collectionLinkImage"> 247 <xsl:attribute name="alt"><xsl:value-of select="displayItem [@name='name']"/></xsl:attribute>248 <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItem [@name='smallicon']"/></xsl:attribute>247 <xsl:attribute name="alt"><xsl:value-of select="displayItemList/displayItem[@name='name']"/></xsl:attribute> 248 <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItemList/displayItem[@name='smallicon']"/></xsl:attribute> 249 249 </img> 250 250 </a> … … 254 254 <div class="collectionLink ui-corner-all"> 255 255 <div class="collectionLinkText ui-widget-content ui-corner-top"> 256 <xsl:choose><xsl:when test="displayItem [@name='name']"><xsl:value-of select="displayItem[@name='name']"/></xsl:when>256 <xsl:choose><xsl:when test="displayItemList/displayItem[@name='name']"><xsl:value-of select="displayItemList/displayItem[@name='name']"/></xsl:when> 257 257 <xsl:otherwise> 258 258 <xsl:value-of select="@name"/> … … 276 276 <a href="{$library_name}?a=p&sa=about&c={@name}"> 277 277 <xsl:value-of select="@name"/> 278 <xsl:value-of select="displayItem [@name='name']"/>278 <xsl:value-of select="displayItemList/displayItem[@name='name']"/> 279 279 </a> 280 280 </xsl:for-each> … … 383 383 <xsl:template name="aboutCollectionPageTitle"> 384 384 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 385 <xsl:value-of select="/page/pageResponse/collection/displayItem [@name='name']"/>385 <xsl:value-of select="/page/pageResponse/collection/displayItemList/displayItem[@name='name']"/> 386 386 <xsl:text> </xsl:text> 387 387 </xsl:template> … … 390 390 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 391 391 <xsl:choose> 392 <xsl:when test="$this-element/displayItem [@name='icon']">392 <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']"> 393 393 <img border="0"> 394 <xsl:attribute name="src"><xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem [@name='icon']"/></xsl:attribute>394 <xsl:attribute name="src"><xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItemList/displayItem[@name='icon']"/></xsl:attribute> 395 395 <xsl:attribute name="alt"> 396 <xsl:value-of select="$this-element/displayItem [@name='name']"/>396 <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/> 397 397 </xsl:attribute> 398 398 <xsl:attribute name="title"> … … 402 402 </xsl:when> 403 403 <xsl:otherwise> 404 <xsl:value-of select="$this-element/displayItem [@name='name']"/>404 <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/> 405 405 </xsl:otherwise> 406 406 </xsl:choose> … … 501 501 </xsl:template> 502 502 <xsl:template match="collection|serviceCluster"> 503 <xsl:value-of select="displayItem [@name='description']" disable-output-escaping="yes"/>503 <xsl:value-of select="displayItemList/displayItem[@name='description']" disable-output-escaping="yes"/> 504 504 <!-- Uncomment this section if you want the collection service links and their descriptions to appear --> 505 505 <!--<xsl:apply-templates select="serviceList">
Note:
See TracChangeset
for help on using the changeset viewer.