- Timestamp:
- 2010-06-02T22:03:46+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/resources/java/QBRSOAPServer.java.in
r16784 r22224 137 137 protected static final String docStructureOptions = 138 138 "entire ancestors parent siblings children descendants"; // note the spelling 139 protected static final String docStructureInfo=139 protected static final String structureInfoOptions = 140 140 "numSiblings siblingPosition numChildren"; 141 141 protected static final String browseStructureOptions = … … 487 487 // Create the <paramlist></paramlist> element of param elements, 488 488 // if any; and only if values are legal (that is, if they occur in 489 // static Strings docStructureOptions and docStructureInfo):489 // static Strings docStructureOptions and structureInfoOptions): 490 490 // <param name="structure" value = "structure[i]"> 491 491 // <param name="info" value = "info[i]"> … … 503 503 if(info != null) { 504 504 for(int i = 0; i < info.length; i++) { 505 if( docStructureInfo.indexOf(info[i]) != -1) {505 if(structureInfoOptions.indexOf(info[i]) != -1) { 506 506 paramList.appendChild(GSXML.createParameter( 507 507 this.doc, "info", info[i])); … … 664 664 return browse(collection, browseService, lang, 665 665 classifierNodeIDs, 666 new String[] {"descendants"} ); // note the spelling666 new String[] {"descendants"}, new String[] {""}); // note the spelling 667 667 } 668 668 … … 681 681 * information is requested. Accepted values are ancestors, parent, siblings, 682 682 * children, descendants. 683 * @param infoParams - structural info is requested. Can be numSiblings, 684 * siblingPosition, numChildren 683 685 */ 684 686 public String browse(String collection, String browseService, String lang, 685 String[] classifierNodeIDs, String[] structureParams )687 String[] classifierNodeIDs, String[] structureParams, String[] infoParams) 686 688 { 687 689 if(browseService.equals("")) … … 703 705 this.doc, "structure", structureParams[i])); 704 706 } 707 } 708 709 if(infoParams != null) { 710 for(int i = 0; i < infoParams.length; i++) { 711 if(structureInfoOptions.indexOf(infoParams[i]) != -1) { 712 paramList.appendChild(GSXML.createParameter( 713 this.doc, "info", infoParams[i])); 714 } 715 } 705 716 } 706 717
Note:
See TracChangeset
for help on using the changeset viewer.