Changeset 20019

Show
Ignore:
Timestamp:
20.07.2009 13:48:55 (10 years ago)
Author:
kjdon
Message:

indented the file nicely

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/gs2/transform/library.xsl

    r19947 r20019  
    22 
    33<xsl:stylesheet version="1.0"  
    4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
    5 xmlns:gslib="http://www.greenstone.org/XSL/Library" 
    6 exclude-result-prefixes="xalan gslib gsf xslt gs3"> 
     4  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
     5  xmlns:gslib="http://www.greenstone.org/XSL/Library" 
     6  exclude-result-prefixes="xalan gslib gsf xslt gs3"> 
    77 
    88 
    9 <xsl:output method="html"  
    10 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"  
    11 doctype-system="http://www.w3.org/TR/html4/loose.dtd" 
    12 /> 
     9  <xsl:output method="html"  
     10    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"  
     11    doctype-system="http://www.w3.org/TR/html4/loose.dtd"/> 
    1312 
    14  
    15  
    16     <!-- some global parameters - these are set by whoever is invoking the transformation --> 
     13  <!-- some global parameters - these are set by whoever is invoking the transformation --> 
    1714  <xsl:param name="interface_name"/> 
    1815  <xsl:param name="library_name"/> 
    1916   
    20   <!-- every pages ....................................................................... --> 
     17  <!-- every pages .............................................. --> 
    2118   
    22     <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/></xsl:variable> 
    23     <xsl:variable name="collections" select="/page/pageResponse/collectionList/collection"/> 
     19  <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/></xsl:variable> 
     20  <xsl:variable name="collections" select="/page/pageResponse/collectionList/collection"/> 
    2421   
    25     <xsl:template name="GS2LibDividerBar"> 
    26    <xsl:param name='text'/> 
    27       <xsl:choose> 
     22  <xsl:template name="GS2LibDividerBar"> 
     23    <xsl:param name='text'/> 
     24    <xsl:choose> 
    2825      <xsl:when test="$text"> 
    29      <div class="divbar"><xsl:value-of select="$text"/></div> 
     26    <div class="divbar"><xsl:value-of select="$text"/></div> 
    3027      </xsl:when> 
    3128      <xsl:otherwise> 
    32      <div class="divbar"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></div> 
     29    <div class="divbar"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></div> 
    3330      </xsl:otherwise> 
    3431    </xsl:choose>  
    3532  </xsl:template> 
    3633   
    37     <xsl:template match="error"> 
     34  <xsl:template match="error"> 
    3835    Error: <xsl:value-of select="."/> 
    3936  </xsl:template> 
    4037   
    41     <!-- site home ....................................................................... --> 
     38  <!-- site home .................................................... --> 
    4239 
    4340 
    44 <xsl:template name="pageTitleLanguageDependant"> 
    45  <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 
    46 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/><xsl:text> </xsl:text> 
    47 </xsl:template> 
     41  <xsl:template name="pageTitleLanguageDependant"> 
     42    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 
     43    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/><xsl:text> </xsl:text> 
     44  </xsl:template> 
    4845 
    4946 
    50 <xsl:template name="greenstoneLogoAlternateText"> 
    51 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/> 
    52 </xsl:template> 
     47  <xsl:template name="greenstoneLogoAlternateText"> 
     48    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/> 
     49  </xsl:template> 
    5350 
    5451 
    55 <xsl:template name="collectionLinkWithImage"> 
    56                <xsl:choose> 
    57               <xsl:when test="displayItem[@name='icon']"> 
    58               <a href="{$library_name}?a=p&amp;amp;sa=about&amp;amp;c={@name}"> 
    59                 <img> 
    60                <xsl:attribute name="src"> 
    61                  <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/> 
    62                </xsl:attribute> 
    63                <xsl:attribute name="alt"> 
    64                     <xsl:value-of select="displayItem[@name='name']"/> 
    65                </xsl:attribute> 
    66              </img>  
    67                </a>   
    68           </xsl:when> 
    69               <xsl:otherwise> 
    70                <a class="noimage" href="{$library_name}?a=p&amp;amp;sa=about&amp;amp;c={@name}">   
    71                  <xsl:value-of select="displayItem[@name='name']"/> 
    72                </a> 
    73               </xsl:otherwise> 
    74            </xsl:choose>  
    75 </xsl:template> 
     52  <xsl:template name="collectionLinkWithImage"> 
     53    <xsl:choose> 
     54      <xsl:when test="displayItem[@name='icon']"> 
     55    <a href="{$library_name}?a=p&amp;amp;sa=about&amp;amp;c={@name}"> 
     56      <img> 
     57        <xsl:attribute name="src"> 
     58          <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/> 
     59        </xsl:attribute> 
     60        <xsl:attribute name="alt"> 
     61          <xsl:value-of select="displayItem[@name='name']"/> 
     62        </xsl:attribute> 
     63      </img>  
     64    </a>   
     65      </xsl:when> 
     66      <xsl:otherwise> 
     67    <a class="noimage" href="{$library_name}?a=p&amp;amp;sa=about&amp;amp;c={@name}">   
     68      <xsl:value-of select="displayItem[@name='name']"/> 
     69    </a> 
     70      </xsl:otherwise> 
     71    </xsl:choose>  
     72  </xsl:template> 
    7673 
    7774 
    78     <xsl:template name="quickSearchForm"> 
     75  <xsl:template name="quickSearchForm"> 
    7976    <form name="QuickSearch" method="get" action="{$library_name}"> 
    80     <input type="hidden" name="a" value="q"/> 
    81     <input type="hidden" name="rt" value="rd"/> 
    82     <input type="hidden" name="s" value="{/page/pageResponse/serviceList/service[@name='TextQuery']/@name}"/> 
    83     <input type="hidden" name="s1.collection" value="all"/> 
    84     <input type="text" name="s1.query" size="20"/> 
    85     <input type="submit" value="Quick Search"/> 
     77      <input type="hidden" name="a" value="q"/> 
     78      <input type="hidden" name="rt" value="rd"/> 
     79      <input type="hidden" name="s" value="{/page/pageResponse/serviceList/service[@name='TextQuery']/@name}"/> 
     80      <input type="hidden" name="s1.collection" value="all"/> 
     81      <input type="text" name="s1.query" size="20"/> 
     82      <input type="submit" value="Quick Search"/> 
    8683    </form> 
    87     </xsl:template> 
    88      
    89      
    90       <xsl:template match="serviceClusterList"> 
     84  </xsl:template> 
     85   
     86   
     87  <xsl:template match="serviceClusterList"> 
    9188    <xsl:for-each select="serviceCluster">  
    9289      <a href="{$library_name}?a=p&amp;amp;sa=about&amp;amp;c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem[@name='name']"/></a> 
     
    9693   
    9794   
    98     <xsl:template name="poweredByGS3LanguageDependant"> 
    99             <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/>  
     95  <xsl:template name="poweredByGS3LanguageDependant"> 
     96    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/>  
    10097  </xsl:template> 
    10198