Show
Ignore:
Timestamp:
09.05.2011 14:37:04 (8 years ago)
Author:
sjm84
Message:

Updating this branch to match the latest Greenstone3 changes

Location:
main/branches/64_bit_Greenstone/greenstone3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone3

  • main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/pref.xsl

    r18388 r24007  
    33  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    44  xmlns:java="http://xml.apache.org/xslt/java" 
    5   xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 
    6   extension-element-prefixes="java util" 
    7   exclude-result-prefixes="java util"> 
     5  extension-element-prefixes="java" 
     6  exclude-result-prefixes="java"> 
    87   
    98  <!-- style includes global params interface_name, library_name --> 
     
    2928      <xsl:call-template name="greenstoneFooter"/> 
    3029    </div> 
     30        <xsl:call-template name="pageTitleDeferred" /> 
    3131      </body> 
    3232    </html> 
     
    3434   
    3535  <xsl:template name="pageTitle"> 
    36     <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"><xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/></xsl:when><xsl:otherwise><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:otherwise></xsl:choose>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_t')"/> 
     36    <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"><xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose> 
     37  </xsl:template> 
     38   
     39  <xsl:template name="pageTitleDeferred"> 
     40        <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"></xsl:when><xsl:otherwise><span class="getTextFor null document.title.gsdl,document.title.text:' : '[a],document.title.pref_t[a]"></span>:</xsl:otherwise></xsl:choose> 
    3741  </xsl:template> 
    3842 
     
    5963    <input type='hidden' name='sa' value='pref'/> 
    6064    <input type='hidden' name='c' value="{$collName}"/> 
    61     <div class="formheading"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.prespref')"/></div> 
     65    <div class="formheading"><span class="getTextFor pref.prespref"></span></div> 
    6266    <ul id="presprefs"><xsl:call-template name="pres-prefs"/></ul> 
    6367    <ul id="berrybasketprefs" ><xsl:call-template name="berrybasket-prefs"/></ul> 
     
    6771    </xsl:if> 
    6872     
    69     <div class="formheading"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.searchpref')"/></div> 
     73    <div class="formheading"><span class="getTextFor pref.searchpref"></span></div> 
    7074    <ul id="searchprefs"><xsl:call-template name="search-prefs"/></ul> 
    71     <input type='submit'><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.set_prefs')"/></xsl:attribute></input> 
     75    <input type='submit' class="getTextFor null this.value.pref.set_prefs" id="test"></input> 
    7276      </form> 
    7377    </div> 
     
    7579   
    7680  <xsl:template name="pres-prefs"> 
    77     <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.interfacelang')"/> <xsl:call-template name="lang-list"/></li> 
    78     <li><span class="rightspace"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.encoding')"/></span>x</li> 
     81    <li><span class="getTextFor pref.interfacelang"></span></li> 
     82    <li><xsl:call-template name="lang-list"/></li> 
     83    <li><span class="rightspace"><span class="getTextFor pref.encoding"></span></span>x</li> 
    7984  </xsl:template> 
    8085   
     
    9095  <xsl:template name="search-prefs"> 
    9196    <xsl:variable name="hits"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='hitsPerPage']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='hitsPerPage']/@value"/></xsl:when><xsl:otherwise>20</xsl:otherwise></xsl:choose></xsl:variable>  
    92     <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.hitsperpage')"/>  
     97    <li><span class="getTextFor pref.hitsperpage">&amp;amp;nbsp;</span>  
    9398      <select name="hitsPerPage"> 
    9499    <option value="20"><xsl:if test="$hits=20"><xsl:attribute name="selected"></xsl:attribute></xsl:if>20</option>  
    95100    <option value="50"><xsl:if test="$hits=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 
    96101    <option value="100"><xsl:if test="$hits=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option> 
    97     <option value="-1"><xsl:if test="$hits=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.all')"/></option> 
     102    <option value="-1" class="getTextFor pref.all"><xsl:if test="$hits=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 
    98103      </select> 
    99104    </li> 
     
    103108    <xsl:variable name="berrybasket"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='berrybasket']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:when><xsl:otherwise>off</xsl:otherwise></xsl:choose></xsl:variable> 
    104109     
    105     <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket')"/> <select name="berrybasket"> 
    106         <option value="on"><xsl:if test="$berrybasket='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.on')"/></option>  
    107     <option value="off"><xsl:if test="$berrybasket='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.off')"/></option> 
     110    <li><span class="getTextFor pref.berrybasket">&amp;amp;nbsp;</span> <select name="berrybasket"> 
     111        <option value="on" class="getTextFor pref.berrybasket.on"><xsl:if test="$berrybasket='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option>  
     112    <option value="off" class="getTextFor pref.berrybasket.off"><xsl:if test="$berrybasket='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 
    108113      </select> 
    109114    </li> 
     
    113118    <xsl:variable name="book"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='book']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:when><xsl:otherwise>off</xsl:otherwise></xsl:choose></xsl:variable> 
    114119     
    115     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.book')"/> <select name="book"> 
    116       <option value="on"><xsl:if test="$book='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.on')"/></option>  
    117       <option value="off"><xsl:if test="$book='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.off')"/></option> 
     120    <span class="getTextFor pref.book">&amp;amp;nbsp;</span> <select name="book"> 
     121      <option value="on" class="getTextFor pref.berrybasket.on"><xsl:if test="$book='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option>  
     122      <option value="off" class="getTextFor pref.berrybasket.off"><xsl:if test="$book='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 
    118123    </select> 
    119124