updates to concept search service utils

This commit is contained in:
hjkhjk54 2011-11-30 18:58:11 +00:00
parent 2bf820d038
commit 1a994e0187

View file

@ -19,7 +19,8 @@ import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
public class ConceptSearchServiceUtils { public class ConceptSearchServiceUtils {
private static final Log log = LogFactory.getLog(ConceptSearchServiceUtils.class); private static final Log log = LogFactory.getLog(ConceptSearchServiceUtils.class);
//Get the appropriate search service class //Get the appropriate search service class
private static final String UMLSVocabSource = "http://link.informatics.stonybrook.edu/umls/";
private static final String AgrovocVocabSource = "http://www.fao.org/webservices/Agrovoc";
//Get the class that corresponds to the appropriate search //Get the class that corresponds to the appropriate search
public static String getConceptSearchServiceClassName(String searchServiceName) { public static String getConceptSearchServiceClassName(String searchServiceName) {
HashMap<String, String> map = getMapping(); HashMap<String, String> map = getMapping();
@ -33,8 +34,8 @@ public class ConceptSearchServiceUtils {
//URL to label //URL to label
public static HashMap<String, String> getVocabSources() { public static HashMap<String, String> getVocabSources() {
HashMap<String, String> map = new HashMap<String, String>(); HashMap<String, String> map = new HashMap<String, String>();
map.put("http://link.informatics.stonybrook.edu/umls/", "UMLS"); map.put(UMLSVocabSource, "UMLS");
map.put("http://www.fao.org/webservices/Agrovoc", "Agrovoc"); map.put(AgrovocVocabSource, "Agrovoc");
return map; return map;
} }