From cb9500424658fe463afbb0f0468eababdf8b9f25 Mon Sep 17 00:00:00 2001 From: kimong Date: Wed, 5 Mar 2014 15:26:51 -0500 Subject: [PATCH] [GF#33228] Update NCBO REST client code. --- .../src/java/gov/nih/nci/evs/browser/common/Constants.java | 1 + .../src/java/gov/nih/nci/evs/browser/utils/DataUtils.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/common/Constants.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/common/Constants.java index 2c40b13f7..0d56d5d8e 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/common/Constants.java +++ b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/common/Constants.java @@ -69,6 +69,7 @@ public class Constants { public static final String EMPTY = ""; public static final String ALL = "ALL"; + public static final String OBO = "OBO"; // Application error constants public static final String INIT_PARAM_ERROR_PAGE = "errorPage"; diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java index 43ff7cca4..551d59c71 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java +++ b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java @@ -6401,11 +6401,9 @@ public static String createVisualizationWidgetURL(String abbreviation, String co //String csName = (String) localname2CSNameMap.get(abbreviation); String csName = getCSName(abbreviation); String purl = getNCBOOntologyNamespace(csName); - - System.out.println("(**********) " + purl); if (purl == null) return null; - if (purl.contains("obo")) { + if (purl.indexOf("/obo/") != -1) { code = code.replaceAll(":", "_"); }