From 3bbfc53f15f39c6a7b9df741bdabda7f0c1447f4 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Wed, 30 Sep 2015 15:00:19 +0100 Subject: [PATCH] JAL-1852 made disabling querying of unpublished PDB entries configurable --- src/jalview/ws/uimodel/PDBRestRequest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jalview/ws/uimodel/PDBRestRequest.java b/src/jalview/ws/uimodel/PDBRestRequest.java index 5442b65..24f38d1 100644 --- a/src/jalview/ws/uimodel/PDBRestRequest.java +++ b/src/jalview/ws/uimodel/PDBRestRequest.java @@ -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 wantedFields;// = new - // Collection(); + private Collection wantedFields; public String getFieldToSearchBy() { -- 1.7.10.2