Changeset 3460
- Timestamp:
- 2002-10-14T15:59:08+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/AppletAction.java
r3455 r3460 83 83 // add in the applet info 84 84 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 name86 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); 88 88 page.appendChild(app_desc); 89 89 … … 126 126 * library_name 127 127 */ 128 protected void addLibraryName(Element description, String library_name) { 128 protected void editLocalParams(Element description, String library_name, 129 String full_collection_name) { 129 130 130 131 Node child = description.getFirstChild(); … … 138 139 } else if (name.equals("library")) { 139 140 ((Element)child).setAttribute("VALUE", library_name); 140 break; 141 } else if (name.equals("collection")) { 142 ((Element)child).setAttribute("VALUE", full_collection_name); 141 143 } 142 144
Note:
See TracChangeset
for help on using the changeset viewer.