updates to include license tag
This commit is contained in:
parent
b0a274a03f
commit
2bf820d038
17 changed files with 40 additions and 5 deletions
|
@ -48,7 +48,6 @@ var addConceptForm = {
|
||||||
//input for search term form
|
//input for search term form
|
||||||
this.searchTerm = $('#searchTerm');
|
this.searchTerm = $('#searchTerm');
|
||||||
this.searchSubmit = $('#searchButton');
|
this.searchSubmit = $('#searchButton');
|
||||||
this.vocabSource = $('#source');
|
|
||||||
//Hidden inputs for eventual submission
|
//Hidden inputs for eventual submission
|
||||||
this.externalConceptURI = $('#conceptNode');
|
this.externalConceptURI = $('#conceptNode');
|
||||||
this.externalConceptLabel = $('#conceptLabel');
|
this.externalConceptLabel = $('#conceptLabel');
|
||||||
|
@ -120,11 +119,13 @@ var addConceptForm = {
|
||||||
submitSearchTerm: function() {
|
submitSearchTerm: function() {
|
||||||
//Get value of search term
|
//Get value of search term
|
||||||
var searchValue = this.searchTerm.val();
|
var searchValue = this.searchTerm.val();
|
||||||
var vocabSourceValue = this.vocabSource.val();
|
var vocabSourceValue = $('input:radio[name="source"]:checked').val();
|
||||||
var dataServiceUrl = addConceptForm.dataServiceUrl + "?searchTerm=" + encodeURIComponent(searchValue) + "&source=" + encodeURIComponent(vocabSourceValue);
|
var dataServiceUrl = addConceptForm.dataServiceUrl + "?searchTerm=" + encodeURIComponent(searchValue) + "&source=" + encodeURIComponent(vocabSourceValue);
|
||||||
$.getJSON(dataServiceUrl, function(results) {
|
$.getJSON(dataServiceUrl, function(results) {
|
||||||
if ( results.array.length == 0 ) {
|
var htmlAdd = "";
|
||||||
alert("results not correct length");
|
|
||||||
|
if ( results== null || results.array == null || results.array.length == 0 ) {
|
||||||
|
htmlAdd = "<p>No search results</p>";
|
||||||
} else {
|
} else {
|
||||||
//array is an array of objects representing concept information
|
//array is an array of objects representing concept information
|
||||||
//loop through and find all the best matches
|
//loop through and find all the best matches
|
||||||
|
@ -133,7 +134,6 @@ var addConceptForm = {
|
||||||
var numberMatches = bestMatchResults.length;
|
var numberMatches = bestMatchResults.length;
|
||||||
var i;
|
var i;
|
||||||
//For each result, display
|
//For each result, display
|
||||||
var htmlAdd = "";
|
|
||||||
if(numberMatches > 0) {
|
if(numberMatches > 0) {
|
||||||
htmlAdd = "<ul class='dd' id='concepts' name='concepts'>";
|
htmlAdd = "<ul class='dd' id='concepts' name='concepts'>";
|
||||||
htmlAdd+= addConceptForm.addResultsHeader();
|
htmlAdd+= addConceptForm.addResultsHeader();
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.bo;
|
package edu.cornell.mannlib.semservices.bo;
|
||||||
|
|
||||||
public class Concept {
|
public class Concept {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.bo;
|
package edu.cornell.mannlib.semservices.bo;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.bo;
|
package edu.cornell.mannlib.semservices.bo;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.service;
|
package edu.cornell.mannlib.semservices.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.service.impl;
|
package edu.cornell.mannlib.semservices.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.service.impl;
|
package edu.cornell.mannlib.semservices.service.impl;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
* $Id$
|
* $Id$
|
||||||
* CONFIDENTIAL AND PROPRIETARY. ? 2007 Revolution Health Group LLC. All rights reserved.
|
* CONFIDENTIAL AND PROPRIETARY. ? 2007 Revolution Health Group LLC. All rights reserved.
|
||||||
* This source code may not be disclosed to others, used or reproduced without the written permission of Revolution Health Group.
|
* This source code may not be disclosed to others, used or reproduced without the written permission of Revolution Health Group.
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
* $Id: DateConverter.java 50408 2007-03-28 19:14:46Z jdamick $
|
* $Id: DateConverter.java 50408 2007-03-28 19:14:46Z jdamick $
|
||||||
*
|
*
|
||||||
* Copyright 2006- Revolution Health Group. All rights reserved.
|
* Copyright 2006- Revolution Health Group. All rights reserved.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
|
|
||||||
import java.text.ParsePosition;
|
import java.text.ParsePosition;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import javax.xml.XMLConstants;
|
import javax.xml.XMLConstants;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id$
|
* $Id$
|
||||||
* CONFIDENTIAL AND PROPRIETARY. © 2007 Revolution Health Group LLC. All rights reserved.
|
* CONFIDENTIAL AND PROPRIETARY. © 2007 Revolution Health Group LLC. All rights reserved.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
import edu.cornell.mannlib.semservices.bo.Time;
|
import edu.cornell.mannlib.semservices.bo.Time;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
* $Id: XMLGregorianCalendarConverter.java 28642 2006-10-25 13:41:54Z jdamick $
|
* $Id: XMLGregorianCalendarConverter.java 28642 2006-10-25 13:41:54Z jdamick $
|
||||||
*
|
*
|
||||||
* Copyright 2006- Revolution Health Group. All rights reserved.
|
* Copyright 2006- Revolution Health Group. All rights reserved.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.semservices.util;
|
package edu.cornell.mannlib.semservices.util;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue