Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6426 get actual prod date for export #6478

Merged
merged 4 commits into from Jan 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions doc/release-notes/6426-reexport-all
@@ -0,0 +1,14 @@
## Notes for Dataverse Installation Administrators

### Run ReExportall

We made changes to the JSON Export in this release (#6246). If you'd like these changes to reflected in your JSON exports, you should run ReExportall as part of the upgrade process. We've included this in the detailed instructions below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"We made changes to the JSON Export" sounds a little scary to me but we can reword this when we write the actual release note. What we're really doing is populating a data field with a date instead of the word "Production Date".







xxx. (Optional) Run ReExportall to update JSON Exports

<http://guides.dataverse.org/en/4.19/admin/metadataexport.html?highlight=export#batch-exports-through-the-api>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the actual release note, I'd suggest removing ?highlight=export from this URL.

9 changes: 7 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Expand Up @@ -675,8 +675,13 @@ public String getTitle() {
}

public String getProductionDate() {
//todo get "Production Date" from datasetfieldvalue table
return "Production Date";
String retVal = null;
for (DatasetField dsfv : this.getDatasetFields()) {
if (dsfv.getDatasetFieldType().getName().equals(DatasetFieldConstant.productionDate)) {
retVal = dsfv.getDisplayValue();
}
}
return retVal;
}

/**
Expand Down