Ignore:
Timestamp:
2024-03-20T22:31:51+13:00 (2 months ago)
Author:
anupama
Message:

Having been able to look at the GS2.88 Collage applet at least trying to run through the appletviewer somewhat (it doesn't really do much than say it's downloading and print out some file information to the terminal), I wanted at least that much to work with the Collage Applet in GS3. Just to get the appletviewer to display a somewhat working GS3 Collage applet (previously it would fail before applet initialisation, with a hard to fathom magic number Java error), I had to create a very skeletal GsdlCollageBrowse.java service, the way Phind has a (proper, non-skeletal) PhindPhraseBrowse service. I'm not sure if this service need or should do more for Collage, as I think the Collage applet rather than the service should take care of all the inner workings. I also needed the perl code to write out the new collage service to the buildconfig.xml file for this to actually appear. So far, the applet params are all hardcoded. I still need to investigate what the Collage applet is trying to do, such as how it works out which files to download and tries to download them, as for GS3 it's not even listing the files to download.

Location:
main/trunk/greenstone3/web/interfaces/default/transform
Files:
3 edited

Legend:

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

    r38813 r38854  
    433433    </xsl:for-each>
    434434   
     435    <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='GsdlCollageApplet']">
     436      <li>
     437        <xsl:choose>
     438          <!-- If this tab is selected then colour it differently -->
     439          <xsl:when test="/page/pageRequest[@action='a']">
     440        <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
     441          </xsl:when>
     442          <xsl:otherwise>
     443        <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
     444          </xsl:otherwise>
     445        </xsl:choose>
     446       
     447        <a>
     448          <xsl:if test="displayItem[@name='description']">
     449        <xsl:attribute name="title">
     450          <xsl:value-of select="displayItem[@name='description']"/>
     451        </xsl:attribute>
     452          </xsl:if>                       
     453          <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>
     454          <!--<xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection/@name"/>/page/collage</xsl:attribute>-->
     455          <xsl:value-of select="displayItem[@name='name']"/>
     456        </a>
     457      </li>
     458    </xsl:for-each>
     459   
    435460    <!-- all other services -->
    436     <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse') and not (@name='PhindApplet')]">
     461    <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse') and not (@name='PhindApplet') and not (@name='GsdlCollageApplet')]">
    437462      <xsl:call-template name="navigationTab"/>
    438463    </xsl:for-each>
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/applet.xsl

    r33755 r38854  
    1212
    1313    <!-- set page title -->
    14     <xsl:template name="pageTitle">The Phind Applet<!--<gslib:collectionName/><xsl:value-of select="/page/pageResponse/service/applet"/>--></xsl:template>
     14    <xsl:template name="pageTitle">Applet: <!--The Phind Applet--><gslib:collectionName/><xsl:value-of select="/page/pageResponse/service/applet"/></xsl:template>
    1515
    1616    <!-- set page breadcrumbs -->
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/classifier.xsl

    r38853 r38854  
    152152    <!-- Copied from GS2.88's about.dm (document.dm has a more applet params).
    153153
    154      Modified params: codebase, GsdlCollageApplet class' package, gwcgi, collection, classifier, hrefMustHave. Param isJava2's value changed from auto to true.
     154     Modified params: codebase, GsdlCollageApplet class' package, gwcgi, collection, classifier value="CL2.3", hrefMustHave value="cl=CL3.1". Param isJava2's value changed from auto to true.
    155155     And made all param XML elements self-closing.
    156156    -->
    157157    <!-- we seem to be in the web dir, so look in web/applet for the jar -->
    158    <applet CODEBASE="applet" code="org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet.class"
    159          archive="GsdlCollageApplet.jar" width="445" height="250">
     158    <applet CODEBASE="applet"
     159        code="org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet.class"
     160        archive="GsdlCollageApplet.jar"
     161        width="445" height="250">
    160162 
    161163     <param name="gwcgi" value="http://localhost:8383/greenstone3/library"/>
    162164         <param name="collection" value="smallbea"/>
    163          <param name="classifier" value="CL2.3"/>
     165         <param name="classifier" value="CL3.1"/>
    164166       
    165          <param name="hrefMustHave" value="smallbea"/>
     167         <param name="hrefMustHave" value="CL3"/>
    166168         <param name="imageMustNotHave" value="hl=%x=%gt=%gc=%.pr"/>
    167169
     170     <!--
    168171     <param name="imageType" value=".jpg%.png"/> 
    169172     <param name="verbosity" value="5"/>
     
    171174     <param name="refreshDelay" value="1500"/>
    172175     <param name="isJava2" value="true"/>
    173 
     176     -->
     177     <param name="imageType" value=".jpg%%.png"/> 
     178     <param name="maxDepth" value="500"/>
     179     <param name="maxDisplay" value="25"/>
     180     <param name="refreshDelay" value="1500"/>
     181     <param name="isJava2" value="auto"/>
     182     <param name="bgcolor" value="#96c29a"/>
     183     <!--<param name="documentroot" value="/greenstone/web/images"/> for GS2-->
    174184   </applet>
    175185  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.