From 5c0e031af87e7624fe1c6755b8b1550e5c734a65 Mon Sep 17 00:00:00 2001 From: Tim Worrall Date: Fri, 6 Feb 2015 12:35:33 -0500 Subject: [PATCH] VIVO-960: vcard Individuals now display correctly on the manage authors page and can have their rank in the authorship list modified. --- .../freemarker/edit/forms/addAuthorsToInformationResource.ftl | 2 +- .../generators/AddAuthorsToInformationResourceGenerator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl index f7a1c460..93429bd6 100644 --- a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl +++ b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl @@ -192,7 +192,7 @@ var i18nStrings = { authorTypeText: '${i18n().author_capitalized}', organizationTypeText: '${i18n().organization_capitalized}', helpTextSelect: '${i18n().select_an_existing}', - helptextAdd: '${i18n().or_add_new_one}' + helpTextAdd: '${i18n().or_add_new_one}' }; 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 ae864185..3854a999 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 @@ -360,7 +360,7 @@ public class AddAuthorsToInformationResourceGenerator extends VivoBaseGenerator + " OPTIONAL { ?authorURI rdfs:label ?authorName } \n" + " OPTIONAL { ?authorshipURI core:rank ?rank } \n" + "} UNION { \n" - + " core:relatedBy ?authorshipURI . \n" + + " ?subject core:relatedBy ?authorshipURI . \n" + " ?authorshipURI a core:Authorship . \n" + " ?authorshipURI core:relates ?authorURI . \n" + " ?authorURI a vcard:Individual . \n"