Ignore:
Timestamp:
2024-03-28T21:04:33+13:00 (4 weeks ago)
Author:
anupama
Message:

GsdlCollageApplet updates. 1. Removed the sitename parameter I had introduced, to just pass the official hrefMustHave parameter which builds up the necessary parameter using the sitename, instead of building up hrefMustHave in Java which would have hardcoded a customisable parameter. 2. Can now hide/show the status bar, which is now hidden by default since the GsdlCollageApplet never used the statusbar any way. 3. Moved a lot of the parameters out of webswing.config.in into the webswing-collage.xsl so that they are more easily customisable for the end user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-collage.xsl

    r38887 r38888  
    151151       baseURL = baseURL.substring(0, servlet_index+1);
    152152       }
    153        webswingInstance0.options.args += "--baseurl \"" + baseURL + "\"";       
     153       var gs3CollImgPath = gs.xsltParams.library_name + "/sites/" + gs.xsltParams.site_name + "/collect/" + gs.cgiParams.c;
     154
     155       webswingInstance0.options.args += "--baseurl \"" + baseURL + "\"";
     156       //webswingInstance0.options.args += " --gsdlversion 3";       
    154157       webswingInstance0.options.args += " --collection " + gs.cgiParams.c;
    155158       webswingInstance0.options.args += " --library " + gs.xsltParams.library_name;
    156        webswingInstance0.options.args += " --sitename " + gs.xsltParams.site_name;
    157159       webswingInstance0.options.args += " --documentroot greenstone3";
    158 //       webswingInstance0.options.args += " --gsdlversion 3";
    159 //       webswingInstance0.options.args += " --verbosity " + 3;
    160 //       webswingInstance0.options.args += " --imageType " + "\".jpg%.png\"";
    161 //       webswingInstance0.options.args += "--imageMustNotHave \"interfaces/\"";
    162 //       webswingInstance0.options.args += "--classifier \"CL2.3\"";
    163        //webswingInstance0.options.args += "--maxDepth 500 --maxDisplay 25 --refreshDelay 1500 --isJava2 auto --bgcolor "#96c29a";
    164        
    165        console.log("args: " +  webswingInstance0.options.args);
     160       webswingInstance0.options.args += " --hrefMustHave " + gs3CollImgPath;
     161       webswingInstance0.options.args += " --imageMustNotHave \"interfaces/\"";
     162       webswingInstance0.options.args += " --verbosity " + 3;
     163       webswingInstance0.options.args += " --imageType " + "\".jpg%.png\"";
     164       webswingInstance0.options.args += " --classifier \"CL2.3\"";
     165       webswingInstance0.options.args += " --maxDepth 500 --maxDisplay 25 --refreshDelay 1500 --bgcolor \"#96c29a\"";
     166       
     167       //console.log("args: " +  webswingInstance0.options.args);
    166168   
    167169    function getParam(name) {
Note: See TracChangeset for help on using the changeset viewer.