Changeset 11420


Ignore:
Timestamp:
2006-03-21T09:33:27+12:00 (18 years ago)
Author:
shaoqun
Message:

add code to get the greenstone home directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/java/org/nzdl/gsdl/GsdlCollageApplet/GsdlCollageApplet.java

    r10166 r11420  
    108108    String bgcolor_param        = getParameter("bgcolor");
    109109    String caption_param        = getParameter("caption");
     110        String document_root        = getParameter("documentroot");
     111
    110112
    111113    // Check it isn't null
     
    182184        refreshDelay_ = Integer.parseInt(refresh_delay_param);
    183185    }
     186
     187       
     188        if (document_root !=null){         
     189        document_root = document_root.substring(1);
     190        document_root = document_root.substring(0, document_root.indexOf("/"));
     191    }
     192
    184193
    185194    String image_url  = getParameter("imageURL");
     
    201210        image_url += "&cl=" + classifier_param;
    202211    }
    203    
     212
     213
    204214    // creates a class to store the image and it's associated url
    205215    download_images_ = new DownloadImages(verbosity_);
    206216    // starts the download image thread with the starting url
    207     download_thread_ = new DownloadUrls(this, download_images_,
     217
     218        download_thread_ = new DownloadUrls(this, download_images_,
    208219                        image_url, href_musthave, image_mustnothave,
    209                         image_ignore, imageType_, verbosity_);
     220                        image_ignore, imageType_,document_root,verbosity_);
    210221    // starts the display image thread with the currently downloaded images
    211222    display_thread_ = new DisplayImages(this,download_images_, isJava2_, bgcolor_);
Note: See TracChangeset for help on using the changeset viewer.