Changeset 26133 for main/trunk


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.

Location:
main/trunk/greenstone3
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/AppletAction.java

    r25635 r26133  
    9898        page_response.appendChild(service_elem);
    9999
     100        //append site metadata
     101        addSiteMetadata(page_response, userContext);
     102        //addInterfaceOptions(page_response);
    100103        return result;
    101104
  • main/trunk/greenstone3/web/interfaces/default/interfaceConfig.xml

    r25936 r26133  
    1616    <action class="DocumentAction" name="d" xslt="pages/document.xsl"/>
    1717
    18     <action class="AppletAction" name="a" xslt="applet.xsl"/>
     18    <action class="AppletAction" name="a" xslt="pages/applet.xsl"/>
    1919    <action class="XMLDocumentAction" name="xd">
    2020      <subaction name="toc" xslt="pages/document-toc.xsl"/>
  • 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.