Changeset 38929


Ignore:
Timestamp:
2024-04-16T16:38:29+12:00 (3 weeks ago)
Author:
anupama
Message:

Related to previous commit, but found I didn't need the previous value for hrefMustHave and so didn't have to append the new value to it but replace it. Adding the final changes into the applet parameters in classifier.xsl and GsdlCollageBrowse service (latter will probably get phased out eventually, it was just a programming aid). Previous commit message: Setting up the Collage application parameters that will work with the 3.1 classifier (now that Dr Bainbridge fixed it up) from which image URLs will be discovered for the collage. hrefMustHave needed an addition for it to traverse the 3.1 tree down to 3(.1)*

Location:
main/trunk/greenstone3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/applet/GsdlCollageApplet/GsdlCollageApplet.java

    r38928 r38929  
    727727    /**
    728728     * After building the GS3 Multimedia collection, try running this Application as:
    729 java -cp ./web/applet/GsdlCollageApplet.jar:./web/WEB-INF/lib/log4j-1.2.8.jar:./web/WEB-INF/classes:./web/ext/webswing/api/webswing-api.jar org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet --statusbar 0 --baseurl "http://localhost:8383/greenstone3/" --library library --collection smallbea --gsdlversion 3 --hrefMustHave "library/sites/localsite/collect/smallbea%library/collection/smallbea/browse/CL3" --documentroot greenstone3 --verbosity 3 --imageType ".jpg%.png" --imageMustNotHave "interfaces/" --classifier "CL3.1" --maxDepth 500 --maxDisplay 25 --refreshDelay 1500 --isJava2 auto --bgcolor "#96c29a" --width 645 --height 780
     729java -cp ./web/applet/GsdlCollageApplet.jar:./web/WEB-INF/lib/log4j-1.2.8.jar:./web/WEB-INF/classes:./web/ext/webswing/api/webswing-api.jar org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet --statusbar 0 --baseurl "http://localhost:8383/greenstone3/" --library library --collection smallbea --gsdlversion 3 --hrefMustHave "library/collection/smallbea/browse/CL3" --documentroot greenstone3 --verbosity 3 --imageType ".jpg%.png" --imageMustNotHave "interfaces/" --classifier "CL3.1" --maxDepth 500 --maxDisplay 25 --refreshDelay 1500 --isJava2 auto --bgcolor "#96c29a" --width 645 --height 780
    730730     */
    731731    public static void main(String[] args) {
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GsdlCollageBrowse.java

    r38926 r38929  
    8989    // this is left blank at this end, and must be filled in by applet action - if the library name is not needed, this param is left out
    9090
    91     String siteName = this.site_home.substring(this.site_home.lastIndexOf("/sites/")+"/sites/".length());
     91    //String siteName = this.site_home.substring(this.site_home.lastIndexOf("/sites/")+"/sites/".length());
    9292   
    9393    String app_info = "<"+GSXML.APPLET_ELEM+" CODEBASE='applet' CODE='org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet.class' ARCHIVE='GsdlCollageApplet.jar, webswing-api.jar' WIDTH='600' HEIGHT='300'>"; // w=645,h=780
     
    9898    //app_info += "<param name='sitename' value='"+ this.site_home +"' />\n";
    9999    //app_info += "<param name='hrefMustHave' value='smallbea' />\n";
    100     app_info += "<param name='hrefMustHave' value='" + this.library_name + "/sites/" + siteName + "/collect/" + this.cluster_name + "'/>\n";
     100    //app_info += "<param name='hrefMustHave' value='" + this.library_name + "/sites/" + siteName + "/collect/" + this.cluster_name + "'/>\n";
     101    app_info += "<param name='hrefMustHave' value='" + this.library_name + "/collection/" + this.cluster_name + "/browse/CL3'/>\n";
    101102    //app_info += "<param name='gwcgi' value='http://localhost:8383/greenstone3/library' /><param name='classifier' value='CL3.1' /><param name='hrefMustHave' value='CL3' /><param name='imageMustNotHave' value='hl=%x=%gt=%gc=%.pr' /><param name='imageType' value='.jpg%%.png' /><param name='maxDepth' value='500' /><param name='maxDisplay' value='25' /><param name='refreshDelay' value='1500' /><param name='isJava2' value='auto' /><param name='bgcolor' value='#96c29a' />The Collage Applet.</"+GSXML.APPLET_ELEM+">"; // TODO
    102103
     
    106107    app_info += "<param name='imageType' value='.jpg%.png' />\n";
    107108    app_info += "<param name='imageMustNotHave' value='interfaces/' />\n";
    108     app_info += "<param name='classifier' value='CL2.3' /><param name='maxDepth' value='500' /><param name='maxDisplay' value='25' /><param name='refreshDelay' value='1500' /><param name='isJava2' value='auto' /><param name='bgcolor' value='#96c29a' />The Collage Applet.</"+GSXML.APPLET_ELEM+">"; // TODO
     109    app_info += "<param name='classifier' value='CL3.1' /><param name='maxDepth' value='500' /><param name='maxDisplay' value='25' /><param name='refreshDelay' value='1500' /><param name='isJava2' value='auto' /><param name='bgcolor' value='#96c29a' />The Collage Applet.</"+GSXML.APPLET_ELEM+">"; // TODO
    109110   
    110111    Document dom = this.converter.getDOM(app_info);
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/classifier.xsl

    r38927 r38929  
    174174      <param name='library' value='library'/>
    175175      <param name="collection" value="smallbea"/>
    176       <param name="classifier" value="CL2.3"/> <!-- 3.1 -->
     176      <param name="classifier" value="CL3.1"/>
    177177
    178178      <param name='documentroot' value='greenstone3'/>
     
    182182      <param name='verbosity' value='3' />
    183183      <!--<param name="hrefMustHave" value="CL3"/>-->
    184       <param name="hrefMustHave" value="library/sites/localsite/collect/smallbea"/>
     184      <param name="hrefMustHave" value="library/collection/smallbea/browse/CL3"/>
    185185      <param name='imageMustNotHave' value='interfaces/' />
    186186      <param name="maxDepth" value="500"/>
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-collage.xsl

    r38928 r38929  
    156156       }
    157157       var baseClassifier = "CL3";
    158        var gs3CollImgPath = gs.xsltParams.library_name + "/sites/" + gs.xsltParams.site_name + "/collect/" + gs.cgiParams.c;
     158       //var gs3CollImgPath = gs.xsltParams.library_name + "/sites/" + gs.xsltParams.site_name + "/collect/" + gs.cgiParams.c;
    159159       var gs3CollBrowsePath = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/browse/" + baseClassifier;
    160160       
     
    164164       webswingInstance0.options.args += " --library " + gs.xsltParams.library_name;
    165165       webswingInstance0.options.args += " --documentroot greenstone3";
    166        webswingInstance0.options.args += " --hrefMustHave " + gs3CollImgPath + "%" + gs3CollBrowsePath;
     166       webswingInstance0.options.args += " --hrefMustHave " + gs3CollBrowsePath;
    167167       webswingInstance0.options.args += " --imageMustNotHave \"interfaces/\"";
    168168       webswingInstance0.options.args += " --verbosity " + 3;
Note: See TracChangeset for help on using the changeset viewer.