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/applet/GsdlCollageApplet/DownloadUrls.java

    r38871 r38885  
    2222public class DownloadUrls extends Thread {
    2323    // for GS3   
    24     String gs3CollImgPath = null;
    2524    String baseURL = null;
    2625   
     
    106105               "image_ignore_ "+  image_ignore+"\n"+
    107106               "image_type_ "+ image_type+"\n"+
    108                "document root "+ document_root_
     107               "document_root_ "+ document_root_
    109108                   );
    110109
     
    114113    }
    115114
    116     public void setupForGS3(String gs3CollImgPath, String baseURL)
    117     {
    118     this.gs3CollImgPath = gs3CollImgPath;
    119     this.baseURL = baseURL;
    120     }
    121  
    122115    /** Determines whether or not a url has already been examined
    123116     *
     
    431424
    432425    // connect to the url
    433     CURL curl = (app_.gsdlversion == 3) ? new CURL(new_url, this.baseURL) : new CURL(new_url);
     426    CURL curl = (app_.gsdlversion == 3) ? new CURL(new_url, app_.baseURL) : new CURL(new_url);
    434427
    435428    if (curl.connected_ok())
Note: See TracChangeset for help on using the changeset viewer.