Ignore:
Timestamp:
2024-03-28T00:03:56+13:00 (3 months ago)
Author:
anupama
Message:
  1. Simplified collage applet parameters for GS3. TODO: Just noticed I can remove sitename as it's now only used for href_musthave, which I can set as an official collage applet parameter, so moving that out of the Java code will also reduce my unncessary code additions. 2. Got the status bar working at last, which was a great pain, as it mattered when it was added and where in the code to get the sizing right without overlapping with the collage display (or being obscured entirely by it). It had to be added in main. TODO: a param to hide the status bar as my new code to the collage applet may be the only one to use it, and I only added the showStatus messages to test it works.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GsdlCollageBrowse.java

    r38881 r38885  
    9393    app_info +="<param name='collection'   value='";
    9494    app_info += this.cluster_name + "'/>";
    95     //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
    9695    app_info += "<param name='gsdlversion' value='3' />";
    9796    app_info += "<param name='baseurl' value='http://localhost:8383/greenstone3/' />";
    9897    app_info += "<param name='sitename' value='localsite' />\n";
     98   
     99    //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
     100
    99101    //app_info += "<param name='documentroot' value='library/collection/" + this.cluster_name + "/'/>";
    100102    app_info += "<param name='documentroot' value='greenstone3'/>\n";
    101103    app_info += "<param name='verbosity' value='3' />\n";
    102     app_info += "<param name='imageType' value='.jpg%%.png' />\n";
     104    app_info += "<param name='imageType' value='.jpg%.png' />\n";
    103105    //app_info += "<param name='hrefMustHave' value='smallbea' />\n";
    104     //app_info += "<param name='imageMustNotHave' value='hl=%x=%gt=%gc=%.pr' />\n";
    105106    app_info += "<param name='imageMustNotHave' value='interfaces/' />\n";
    106     app_info += "<param name='gwcgi' value='http://localhost:8383/greenstone3/library/collection/smallbea/' /><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
     107    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
    107108   
    108109    Document dom = this.converter.getDOM(app_info);
Note: See TracChangeset for help on using the changeset viewer.