Ignore:
Timestamp:
2012-08-28T12:22:10+12:00 (12 years ago)
Author:
ak19
Message:

Added applet.xsl for the default interface to get the PhindApplet to work for GS3 for the Tudor and Multimedia tutorials.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r26120 r26133  
    147147                </xsl:if>
    148148
     149                <!-- PhindApplet. Need something similar for the Collage applet too, probably -->
     150                <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='PhindApplet']">
     151                    <li>
     152                        <xsl:choose>
     153                            <!-- If this tab is selected then colour it differently -->
     154                            <xsl:when test="/page/pageRequest[@action='a']">
     155                                <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
     156                            </xsl:when>
     157                            <xsl:otherwise>
     158                                <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
     159                            </xsl:otherwise>
     160                        </xsl:choose>
     161                       
     162                        <a>
     163                            <xsl:if test="displayItem[@name='description']">
     164                                <xsl:attribute name="title">
     165                                    <xsl:value-of select="displayItem[@name='description']"/>
     166                                </xsl:attribute>
     167                            </xsl:if>                         
     168                            <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=a&amp;rt=d&amp;s=<xsl:value-of select="@name"/>&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:attribute>
     169                            <xsl:value-of select="displayItem[@name='name']"/>
     170                        </a>
     171                    </li>
     172                </xsl:for-each>
     173               
    149174                <!-- all other services -->
    150                 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse')]">
     175                <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse') and not (@name='PhindApplet')]">
    151176                    <xsl:call-template name="navigationTab"/>
    152177                </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.