From 6bcbca8552d9c59f27c8d3d8fd7dc2798c157f61 Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Mon, 21 Nov 2011 21:23:51 +0000 Subject: [PATCH] updating authors to information resource and associated concept --- .../edit/forms/addAssociatedConcept.ftl | 2 +- .../forms/addAuthorsToInformationResource.ftl | 15 ++++++++++++--- .../AddAuthorsToInformationResourceGenerator.java | 1 - 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl b/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl index be1d7c3d..e9dca238 100644 --- a/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl +++ b/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl @@ -39,7 +39,7 @@ <#list existingConcepts?keys as key> - <#local existingConcept = existingConcepts[key] /> + <#assign existingConcept = existingConcepts[key] />
  • diff --git a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl index 7e32c31e..19b187f5 100644 --- a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl +++ b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl @@ -79,19 +79,28 @@ or - Return to Publication + Return to Publication

    Add an Author

    + <#--These wrapper paragraph elements are important because javascript hides parent of these fields, since last name + should be visible even when first name/middle name are not, the parents should be separate for each field--> +

    - +

    + +

    +

    + - +

    + +

    diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java index 2a7aae94..c66eee2c 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java +++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddAuthorsToInformationResourceGenerator.java @@ -277,7 +277,6 @@ public class AddAuthorsToInformationResourceGenerator extends VivoBaseGenerator private void setPersonUriField(EditConfigurationVTwo editConfiguration) { editConfiguration.addField(new FieldVTwo(). setName("personUri"). - setValidators(list("")). setObjectClassUri(personClass) );