updates to include license tag

This commit is contained in:
hjkhjk54 2011-11-30 18:54:48 +00:00
parent b0a274a03f
commit 2bf820d038
17 changed files with 40 additions and 5 deletions

View file

@ -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();

View file

@ -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 {

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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.

View file

@ -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.

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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.

View file

@ -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;

View file

@ -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;

View file

@ -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.

View file

@ -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;