- Timestamp:
- 2011-05-17T12:19:08+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/pages/document.xsl
r24009 r24018 63 63 <xsl:template match="/page/pageResponse/document"> 64 64 <xsl:if test="$bookswitch = 'off'"> 65 <div id="bookdiv" style="visibility:hidden; height:0px;"><xsl:text> </xsl:text></div> 65 <div id="bookdiv" style="visibility:hidden; height:0px; display:inline;"><xsl:text> </xsl:text></div> 66 67 <!-- Adds the realistic books javascript if necessary ( *** in document-scripts.xsl *** ) --> 68 <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'"> 69 <xsl:call-template name="realisticBooksScript"/> 70 </xsl:if> 71 66 72 <!-- Add the Javascript that adds and removes highlighting ( *** in document-scripts.xsl *** ) --> 67 73 <xsl:call-template name="highlightingScript"/> … … 107 113 <xsl:when test="$bookswitch = 'on'"> 108 114 <!-- *** in document-scripts.xsl *** --> 115 <div id="bookdiv" style="display:inline;"><xsl:text> </xsl:text></div> 109 116 <xsl:call-template name="realisticBooksScript"/> 110 117 </xsl:when> … … 306 313 307 314 <xsl:template name="viewOptions"> 308 <xsl:call-template name="realisticBooksScript"/>309 315 <table class="viewOptions"><tr> 310 316 <!-- Realistic books link --> … … 312 318 <td> 313 319 <!-- old url = {$library_name}?a=d&c={$collName}&d={/page/pageResponse/document/documentNode[1]/@nodeID}&dt={/page/pageResponse/document/documentNode/@docType}&p.a=b&p.s={/page/pageResponse/service/@name}&book=on&ed=1 --> 314 <div title="Realistic book view" id="rbOptionDiv"><input id="rbOption" type="checkbox" onclick="bookInit();" class="optionCheckBox"/></div> 320 <img> 321 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'realistic_books_image')"/></xsl:attribute> 322 </img> 323 <input id="rbOption" type="checkbox" onclick="bookInit();" class="optionCheckBox"/> 315 324 </td> 316 325 </xsl:if> … … 319 328 <xsl:if test="/page/pageRequest/paramList/param[@name = 'p.a']/@value = 'q'"> 320 329 <td> 321 <div id="highlightOptionDiv" title="Search term highlighting"> 322 <input id="highlightOption" type="checkbox" class="optionCheckBox"> 323 <xsl:choose> 324 <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'"> 325 <xsl:attribute name="onclick"> 326 <xsl:text>removeHighlight();</xsl:text> 327 </xsl:attribute> 328 <xsl:attribute name="checked">true</xsl:attribute> 329 </xsl:when> 330 <xsl:otherwise> 331 <xsl:attribute name="onclick"> 332 <xsl:text>addHighlight();</xsl:text> 333 </xsl:attribute> 334 </xsl:otherwise> 335 </xsl:choose> 336 </input> 337 </div> 330 <img> 331 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'highlight_image')"/></xsl:attribute> 332 </img> 333 <input id="highlightOption" type="checkbox" class="optionCheckBox"> 334 <xsl:choose> 335 <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'"> 336 <xsl:attribute name="onclick"> 337 <xsl:text>removeHighlight();</xsl:text> 338 </xsl:attribute> 339 <xsl:attribute name="checked">true</xsl:attribute> 340 </xsl:when> 341 <xsl:otherwise> 342 <xsl:attribute name="onclick"> 343 <xsl:text>addHighlight();</xsl:text> 344 </xsl:attribute> 345 </xsl:otherwise> 346 </xsl:choose> 347 </input> 338 348 </td> 339 349 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.