diff --git a/productMods/edit/forms/addAuthorsToInformationResource.jsp b/productMods/edit/forms/addAuthorsToInformationResource.jsp index b2543134..f7ad59bf 100644 --- a/productMods/edit/forms/addAuthorsToInformationResource.jsp +++ b/productMods/edit/forms/addAuthorsToInformationResource.jsp @@ -36,6 +36,8 @@ core:authorInAuthorship (Person : Authorship) - inverse of linkedAuthor <%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory"%> <%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%> <%@ page import="edu.cornell.mannlib.vitro.webapp.web.MiscWebUtils"%> +<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.freemarker.UrlBuilder.JavaScript" %> +<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.freemarker.UrlBuilder.Css" %> <%@ page import="org.apache.commons.logging.Log" %> <%@ page import="org.apache.commons.logging.LogFactory" %> @@ -243,14 +245,16 @@ SPARQL queries for existing values. --%> vreq.setAttribute("infoResourceName", infoResource.getName()); String linkedAuthorProperty = "http://vivoweb.org/ontology/core#linkedAuthor"; - - List customJs = new ArrayList(Arrays.asList("/js/utils.js", - "/js/customFormUtils.js", + + List customJs = new ArrayList(Arrays.asList(JavaScript.JQUERY_UI.path(), + JavaScript.UTILS.path(), + JavaScript.CUSTOM_FORM_UTILS.path(), "/edit/forms/js/addAuthorsToInformationResource.js" )); request.setAttribute("customJs", customJs); - List customCss = new ArrayList(Arrays.asList("/edit/forms/css/customForm.css", + List customCss = new ArrayList(Arrays.asList(Css.JQUERY_UI.path(), + Css.CUSTOM_FORM.path(), "/edit/forms/css/addAuthorsToInformationResource.css" )); request.setAttribute("customCss", customCss); diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index a1c25261..a1f5444c 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -38,9 +38,7 @@ var addAuthorForm = { }, initForm: function() { - - this.showFormButton.click(function() { addAuthorForm.showFormDiv.hide(); addAuthorForm.form.show(); @@ -52,8 +50,19 @@ var addAuthorForm = { addAuthorForm.showFormDiv.show(); return false; }); + + //this.setUpAutocomplete(); }, +// setUpAutocomplete: function() { +// +// var names = ["Adams", "Bell", "Smith", "Smile", "Smelt", "Younes", "Young"]; +// $('#lastName').autocomplete({ +// source: names +// }); +// +// }, + toggleRemoveLink: function() { // when clicking remove: remove the author, and change link text to "undo" // when clicking undo: add the author back, and change link text to "remove"