src/org/ecoinformatics/seek/datasource/darwincore/DarwinCoreDataSource.java,1.16 | . | Disk File |
Skipping to line 1189 | . | |
{ |
. |
{ |
DSTableIFace table = (DSTableIFace)_darwinCoreSchema.getTables()
.elementAt(0); // there is only one table |
. |
DSTableIFace table = (DSTableIFace)_darwinCoreSchema.getTables()
.elementAt(0); // there is only one table |
for (Enumeration e = table.getFields().elements(); e.hasMoreElem
ents();) |
. |
for (Enumeration e = table.getFields().elements(); e.hasMoreElem
ents();) |
{ |
. |
{ |
DSTableFieldIFace field = (DSTableFieldIFace)e.nextElement()
; |
. |
DSTableFieldIFace field = (DSTableFieldIFace)e.nextElement()
; |
queryBuf.append(" <returnfield>/" + field.getName() + "</re
turnfield>"); |
. |
queryBuf.append(" <returnField>/" + field.getName() + "</re
turnField>"); |
} |
. |
} |
} else |
. |
} else |
{ |
. |
{ |
queryBuf.append(" <returnfield>/Species</returnfield>"); |
. |
queryBuf.append(" <returnField>/Species</returnField>"); |
queryBuf.append(" <returnfield>/ScientificName</returnfield>"); |
. |
queryBuf.append(" <returnField>/ScientificName</returnField>"); |
queryBuf.append(" <returnfield>/Collector</returnfield>"); |
. |
queryBuf.append(" <returnField>/Collector</returnField>"); |
queryBuf.append(" <returnfield>/YearCollected</returnfield>"); |
. |
queryBuf.append(" <returnField>/YearCollected</returnField>"); |
queryBuf.append(" <returnfield>/InstitutionCode</returnfield>")
; |
. |
queryBuf.append(" <returnField>/InstitutionCode</returnField>")
; |
queryBuf.append(" <returnfield>/CollectionCode</returnfield>"); |
. |
queryBuf.append(" <returnField>/CollectionCode</returnField>"); |
queryBuf.append(" <returnfield>/CatalogNumber</returnfield>"); |
. |
queryBuf.append(" <returnField>/CatalogNumber</returnField>"); |
queryBuf.append(" <returnfield>/CatalogNumberText</returnfield>
"); |
. |
queryBuf.append(" <returnField>/CatalogNumberText</returnField>
"); |
queryBuf.append(" <returnfield>/DecimalLatitude</returnfield>")
; |
. |
queryBuf.append(" <returnField>/DecimalLatitude</returnField>")
; |
queryBuf.append(" <returnfield>/DecimalLongitude</returnfield>"
); |
. |
queryBuf.append(" <returnField>/DecimalLongitude</returnField>"
); |
} |
. |
} |
queryBuf.append(" <condition operator=\"LIKE\" concept=\"Scientific
Name\">" + searchStr +"</condition>"); |
. |
queryBuf.append(" <condition operator=\"LIKE\" concept=\"Scientific
Name\">" + searchStr +"</condition>"); |
queryBuf.append("</egq:query>"); |
. |
queryBuf.append("</egq:query>"); |
|
. |
|
if (providerList.size() > 0) |
. |
if (providerList.size() > 0) |
Skipping to line 1219 | . | |
int inx = providerStr.indexOf('?'); |
. |
int inx = providerStr.indexOf('?'); |
String baseURL = providerStr.substring(0, inx); |
. |
String baseURL = providerStr.substring(0, inx); |
inx = providerStr.lastIndexOf('='); |
. |
inx = providerStr.lastIndexOf('='); |
String resource = providerStr.substring(inx+1, providerStr.l
ength()).replaceAll("%20", " "); |
. |
String resource = providerStr.substring(inx+1, providerStr.l
ength()).replaceAll("%20", " "); |
//System.out.println(queryBuf.toString()); |
. |
//System.out.println(queryBuf.toString()); |
  |
. |
|
StringReader strReader = new StringReader(queryBuf.toS
tring()); |
. |
StringReader strReader = new StringReader(queryBuf.toS
tring()); |
EcogridQueryParser parser = new EcogridQueryParser(strRea
der); |
. |
EcogridQueryParser parser = new EcogridQueryParser(strRea
der); |
parser.parseXML(); |
. |
parser.parseXML(); |
query = parser.getEcogridQuery(); |
. |
query = parser.getEcogridQuery(); |
|
. |
|