Changeset 38928 for main/trunk


Ignore:
Timestamp:
2024-04-16T16:30:46+12:00 (7 weeks ago)
Author:
anupama
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:
2 edited

Legend:

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

    r38926 r38928  
    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" --documentroot greenstone3 --verbosity 3 --imageType ".jpg%.png" --imageMustNotHave "interfaces/" --classifier "CL2.3" --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/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
    730730     */
    731731    public static void main(String[] args) {
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-collage.xsl

    r38926 r38928  
    155155       baseURL = baseURL.substring(0, servlet_index+1);
    156156       }
     157       var baseClassifier = "CL3";
    157158       var gs3CollImgPath = gs.xsltParams.library_name + "/sites/" + gs.xsltParams.site_name + "/collect/" + gs.cgiParams.c;
    158 
     159       var gs3CollBrowsePath = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/browse/" + baseClassifier;
     160       
    159161       webswingInstance0.options.args += "--baseurl \"" + baseURL + "\"";
    160162       //webswingInstance0.options.args += " --gsdlversion 3";       
     
    162164       webswingInstance0.options.args += " --library " + gs.xsltParams.library_name;
    163165       webswingInstance0.options.args += " --documentroot greenstone3";
    164        webswingInstance0.options.args += " --hrefMustHave " + gs3CollImgPath;
     166       webswingInstance0.options.args += " --hrefMustHave " + gs3CollImgPath + "%" + gs3CollBrowsePath;
    165167       webswingInstance0.options.args += " --imageMustNotHave \"interfaces/\"";
    166168       webswingInstance0.options.args += " --verbosity " + 3;
    167169       webswingInstance0.options.args += " --imageType " + "\".jpg%.png\"";
    168        webswingInstance0.options.args += " --classifier \"CL2.3\"";
     170       webswingInstance0.options.args += " --classifier \"" + baseClassifier + ".1\""; // "CL3.1"
    169171       webswingInstance0.options.args += " --maxDepth 500 --maxDisplay 25 --refreshDelay 1500 --bgcolor \"#96c29a\"";       
    170172
Note: See TracChangeset for help on using the changeset viewer.