Skip to content

Commit

Permalink
#6426 get actual prod date for export
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Dec 20, 2019
1 parent dc103c4 commit a476e1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,13 @@ public String getTitle() {
}

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

/**
Expand Down

0 comments on commit a476e1a

Please sign in to comment.