Skip to content

Commit

Permalink
Per conversation with jgautier stipped the '@type="person"' attribute…
Browse files Browse the repository at this point in the history
… in the author fragment;

since it can be a person or an organization; this results in a warning from google validation tool
(because "Thing" is not supposed to have an affiliation) but it appears to be ok to live with it.
  • Loading branch information
landreev committed Nov 17, 2017
1 parent 0801d56 commit eec1163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ public String getJsonLd() {
String name = datasetAuthor.getName().getValue();
String affiliation = datasetAuthor.getAffiliation().getValue();
// We are aware of "givenName" and "familyName" but instead of a person it might be an organization such as "Gallup Organization".
author.add("@type", "Person");
//author.add("@type", "Person");
author.add("name", name);
if (!StringUtil.isEmpty(affiliation)) {
author.add("affiliation", affiliation);
Expand Down

0 comments on commit eec1163

Please sign in to comment.