Changeset 21775 for other-projects/gs3-webservices-java-client/trunk/src/GS3Fedora/org/greenstone/fedora/services/FedoraGS3Connection.java
- Timestamp:
- 2010-03-11T16:45:58+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gs3-webservices-java-client/trunk/src/GS3Fedora/org/greenstone/fedora/services/FedoraGS3Connection.java
r21573 r21775 1035 1035 // set the text content to what was retrieved 1036 1036 Element nodeContent = doc.createElement(GSXML.NODE_CONTENT_ELEM); 1037 Text textNode = doc.createTextNode(sectionContent );1037 Text textNode = doc.createTextNode(sectionContent.trim()); 1038 1038 1039 1039 nodeContent.appendChild(textNode); … … 1301 1301 * serviceNames: DocumentContent/Metadata/StructureRetrieve, ClassifierBrowse, 1302 1302 * ClassifierBrowseMetadataRetrieve. 1303 * All collections in this Digital Library (Fedora Repository) share 1304 * the same services, so this method returns the same as 1305 * describeService(serviceName). 1303 1306 * @param collectionName - the name of the collection whose services are to 1304 1307 * be described. It will be converted to a fedora collection pid, which is of … … 1333 1336 * return nothing special except their names; browse (and any query) 1334 1337 * return more complex XML responses. 1335 * All collections in this Digital Library (Fedora Repository) share1336 * the same services, so this method returns the same as1337 * describeService(serviceName).1338 1338 * @param serviceName - the name of the service in the collection which is to 1339 1339 * be described.*/ … … 1355 1355 attribute = doc.createAttribute(GSXML.TYPE_ATT); 1356 1356 1357 if(serviceName.toLowerCase().endsWith("retrieve")) 1357 if(serviceName.toLowerCase().endsWith("retrieve")) { 1358 1358 attribute.setValue(GSXML.SERVICE_TYPE_RETRIEVE); 1359 1359 } 1360 1360 else if(serviceName.toLowerCase().contains("browse")) { 1361 1361 attribute.setValue(GSXML.SERVICE_TYPE_BROWSE); … … 1390 1390 else if(serviceName.toLowerCase().contains("query")) { 1391 1391 attribute.setValue(GSXML.SERVICE_TYPE_QUERY); 1392 if(serviceName.equals("TextQuery")) 1392 if(serviceName.equals("TextQuery")) { 1393 1393 describeTextQueryService(service); 1394 else if(serviceName.equals("FieldQuery"))1394 } else if(serviceName.equals("FieldQuery")) { 1395 1395 describeFieldQueryService(service); 1396 } 1396 1397 } 1397 1398 … … 2045 2046 // there may be fewer searchTerms than fieldNames (since some 2046 2047 // fieldNames may have been left empty), so loop on searchTerms 2047 if(map.containsKey(fieldNames[i])) { // fieldName is already2048 if(map.containsKey(fieldNames[i])) { // fieldName is already 2048 2049 // in the list, so append comma with new value 2049 2050 String termsList = (String)map.get(fieldNames[i]);
Note:
See TracChangeset
for help on using the changeset viewer.