JAL-1852 made disabling querying of unpublished PDB entries configurable
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 30 Sep 2015 14:00:19 +0000 (15:00 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 30 Sep 2015 14:00:19 +0000 (15:00 +0100)
src/jalview/ws/uimodel/PDBRestRequest.java

index 5442b65..24f38d1 100644 (file)
@@ -21,6 +21,7 @@
 
 package jalview.ws.uimodel;
 
+import jalview.bin.Cache;
 import jalview.datamodel.SequenceI;
 import jalview.ws.dbsources.PDBRestClient.PDBDocField;
 
@@ -44,14 +45,14 @@ public class PDBRestRequest
 
   private boolean allowEmptySequence;
 
-  private boolean allowUnpublishedEntries;
+  private boolean allowUnpublishedEntries = Cache.getDefault(
+          "ALLOW_UNPUBLISHED_PDB_QUERYING", false);
 
   private int responseSize;
 
   private boolean isSortAscending;
 
-  private Collection<PDBDocField> wantedFields;// = new
-                                               // Collection<PDBDocField>();
+  private Collection<PDBDocField> wantedFields;
 
   public String getFieldToSearchBy()
   {