JAL-2024 code to enforce case insensitivity for manual pdb structure querying
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 10 Mar 2016 11:43:59 +0000 (11:43 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 10 Mar 2016 11:43:59 +0000 (11:43 +0000)
src/jalview/gui/StructureChooser.java
src/jalview/ws/dbsources/PDBRestClient.java

index 5d381b9..34c9b79 100644 (file)
@@ -921,7 +921,8 @@ public class StructureChooser extends GStructureChooser implements
           pdbRequest.setResponseSize(1);
           pdbRequest.setFieldToSearchBy("(pdb_id:");
           pdbRequest.setWantedFields(wantedFields);
-          pdbRequest.setSearchTerm(txt_search.getText() + ")");
+          pdbRequest
+                  .setSearchTerm(txt_search.getText().toLowerCase() + ")");
           pdbRequest.setAssociatedSequence(selectedSequence);
           pdbRestCleint = new PDBRestClient();
           PDBRestResponse resultList;
index 8e08c84..05dab95 100644 (file)
@@ -111,7 +111,7 @@ public class PDBRestClient
 
       // Get the JSON string from the response object
       String responseString = clientResponse.getEntity(String.class);
-      System.out.println("query >>>>>>> " + pdbRestRequest.toString());
+      // System.out.println("query >>>>>>> " + pdbRestRequest.toString());
 
       // Check the response status and report exception if one occurs
       if (clientResponse.getStatus() != 200)