diff --git a/main/webapp/modules/core/scripts/util/custom-suggest.js b/main/webapp/modules/core/scripts/util/custom-suggest.js index ebc12f500..472813294 100644 --- a/main/webapp/modules/core/scripts/util/custom-suggest.js +++ b/main/webapp/modules/core/scripts/util/custom-suggest.js @@ -33,6 +33,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. var CustomSuggest = {}; +// Default API key for Refine to use for freebase suggest widget +//CustomSuggest.setFreebaseAPIKey("AIzaSyBBTAtJ31v_jlg_ImbQuBNnAaAyrHzRyW8"); // Google key +CustomSuggest.FREEBASE_API_KEY = "AIzaSyBAZ_EjMPKlOzyyZXv6JKXPPwJFISVji3M"; // OpenRefine default key + CustomSuggest.setFreebaseAPIKey = function(freebaseAPIKey) { $.suggest.suggest.defaults.key = freebaseAPIKey; $.suggest.suggestT.defaults.key = freebaseAPIKey; @@ -173,8 +177,7 @@ CustomSuggest.setFreebaseAPIKey = function(freebaseAPIKey) { if (data.value && data.value != "null") { CustomSuggest.setFreebaseAPIKey(data.value); } else { - // Default API key for Refine to use for freebase suggest widget - CustomSuggest.setFreebaseAPIKey("AIzaSyBBTAtJ31v_jlg_ImbQuBNnAaAyrHzRyW8"); + CustomSuggest.setFreebaseAPIKey(CustomSuggest.FREEBASE_API_KEY); } } }