Changeset 14650 for greenstone3
- Timestamp:
- 2007-10-11T09:22:13+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/branches/3.03/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java
r14223 r14650 60 60 /** The name of the cluster - for a collection, this is the collection name*/ 61 61 protected String cluster_name = null; 62 /** collection type : mg or mgpp */ 63 protected String col_type = ""; 62 64 63 65 /** a reference to the message router */ … … 109 111 this.cluster_name = name; 110 112 this.description.setAttribute(GSXML.NAME_ATT, name); 111 } 113 } 112 114 113 115 public void setMessageRouter(MessageRouter m) { … … 170 172 171 173 public boolean configure(Element service_cluster_info) { 172 174 173 175 // get the metadata - for now just add it to the list 174 176 Element meta_list = (Element) GSXML.getChildByTagName(service_cluster_info, GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER); … … 468 470 // create the collection element 469 471 Element description = (Element)this.description.cloneNode(false); 472 // set collection type : mg or mgpp 473 description.setAttribute(GSXML.TYPE_ATT, col_type); 474 470 475 response.appendChild(description); 471 476 // check the param list 472 477 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER); 473 if (param_list == null) { 474 addAllDisplayInfo(description, lang); 478 if (param_list == null) { 479 addAllDisplayInfo(description, lang); 475 480 description.appendChild(this.service_list); 476 481 description.appendChild(this.metadata_list); … … 481 486 // go through the param list and see what components are wanted 482 487 NodeList params = param_list.getElementsByTagName(GSXML.PARAM_ELEM); 483 for (int i=0; i<params.getLength(); i++) { 484 485 Element param = (Element)params.item(i); 488 for (int i=0; i<params.getLength(); i++) { 489 490 Element param = (Element)params.item(i); 486 491 // Identify the structure information desired 487 492 if (param.getAttribute(GSXML.NAME_ATT).equals(GSXML.SUBSET_PARAM)) {
Note:
See TracChangeset
for help on using the changeset viewer.