From: tcofoegbu Date: Thu, 10 Mar 2016 11:43:59 +0000 (+0000) Subject: JAL-2024 code to enforce case insensitivity for manual pdb structure querying X-Git-Tag: Release_2_10_0~303 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=756e5256d99bbeab177b1a2a8a2296aeb128866b;p=jalview.git JAL-2024 code to enforce case insensitivity for manual pdb structure querying --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 5d381b9..34c9b79 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -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; diff --git a/src/jalview/ws/dbsources/PDBRestClient.java b/src/jalview/ws/dbsources/PDBRestClient.java index 8e08c84..05dab95 100644 --- a/src/jalview/ws/dbsources/PDBRestClient.java +++ b/src/jalview/ws/dbsources/PDBRestClient.java @@ -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)