Ignore:
Timestamp:
2016-08-23T22:27:17+12:00 (8 years ago)
Author:
ak19
Message:

The about image and home page image were not working correctly before (the home page image used the about image, and nothing appeared on the about page).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/about.xsl

    r19988 r30740  
    2020    <xsl:template match="/page">
    2121 
     22        <xsl:choose>
     23            <xsl:when test="$this-element/displayItem[@name='icon']">
     24              <img border="0">
     25                <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>
     26                <xsl:attribute name="alt">
     27                  <xsl:value-of select="$this-element/displayItem[@name='name']"/>
     28                </xsl:attribute>
     29                <xsl:attribute name="title">
     30                  <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>
     31                </xsl:attribute>
     32              </img>       
     33            </xsl:when>     
     34        </xsl:choose>   
     35 
    2236        <!--Display the description text of the current collection,
    2337        and if some services are available then create a list
Note: See TracChangeset for help on using the changeset viewer.