.getStructureSummaryFields();
Collection<PDBResponseSummary> filteredResponse = new HashSet<PDBResponseSummary>();
HashSet<String> errors = new HashSet<String>();
- // try
- // {
- // PDBDocField fiterField = PDBRestClient
- // .getPDBDocFieldByCode(fieldToFilterBy);
- // if (!wantedFields.contains(fiterField))
- // {
- // wantedFields.add(fiterField);
- // }
- // } catch (Exception e)
- // {
- // e.printStackTrace();
- // }
for (SequenceI seq : selectedSequences)
{
.getWantedFields());
int responseSize = (pdbRestRequest.getResponseSize() == 0) ? DEFAULT_RESPONSE_SIZE
: pdbRestRequest.getResponseSize();
- String sortParam = (pdbRestRequest.getFieldToSortBy() == null || pdbRestRequest
- .getFieldToSortBy().trim().isEmpty()) ? "" : (pdbRestRequest
- .getFieldToSortBy() + (pdbRestRequest.isAscending() ? " asc"
- : " desc"));
+ String sortParam = null;
+ if (pdbRestRequest.getFieldToSortBy() == null
+ || pdbRestRequest.getFieldToSortBy().trim().isEmpty())
+ {
+ sortParam = "";
+ }
+ else
+ {
+ if (pdbRestRequest.getFieldToSortBy()
+ .equalsIgnoreCase("Resolution"))
+ {
+ sortParam = pdbRestRequest.getFieldToSortBy()
+ + (pdbRestRequest.isAscending() ? " asc" : " desc");
+ }
+ else
+ {
+ sortParam = pdbRestRequest.getFieldToSortBy()
+ + (pdbRestRequest.isAscending() ? " desc" : " asc");
+ }
+ }
+
String facetPivot = (pdbRestRequest.getFacetPivot() == null || pdbRestRequest
.getFacetPivot().isEmpty()) ? "" : pdbRestRequest
.getFacetPivot();