Show
Ignore:
Timestamp:
11.09.2012 18:33:14 (7 years ago)
Author:
ak19
Message:

Handling special case in search form control generation, where no controls but pure labels are specified.

Location:
other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/GS3JavaClient.java

    r22299 r26174  
    699699                String response = dlAPIA.describeCollectionService( 
    700700                        colName, serviceName); 
     701                LOG.error("**** serviceResponse XML:" + response); 
     702                System.err.println("**** serviceResponse XML:" + response); 
     703 
    701704                Element serviceResponseXML = getResponseAsDOM( 
    702705                    "DescribeCollectionService "+colName+"/"+serviceName, 
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/QueryFormControl.java

    r15222 r26174  
    211211                } 
    212212            } 
     213        }  
     214        else { // no <option>s, look for a <displayItem> 
     215            nl = param.getElementsByTagName(GSXML.DISPLAY_TEXT_ELEM); 
     216            if(nl != null && nl.getLength() > 0) { 
     217            Element displayItem = (Element)nl.item(0); 
     218            this.ref = new JLabel(GSXML.getNodeText(displayItem)); 
     219            } 
    213220        } 
    214221    }