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
|
@ -80,8 +80,9 @@
|
||||||
<#assign checkedSource = false />
|
<#assign checkedSource = false />
|
||||||
<h5 class="services">External Vocabulary Services</h5>
|
<h5 class="services">External Vocabulary Services</h5>
|
||||||
<#list sources?keys as sourceUri>
|
<#list sources?keys as sourceUri>
|
||||||
|
<#assign thisSource = sources[sourceUri]/>
|
||||||
<input type="radio" name="source" value="${sourceUri}" role="radio" <#if checkedSource = false><#assign checkedSource = true/>checked="checked"</#if>>
|
<input type="radio" name="source" value="${sourceUri}" role="radio" <#if checkedSource = false><#assign checkedSource = true/>checked="checked"</#if>>
|
||||||
<label class="inline" for="${sources[sourceUri]}"> ${sources[sourceUri]} (${vocabDesc})</label>
|
<label class="inline" for="${thisSource.label}"> <a href="${thisSource.url}">${thisSource.label}</a> (${thisSource.description})</label>
|
||||||
<br />
|
<br />
|
||||||
</#list>
|
</#list>
|
||||||
|
|
||||||
|
|
|
@ -35,15 +35,15 @@ public class ConceptSearchServiceUtils {
|
||||||
|
|
||||||
//Get the URLS for the different services
|
//Get the URLS for the different services
|
||||||
//URL to label
|
//URL to label
|
||||||
public static HashMap<String, String> getVocabSources() {
|
public static HashMap<String, VocabSourceDescription> getVocabSources() {
|
||||||
HashMap<String, String> map = new HashMap<String, String>();
|
HashMap<String, VocabSourceDescription> map = new HashMap<String, VocabSourceDescription>();
|
||||||
map.put(UMLSVocabSource, "UMLS");
|
map.put(UMLSVocabSource, new VocabSourceDescription("UMLS", UMLSVocabSource, "http://www.nlm.nih.gov/research/umls/", "Unified Medical Language System"));
|
||||||
map.put(AgrovocVocabSource, "AGROVOC");
|
map.put(AgrovocVocabSource, new VocabSourceDescription("AGROVOC", AgrovocVocabSource, "www.fao.org/agrovoc/", "Agricultural Vocabulary"));
|
||||||
map.put(GemetVocabSource, "GEMET");
|
map.put(GemetVocabSource, new VocabSourceDescription("GEMET", GemetVocabSource, "http://www.eionet.europa.eu/gemet", "GEneral Multilingual Environmental Thesaurus"));
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get additional vocab source info
|
||||||
|
|
||||||
|
|
||||||
//Get the hashmap mapping service name to Service class
|
//Get the hashmap mapping service name to Service class
|
||||||
|
@ -93,4 +93,7 @@ public class ConceptSearchServiceUtils {
|
||||||
private static String getSearchTerm(VitroRequest vreq) {
|
private static String getSearchTerm(VitroRequest vreq) {
|
||||||
return vreq.getParameter("searchTerm");
|
return vreq.getParameter("searchTerm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue