- Timestamp:
- 2009-01-06T14:26:10+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/home.xsl
r18304 r18316 12 12 <xsl:output method="html"/> 13 13 14 14 <!-- the main page layout template is here --> 15 15 <xsl:template match="page"> 16 17 <head>18 19 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->20 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>21 22 23 24 </head>25 26 27 28 29 30 31 16 <html> 17 <head> 18 <title> 19 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 20 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 21 </title> 22 <xsl:call-template name="globalStyle"/> 23 <xsl:call-template name="pageStyle"/> 24 </head> 25 <body> 26 <div id="globalwrapper"> 27 <xsl:call-template name="response" /> 28 <xsl:call-template name="greenstoneFooter"/> 29 </div> 30 </body> 31 </html> 32 32 </xsl:template> 33 33 … … 49 49 <xsl:template name="pageBanner"> 50 50 <div id="banner"> 51 52 53 54 51 <p> 52 <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute> 53 </img> 54 </p> 55 55 </div> 56 56 <div id="content"> 57 58 59 60 57 <xsl:call-template name="dividerBar"> 58 <xsl:with-param name="text" select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/> 59 </xsl:call-template> 60 </div> 61 61 </xsl:template> 62 62 63 63 <xsl:template match="collectionList"> 64 <ul id="collectionlist">65 <xsl:for-each select="collection">66 67 68 69 64 <ul id="collectionlist"> 65 <xsl:for-each select="collection"> 66 <li> 67 68 <xsl:choose> 69 <xsl:when test="displayItem[@name='icon']"> 70 70 <a href="{$library_name}?a=p&sa=about&c={@name}"> 71 71 <img> 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 </xsl:for-each>90 </ul>72 <xsl:attribute name="src"> 73 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/> 74 </xsl:attribute> 75 <xsl:attribute name="alt"> 76 <xsl:value-of select="displayItem[@name='name']"/> 77 </xsl:attribute> 78 </img> 79 </a> 80 </xsl:when> 81 <xsl:otherwise> 82 <a class="noimage" href="{$library_name}?a=p&sa=about&c={@name}"> 83 <xsl:value-of select="displayItem[@name='name']"/> 84 </a> 85 </xsl:otherwise> 86 </xsl:choose> 87 88 </li> 89 </xsl:for-each> 90 </ul> 91 91 </xsl:template> 92 92 … … 113 113 <xsl:call-template name="dividerBar"/> 114 114 <ul id="servicelist"> 115 <xsl:for-each select="service[@type='query']">116 115 <xsl:for-each select="service[@type='query']"> 116 <li><a href="{$library_name}?a=q&rt=d&s={@name}"><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li> 117 117 </xsl:for-each> 118 118 <!--uncomment to display an authentication link--> 119 119 <!--<xsl:for-each select="service[@type='authen']"> 120 120 <li><a href="{$library_name}?a=g&rt=r&sa=authen&s={@name}&s1.aup=Login&s1.un=&s1.asn="><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li> </xsl:for-each>--> 121 121 <!--uncomment to display a library interface link--> 122 122 <!--<li><a href="{$library_name}?a=p&sa=gli4gs3"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>--> 123 123 </ul> 124 124 </xsl:template> 125 125 </xsl:stylesheet> 126 126
Note:
See TracChangeset
for help on using the changeset viewer.