updates for concept addition and integration of umls/agrovoc search services

This commit is contained in:
hjkhjk54 2011-11-30 18:41:57 +00:00
parent 943315a9c6
commit ce84967d01
28 changed files with 3472 additions and 71 deletions

View file

@ -120,7 +120,8 @@ var addConceptForm = {
submitSearchTerm: function() {
//Get value of search term
var searchValue = this.searchTerm.val();
var dataServiceUrl = addConceptForm.dataServiceUrl + "?searchTerm=" + encodeURIComponent(searchValue);
var vocabSourceValue = this.vocabSource.val();
var dataServiceUrl = addConceptForm.dataServiceUrl + "?searchTerm=" + encodeURIComponent(searchValue) + "&source=" + encodeURIComponent(vocabSourceValue);
$.getJSON(dataServiceUrl, function(results) {
if ( results.array.length == 0 ) {
alert("results not correct length");