diff --git a/productMods/edit/forms/addAuthorsToInformationResource.jsp b/productMods/edit/forms/addAuthorsToInformationResource.jsp index 16bda3ef..2fd327d5 100644 --- a/productMods/edit/forms/addAuthorsToInformationResource.jsp +++ b/productMods/edit/forms/addAuthorsToInformationResource.jsp @@ -398,7 +398,7 @@ SPARQL queries for existing values. --%>

Add an Author

-

+

diff --git a/productMods/edit/forms/addPublicationToAuthor.jsp b/productMods/edit/forms/addPublicationToAuthor.jsp index 4bb03745..17bef319 100644 --- a/productMods/edit/forms/addPublicationToAuthor.jsp +++ b/productMods/edit/forms/addPublicationToAuthor.jsp @@ -220,12 +220,12 @@ SPARQL queries for existing values. --%> - +
<%-- RY maybe make this a label and input field. See what looks best. --%>

- +

diff --git a/productMods/edit/forms/css/customFormWithAdvanceTypeSelection.css b/productMods/edit/forms/css/customFormWithAdvanceTypeSelection.css index 33d84828..5c5d481e 100644 --- a/productMods/edit/forms/css/customFormWithAdvanceTypeSelection.css +++ b/productMods/edit/forms/css/customFormWithAdvanceTypeSelection.css @@ -1,5 +1 @@ /* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -#selectedResource { - display:none; -} diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index e440bfae..2944c780 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -130,20 +130,20 @@ var addAuthorForm = { showFieldsForNewPerson: function() { this.firstNameWrapper.show(); this.middleNameWrapper.show(); - this.toggleLastNameLabel('Name', 'Last name'); + // this.toggleLastNameLabel('Name', 'Last name'); }, hideFieldsForNewPerson: function() { this.hideFields(this.firstNameWrapper); this.hideFields(this.middleNameWrapper); - this.toggleLastNameLabel('Last name', 'Name'); + // this.toggleLastNameLabel('Last name', 'Name'); }, - toggleLastNameLabel: function(currentText, newText) { - var lastNameLabelText = this.lastNameLabel.html(), - newLastNameLabelText = lastNameLabelText.replace(currentText, newText); - this.lastNameLabel.html(newLastNameLabelText); - }, +// toggleLastNameLabel: function(currentText, newText) { +// var lastNameLabelText = this.lastNameLabel.html(), +// newLastNameLabelText = lastNameLabelText.replace(currentText, newText); +// this.lastNameLabel.html(newLastNameLabelText); +// }, /* *** Ajax initializations *** */ @@ -451,24 +451,26 @@ var addAuthorForm = { onLastNameChange: function() { this.showFieldsForNewPerson(); this.firstNameField.focus(); - this.fixNames(); + // this.fixNames(); }, // User may have typed first name as well as last name into last name field. // If so, when showing first and middle name fields, move anything after a comma // or space into the first name field. - fixNames: function() { - var lastNameInput = this.lastNameField.val(), - names = lastNameInput.split(/[, ]+/), - lastName = names[0]; - - this.lastNameField.val(lastName); - - if (names.length > 1) { - //firstName = names[1].replace(/^[, ]+/, ''); - this.firstNameField.val(names[1]); - } - }, + // RY Space is problematic because they may be entering " ", but + // comma is a clear case. +// fixNames: function() { +// var lastNameInput = this.lastNameField.val(), +// names = lastNameInput.split(/[, ]+/), +// lastName = names[0]; +// +// this.lastNameField.val(lastName); +// +// if (names.length > 1) { +// //firstName = names[1].replace(/^[, ]+/, ''); +// this.firstNameField.val(names[1]); +// } +// }, removeAuthorship: function(link) { // RY Upgrade this to a modal window diff --git a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js index 5da6b4c2..0dc42bbe 100644 --- a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js +++ b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js @@ -1,3 +1,2 @@ /* $This file is distributed under the terms of the license in /doc/license.txt$ */ -$('#pubUri').attr('disabled', 'disabled');