Changeset 38927


Ignore:
Timestamp:
2024-04-16T15:30:51+12:00 (2 weeks ago)
Author:
anupama
Message:

Committing Dr Bainbridge's two fixes from yesterday: 1. The appletviewer can now at last find the applet folder containing the collage jar file to be run (and any helper jar files) and 2. He's fixed the XSL to load the built classifier information on the original collage classifier page (before webswing-collage.xsl was created) for the collage applet to use its classifier to traverse/discover what URLs need downloading. I've yet to merge this with corrected collage portion of classifier.xsl with webswing work to deal with only the final collage tab. Whether it will be an applet at that stage or needs to be an application (I've not got webswing to work with applet params passed in yet) is something that needs reinvestigating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/classifier.xsl

    r38921 r38927  
    155155     And made all param XML elements self-closing.
    156156    -->
    157     <!-- we seem to be in the web dir, so look in web/applet for the jar -->
    158     <applet CODEBASE="applet"
     157    <!-- When run in the browser or as an application, it's enough to specify applet as
     158     the relative folder for where to find the jars (we seem to be in the web dir then,
     159     so can directly look in web's applet subdirectory for the jar). But for running with
     160     this applet with the appletviewer we need the "full URL path" to the applet folder,
     161     which is off /greenstone3. Though once the collage applet is run in the appletviewer,
     162     a securityexception is thrown as appears it's in a sandbox and has no permission to
     163     download URLs or follow external links or something.
     164    -->
     165    <applet codebase="/greenstone3/applet"
    159166        code="org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet.class"
    160         archive="GsdlCollageApplet.jar"
    161         width="600" height="300"
    162         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     167        archive="GsdlCollageApplet.jar, webswing-api.jar"
     168        width="600"
     169        height="300">
    163170     
    164171      <param name='gsdlversion' value='3' />
     
    304311      </xsl:when>
    305312      <xsl:when test="@childType = 'Collage'">
    306     <xsl:call-template name="Collage" />
     313    <xsl:choose>
     314      <xsl:when test="not(*)">
     315        <xsl:call-template name="Collage" />
     316      </xsl:when>
     317      <xsl:otherwise>
     318        <xsl:apply-templates select='classifierNode|documentNode' mode='process-all-children'>
     319              <xsl:with-param name='collName' select='$collName' />
     320              <xsl:with-param name='serviceName' select='$serviceName' />
     321            </xsl:apply-templates>
     322      </xsl:otherwise>
     323    </xsl:choose>   
    307324      </xsl:when>
    308325      <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.