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/document.xsl

    r18437 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" 
    65  xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 
    7   extension-element-prefixes="java util" 
    8   exclude-result-prefixes="java util gsf"> 
    9  
     6  extension-element-prefixes="java" 
     7  exclude-result-prefixes="java gsf"> 
    108 
    119  <!-- style includes global params interface_name, library_name --> 
     
    5654  <xsl:template name="pageTitle"> 
    5755    <xsl:variable name="docID" select="/page/pageResponse/document/@selectedNode"/> 
    58     <xsl:for-each select='/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode'><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each> 
     56    <xsl:for-each select="/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode"><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each> 
    5957  </xsl:template> 
    6058 
     
    7068      </xsl:text> 
    7169    </style> 
     70 
    7271    <!--TODO: add berry basket switch--> 
    7372    <!--<xsl:if test="$berryBaskets = 'true'">--> 
     
    138137        <xsl:text disable-output-escaping="yes"> 
    139138          var doc_url = document.URL;  
    140           doc_url = doc_url.replace(/(&amp;|\?)book=[a-z]+/gi,''); 
    141           doc_url += '&amp;book=flashxml'; 
     139          doc_url = doc_url.replace(/(&amp;amp;|\?)book=[a-z]+/gi,''); 
     140          doc_url += '&amp;amp;book=flashxml'; 
    142141 
    143142          var flash_plug_html = "" 
    144           flash_plug_html += '&lt;OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \n'; 
     143          flash_plug_html += '&amp;lt;OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \n'; 
    145144          flash_plug_html += '  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" \n'; 
    146145          flash_plug_html += '  height="100%" id="Book" swLiveConnect="true" \n'; 
    147           flash_plug_html += '  width="100%"&gt;\n'; 
    148           flash_plug_html += '    &lt;PARAM name="allowScriptAccess" value="always" /&gt;\n'; 
    149           flash_plug_html += '    &lt;PARAM name="movie" value="Book.swf'; 
     146          flash_plug_html += '  width="100%"&amp;gt;\n'; 
     147          flash_plug_html += '    &amp;lt;PARAM name="allowScriptAccess" value="always" /&amp;gt;\n'; 
     148          flash_plug_html += '    &amp;lt;PARAM name="movie" value="Book.swf'; 
    150149          flash_plug_html += '?src_image=' + escape(img_cover); 
    151           flash_plug_html += '&amp;doc_url=' + escape(doc_url) 
    152           flash_plug_html += '" /&gt;\n'; 
    153           flash_plug_html += '    &lt;PARAM name="quality" value="high" /&gt;\n'; 
    154           flash_plug_html += '    &lt;PARAM name="bgcolor" value="#FFFFFF" /&gt;\n'; 
    155           flash_plug_html += '    &lt;EMBED align="middle" \n'; 
     150          flash_plug_html += '&amp;amp;doc_url=' + escape(doc_url) 
     151          flash_plug_html += '" /&amp;gt;\n'; 
     152          flash_plug_html += '    &amp;lt;PARAM name="quality" value="high" /&amp;gt;\n'; 
     153          flash_plug_html += '    &amp;lt;PARAM name="bgcolor" value="#FFFFFF" /&amp;gt;\n'; 
     154          flash_plug_html += '    &amp;lt;EMBED align="middle" \n'; 
    156155          flash_plug_html += '      allowScriptAccess="always" swLiveConnect="true" \n'; 
    157156          flash_plug_html += '      bgcolor="#FFFFFF" height="100%" name="Book" \n'; 
     
    160159          flash_plug_html += '      src="Book.swf'; 
    161160          flash_plug_html += '?src_image=' + escape(img_cover); 
    162           flash_plug_html += '&amp;doc_url=' + escape(doc_url); 
     161          flash_plug_html += '&amp;amp;doc_url=' + escape(doc_url); 
    163162          flash_plug_html += '"\n';  
    164           flash_plug_html += '      type="application/x-shockwave-flash" width="100%" /&gt;\n'; 
    165           flash_plug_html += '&lt;/OBJECT&gt;\n'; 
     163          flash_plug_html += '      type="application/x-shockwave-flash" width="100%" /&amp;gt;\n'; 
     164          flash_plug_html += '&amp;lt;/OBJECT&amp;gt;\n'; 
    166165          var flash_div = document.getElementById("bookdiv"); 
    167166          flash_div.innerHTML = flash_plug_html; 
     
    199198    <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 
    200199    <div id="documentheading"> 
    201       <a href="{$library_name}?a={$p.a}&amp;sa={$p.sa}&amp;s={$p.s}&amp;c={$p.c}&amp;rt=rd"><xsl:call-template name="openbookimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_book')"/></xsl:with-param> 
     200      <a href="{$library_name}?a={$p.a}&amp;amp;sa={$p.sa}&amp;amp;s={$p.s}&amp;amp;c={$p.c}&amp;amp;rt=rd"><xsl:call-template name="openbookimg"><xsl:with-param name="title"><xsl:value-of select="'close_book'"/></xsl:with-param> 
    202201    </xsl:call-template></a> 
    203202      <xsl:choose><xsl:when test="@docType='simple'"><xsl:value-of select="metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:when><xsl:otherwise><xsl:value-of select="documentNode/metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:otherwise></xsl:choose> 
     
    253252      </xsl:when> 
    254253      <xsl:otherwise> 
    255     <img><xsl:attribute name='src'><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='archivedir']"/>/cover.jpg</xsl:attribute></img> 
     254    <img><xsl:attribute name="src"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='archivedir']"/>/cover.jpg</xsl:attribute></img> 
    256255      </xsl:otherwise> 
    257256    </xsl:choose> 
     
    270269      <li> 
    271270        <xsl:choose><xsl:when test="string($ed)='1'"> 
    272         <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute> 
    273           <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/> 
    274         </a> 
     271        <a href="{$library_name}?a=d&amp;amp;d={$docID}&amp;amp;c={$collName}&amp;amp;sib={$sib}&amp;amp;ed=0" class="getTextFor doc.contract_doc_b this.title.doc.contract_doc_tip"></a> 
    275272      </xsl:when> 
    276273      <xsl:otherwise> 
    277         <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute> 
    278           <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/> 
    279         </a> 
     274        <a href="{$library_name}?a=d&amp;amp;d={$docID}&amp;amp;c={$collName}&amp;amp;sib={$sib}&amp;amp;ed=1" class="getTextFor doc.expand_doc_b this.title.doc.expand_doc_tip"></a> 
    280275      </xsl:otherwise> 
    281276    </xsl:choose> 
     
    287282      <li> 
    288283    <xsl:choose><xsl:when test="string($ec)='1'"> 
    289         <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute> 
    290           <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/></a> 
     284        <a href="{$library_name}?a=d&amp;amp;d={$docID}&amp;amp;c={$collName}&amp;amp;sib={$sib}&amp;amp;ec=0" class="getTextFor doc.contract_contents_b this.title.doc.contract_contents_tip"></a> 
    291285      </xsl:when> 
    292286      <xsl:otherwise> 
    293         <a  href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_tip')"/></xsl:attribute> 
    294           <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_b')"/> 
    295         </a> 
     287        <a  href="{$library_name}?a=d&amp;amp;d={$docID}&amp;amp;c={$collName}&amp;amp;sib={$sib}&amp;amp;ec=1" class="getTextFor doc.expand_contents_b this.title.doc.expand_contents_tip"></a> 
    296288      </xsl:otherwise> 
    297289    </xsl:choose> 
     
    302294    <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 
    303295    <li> 
    304       <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;d=<xsl:value-of select="$docID"/>&amp;c=<xsl:value-of select="$collName"/>&amp;sib=<xsl:value-of select="$sib"/>&amp;dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&amp;ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&amp;et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&amp;p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&amp;p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&amp;p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_tip')"/></xsl:attribute> 
    305     <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 
    306       </a></li> 
     296      <a target="_blank" class="getTextFor doc.detach_page_b this.title.doc.detach_page_tip"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;amp;d=<xsl:value-of select="$docID"/>&amp;amp;c=<xsl:value-of select="$collName"/>&amp;amp;sib=<xsl:value-of select="$sib"/>&amp;amp;dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&amp;amp;ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&amp;amp;et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&amp;amp;p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&amp;amp;p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&amp;amp;p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute></a></li> 
    307297  </xsl:template> 
    308298 
     
    333323    <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 
    334324    <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 
    335     <xsl:if test="documentNode[@nodeID]"> 
     325    <script type="text/javascript"> 
     326      <xsl:text> 
     327        // Load up the initial document using AJAX! 
     328        var initialHash = '</xsl:text> 
     329      <xsl:value-of select="$d" /><xsl:text>'; 
     330      </xsl:text> 
     331    </script> 
     332    <xsl:if test="documentNode[@nodeID]">       
    336333      <ul id="tocnodes"> 
    337     <li> 
     334    <li id="tocstart"> 
    338335      <xsl:choose><xsl:when test="string($oc)='0'"> 
    339           <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={$d}&amp;sib={$sib}&amp;oc=1&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.open_toc')"/></xsl:with-param></xsl:call-template></a> 
     336          <a href="{$library_name}?a=d&amp;amp;c={$collName}&amp;amp;d={$d}&amp;amp;sib={$sib}&amp;amp;oc=1&amp;amp;p.s={$p.s}&amp;amp;p.sa={$p.sa}&amp;amp;p.a={$p.a}&amp;amp;p.c={$p.c}"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title"><xsl:value-of select="'doc.open_toc'"/></xsl:with-param></xsl:call-template></a> 
    340337        </xsl:when> 
    341         <xsl:otherwise><a href="{$library_name}?a=d&amp;c={$collName}&amp;d={$d}&amp;sib={$sib}&amp;oc=0&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><xsl:call-template name="openfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.close_toc')"/></xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/> 
     338        <xsl:otherwise><a href="{$library_name}?a=d&amp;amp;c={$collName}&amp;amp;d={$d}&amp;amp;sib={$sib}&amp;amp;oc=0&amp;amp;p.s={$p.s}&amp;amp;p.sa={$p.sa}&amp;amp;p.a={$p.a}&amp;amp;p.c={$p.c}"><xsl:call-template name="openfolderimg"><xsl:with-param name="title"><xsl:value-of select="'doc.close_toc'"/></xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose><span class="getTextFor doc.table_of_contents">&amp;amp;nbsp;</span> 
    342339      <xsl:if test="string($oc)!='0'"> 
    343340        <ul class="tocnode"> 
     
    362359    <!-- Display the appropriate image, depending on the node type --> 
    363360    <li> 
    364       <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&amp;c=<xsl:value-of select='$collName'/>&amp;d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if>&amp;sib=1<xsl:if test="string($ec) = '1'">&amp;ec=1</xsl:if>&amp;p.a=<xsl:value-of select="$p.a"/>&amp;p.sa=<xsl:value-of select="$p.sa"/>&amp;p.s=<xsl:value-of select="$p.s"/>&amp;p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 
     361      <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;amp;c=<xsl:value-of select="$collName"/>&amp;amp;d=<xsl:value-of select="@nodeID"/><xsl:if test="documentNode">.pr</xsl:if>&amp;amp;sib=1<xsl:if test="string($ec) = '1'">&amp;amp;ec=1</xsl:if>&amp;amp;p.a=<xsl:value-of select="$p.a"/>&amp;amp;p.sa=<xsl:value-of select="$p.sa"/>&amp;amp;p.s=<xsl:value-of select="$p.s"/>&amp;amp;p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 
    365362    <xsl:apply-templates select="." mode="displayNodeIcon"/> 
    366363      </a> 
     
    372369    </xsl:when> 
    373370    <xsl:otherwise> 
    374       <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 
     371      <span><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span> 
    375372    </xsl:otherwise> 
    376373      </xsl:choose> 
     
    394391    <xsl:when test="@docType='simple'"><xsl:apply-templates select="nodeContent"/></xsl:when> 
    395392    <xsl:otherwise> 
    396       <xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/> 
     393      <!--<xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/>--> 
    397394    </xsl:otherwise> 
    398395      </xsl:choose> 
     
    411408  <!-- the actual text/content --> 
    412409  <xsl:template match="nodeContent"> 
    413     <p/> 
    414410    <xsl:for-each select="node()"> 
    415411      <xsl:choose> 
    416412    <xsl:when test="not(name())"> 
    417       <xsl:value-of select="." disable-output-escaping="yes"/> 
     413      <xsl:value-of select="." disable-output-escaping="yes" /> 
    418414    </xsl:when> 
    419415    <xsl:otherwise><xsl:apply-templates select="."/></xsl:otherwise> 
     
    444440      <xsl:when test="nodeContent"> 
    445441    <xsl:text disable-output-escaping="yes"> 
    446       &lt;Section&gt; 
    447       &lt;Description&gt; 
    448       &lt;Metadata name="Title"&gt; 
     442      &amp;lt;Section&amp;gt; 
     443      &amp;lt;Description&amp;gt; 
     444      &amp;lt;Metadata name="Title"&amp;gt; 
    449445    </xsl:text> 
    450446    <xsl:value-of select="normalize-space(metadataList/metadata[@name='Title'])"/> 
    451447    <xsl:text disable-output-escaping="yes"> 
    452       &lt;/Metadata&gt; 
    453       &lt;/Description&gt; 
     448      &amp;lt;/Metadata&amp;gt; 
     449      &amp;lt;/Description&amp;gt; 
    454450    </xsl:text> 
    455451    <xsl:value-of select="normalize-space(nodeContent)" disable-output-escaping="yes"/> 
    456     <xsl:text disable-output-escaping="yes">&lt;/Sec&gt;</xsl:text> 
     452    <xsl:text disable-output-escaping="yes">&amp;lt;/Sec&amp;gt;</xsl:text> 
    457453      </xsl:when> 
    458454    </xsl:choose> 
     
    465461    <!-- end the section --> 
    466462    <xsl:text disable-output-escaping="yes"> 
    467       &lt;/Section&gt; 
     463      &amp;lt;/Section&amp;gt; 
    468464    </xsl:text> 
    469465  </xsl:template> 
     
    473469    <xsl:variable name="httpPath" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/> 
    474470    <xsl:choose> 
    475       <xsl:when test="util:isImage(@mimeType)"> 
     471      <xsl:when test="starts-with(@mimeType, 'image/')"> 
    476472    <img src="{$httpPath}/{@href}"/> 
    477473      </xsl:when> 
     
    488484      <xsl:choose> 
    489485    <xsl:when test="@type='document'">a=d</xsl:when> 
    490     <xsl:when test="@type='query'">a=q&amp;s=<xsl:value-of select="@service"/>&amp;rt=rd</xsl:when> 
     486    <xsl:when test="@type='query'">a=q&amp;amp;s=<xsl:value-of select="@service"/>&amp;amp;rt=rd</xsl:when> 
    491487    <xsl:otherwise> 
    492488    p 
     
    495491    </xsl:variable> 
    496492    <xsl:variable name="serviceargs"> 
    497       <xsl:for-each select="param">&amp;s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each> 
     493      <xsl:for-each select="param">&amp;amp;s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each> 
    498494    </xsl:variable> 
    499     <a href="{$library_name}?{$actionargs}&amp;c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a> 
     495    <a href="{$library_name}?{$actionargs}&amp;amp;c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a> 
    500496  </xsl:template> 
    501497 
     
    518514        </td> 
    519515        <td align="center"><center> 
    520         <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pages', $children)"/></b> 
     516        <b class="getTextFor doc.pages"></b> 
    521517          </center></td> 
    522518        <td align="right"> 
    523           <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.fc"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 
     519          <a href="{$library_name}?a=d&amp;amp;c={$collName}&amp;amp;d={@selectedNode}.fc"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 
    524520        </td> 
    525521      </tr> 
     
    530526        <td align="left"> 
    531527          <xsl:if test=" not ( $pos = 1 )"> 
    532         <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ps"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a> 
     528        <a href="{$library_name}?a=d&amp;amp;c={$collName}&amp;amp;d={@selectedNode}.ps"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a> 
    533529          </xsl:if> 
    534530        </td> 
    535531        <td align="center"><center> 
    536         <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pageof', concat($pos, ';', $length))"/></b> 
     532        <b><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.doc.pageof|', $pos, ';', $length)"/></xsl:attribute></b> 
    537533          </center></td> 
    538534        <td align="right"> 
    539535          <xsl:if test=" not($pos = $length)"> 
    540         <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ns"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 
     536        <a href="{$library_name}?a=d&amp;amp;c={$collName}&amp;amp;d={@selectedNode}.ns"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 
    541537          </xsl:if> 
    542538        </td> 
     
    551547        <input type='hidden' name='d' value='{@selectedNode}'/> 
    552548        <input type="text" name="gp" size="3" maxlength="4"/> 
    553         <input type="submit"><xsl:attribute name='value'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.gotopage')"/></xsl:attribute></input> 
     549        <input type="submit" class="getTextFor null this.value.doc.gotopage"></input> 
    554550      </form> 
    555551    </td> 
     
    568564        <form name="EnrichForm" method="get" action="{$library_name}"> 
    569565          <xsl:apply-templates select="paramList"/> 
    570           <input type='hidden' name='a' value='d'/> 
    571           <input type='hidden' name='d' value='{$docID}'/> 
    572           <input type='hidden' name='c' value='{$collName}'/> 
    573           <xsl:if test='$request-params/param[@name="sib"]'> 
    574         <input type='hidden' name='sib'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="sib"]/@value'/></xsl:attribute></input></xsl:if> 
    575           <input type='hidden' name='s' value='{@name}'/> 
    576           <input type='hidden' name='p.a'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.a"]'/></xsl:attribute></input> 
    577           <input type='hidden' name='p.sa'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.sa"]'/></xsl:attribute></input> 
    578           <input type='hidden' name='p.s'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.s"]'/></xsl:attribute></input> 
    579           <input type='hidden' name='end' value='1'/> 
     566          <input type="hidden" name="a" value="d"/> 
     567          <input type="hidden" name="d" value="{$docID}"/> 
     568          <input type="hidden" name="c" value="{$collName}"/> 
     569          <xsl:if test="$request-params/param[@name='sib']"> 
     570        <input type="hidden" name="sib"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='sib']/@value"/></xsl:attribute></input></xsl:if> 
     571          <input type="hidden" name="s" value="{@name}"/> 
     572          <input type="hidden" name="p.a"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.a']"/></xsl:attribute></input> 
     573          <input type="hidden" name="p.sa"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.sa']"/></xsl:attribute></input> 
     574          <input type="hidden" name="p.s"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.s']"/></xsl:attribute></input> 
     575          <input type="hidden" name="end" value='1'/> 
    580576          <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input> 
    581577        </form> 
     
    615611    <xsl:param name="direction"/> 
    616612    <xsl:variable name="request-params" select="/page/pageRequest/paramList"/> 
    617     <xsl:if test='$request-params/param[@name="dt"]/@value != "simple"' 
    618       <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&amp;sib=1&amp;p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&amp;p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&amp;p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose><xsl:when test="$direction='back'"><img class="lessarrow" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow" src="interfaces/default/images/more.gif"  /></xsl:otherwise></xsl:choose></a> 
     613    <xsl:if test="$request-params/param[@name='dt']/@value != 'simple'" 
     614      <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;amp;c=<xsl:value-of select="$collName"/>&amp;amp;d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&amp;amp;sib=1&amp;amp;p.s=<xsl:value-of select="$request-params/param[@name='p.s']/@value"/>&amp;amp;p.sa=<xsl:value-of select="$request-params/param[@name='p.sa']/@value"/>&amp;amp;p.a=<xsl:value-of select="$request-params/param[@name='p.a']/@value"/></xsl:attribute><xsl:choose><xsl:when test="$direction='back'"><img class="lessarrow" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow" src="interfaces/default/images/more.gif"  /></xsl:otherwise></xsl:choose></a> 
    619615    </xsl:if>  
    620616  </xsl:template> 
     
    622618  <xsl:template name="externalPage"> 
    623619    <xsl:param name="external"/> 
    624     <xsl:variable name="go_forward_link"><a><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/></a></xsl:variable> 
    625     <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2> 
    626     <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/> 
     620    <xsl:variable name="go_forward_link"><a class="getTextfor external.go_forward"><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute></a></xsl:variable> 
     621    <h2 class="getTextFor external.title"></h2> 
     622    <p><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.external.text|', $go_forward_link)" /></xsl:attribute> 
    627623    </p> 
    628624  </xsl:template> 
    629625 
    630626</xsl:stylesheet> 
    631  
    632  
    633  
    634