From 756e5256d99bbeab177b1a2a8a2296aeb128866b Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Thu, 10 Mar 2016 11:43:59 +0000 Subject: [PATCH] JAL-2024 code to enforce case insensitivity for manual pdb structure querying --- src/jalview/gui/StructureChooser.java | 3 ++- src/jalview/ws/dbsources/PDBRestClient.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 1.7.10.2