updates to include additional information for vocabulary services
This commit is contained in:
parent
6567b55847
commit
aff8500f20
2 changed files with 12 additions and 8 deletions
|
@ -35,15 +35,15 @@ public class ConceptSearchServiceUtils {
|
|||
|
||||
//Get the URLS for the different services
|
||||
//URL to label
|
||||
public static HashMap<String, String> getVocabSources() {
|
||||
HashMap<String, String> map = new HashMap<String, String>();
|
||||
map.put(UMLSVocabSource, "UMLS");
|
||||
map.put(AgrovocVocabSource, "AGROVOC");
|
||||
map.put(GemetVocabSource, "GEMET");
|
||||
|
||||
public static HashMap<String, VocabSourceDescription> getVocabSources() {
|
||||
HashMap<String, VocabSourceDescription> map = new HashMap<String, VocabSourceDescription>();
|
||||
map.put(UMLSVocabSource, new VocabSourceDescription("UMLS", UMLSVocabSource, "http://www.nlm.nih.gov/research/umls/", "Unified Medical Language System"));
|
||||
map.put(AgrovocVocabSource, new VocabSourceDescription("AGROVOC", AgrovocVocabSource, "www.fao.org/agrovoc/", "Agricultural Vocabulary"));
|
||||
map.put(GemetVocabSource, new VocabSourceDescription("GEMET", GemetVocabSource, "http://www.eionet.europa.eu/gemet", "GEneral Multilingual Environmental Thesaurus"));
|
||||
return map;
|
||||
}
|
||||
|
||||
//Get additional vocab source info
|
||||
|
||||
|
||||
//Get the hashmap mapping service name to Service class
|
||||
|
@ -93,4 +93,7 @@ public class ConceptSearchServiceUtils {
|
|||
private static String getSearchTerm(VitroRequest vreq) {
|
||||
return vreq.getParameter("searchTerm");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue