Changeset 3460


Ignore:
Timestamp:
2002-10-14T15:59:08+13:00 (22 years ago)
Author:
kjdon
Message:

changed applet html collection name to use the absolute name (eg site1/demo) rahter than local name (demo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/AppletAction.java

    r3455 r3460  
    8383        // add in the applet info
    8484        Element app_desc = (Element)doc_.importNode(GSXML.getNodeByPath(mr_response, "response/service/applet"), true);
    85         // must look through the applet description and see if there is a param called library. if so, add the value to be the current library name
    86 
    87         addLibraryName(app_desc, config_.library_name_);
     85        // must handle any params that have values that are not
     86        // necessarily known by the service
     87        editLocalParams(app_desc, config_.library_name_, collection);
    8888        page.appendChild(app_desc);
    8989
     
    126126     * library_name
    127127     */
    128     protected void addLibraryName(Element description, String library_name) {
     128    protected void editLocalParams(Element description, String library_name,
     129                   String full_collection_name) {
    129130
    130131    Node child = description.getFirstChild();
     
    138139            } else if (name.equals("library")) {
    139140            ((Element)child).setAttribute("VALUE", library_name);
    140             break;
     141            } else if (name.equals("collection")) {
     142            ((Element)child).setAttribute("VALUE", full_collection_name);
    141143            }
    142144           
Note: See TracChangeset for help on using the changeset viewer.