wantedFields = PDBDocFieldPreferences
.getSearchSummaryFields();
+ String searchTerm = txt_search.getText();
+ if (searchTerm.contains(":"))
+ {
+ searchTerm = searchTerm.split(":")[0];
+ }
+
PDBRestRequest request = new PDBRestRequest();
request.setAllowEmptySeq(allowEmptySequence);
request.setResponseSize(100);
request.setFieldToSearchBy(searchTarget + ":");
- request.setSearchTerm(txt_search.getText());
+ request.setSearchTerm(searchTerm);
request.setWantedFields(wantedFields);
PDBRestClient pdbRestCleint = new PDBRestClient();
{
String pdbIdStr = tbl_summary.getValueAt(summaryRow, pdbIdCol)
.toString();
- selectedIds.append(";").append(pdbIdStr);
+
+ String searchTerm = txt_search.getText();
+ if (searchTerm.contains(":"))
+ {
+ selectedIds.append(";").append(pdbIdStr).append(":")
+ .append(searchTerm.split(":")[1].toUpperCase());
+ }
+ else
+ {
+ selectedIds.append(";").append(pdbIdStr);
+ }
}
String ids = selectedIds.deleteCharAt(0).toString();