Ignore:
Timestamp:
2011-05-17T12:19:08+12:00 (13 years ago)
Author:
sjm84
Message:

Another big set of updates to the Oran interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/document.xsl

    r24009 r24018  
    6363    <xsl:template match="/page/pageResponse/document">
    6464        <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           
    6672            <!-- Add the Javascript that adds and removes highlighting ( *** in document-scripts.xsl *** ) -->
    6773            <xsl:call-template name="highlightingScript"/>
     
    107113            <xsl:when test="$bookswitch = 'on'">
    108114                <!-- *** in document-scripts.xsl *** -->
     115                <div id="bookdiv" style="display:inline;"><xsl:text> </xsl:text></div>
    109116                <xsl:call-template name="realisticBooksScript"/>
    110117            </xsl:when>
     
    306313   
    307314    <xsl:template name="viewOptions">
    308         <xsl:call-template name="realisticBooksScript"/>
    309315        <table class="viewOptions"><tr>
    310316            <!-- Realistic books link -->
     
    312318                <td>
    313319                    <!-- old url = {$library_name}?a=d&amp;c={$collName}&amp;d={/page/pageResponse/document/documentNode[1]/@nodeID}&amp;dt={/page/pageResponse/document/documentNode/@docType}&amp;p.a=b&amp;p.s={/page/pageResponse/service/@name}&amp;book=on&amp;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"/>
    315324                </td>
    316325            </xsl:if>
     
    319328            <xsl:if test="/page/pageRequest/paramList/param[@name = 'p.a']/@value = 'q'">
    320329                <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>
    338348                </td>
    339349            </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.