Skip to content

Commit

Permalink
...and a quick fix for the "temporalCoverage" entry (IQSS#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Nov 16, 2017
1 parent 67882ff commit e0399c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,17 @@ public List<String> getTimePeriodsCovered() {
if (subField.isEmptyForDisplay()) {
start = null;
} else {
start = subField.getDisplayValue();
// we want to use "getValue()", as opposed to "getDisplayValue()" here -
// as the latter method prepends the value with the word "Start:"!
start = subField.getValue();
}
}
if (subField.getDatasetFieldType().getName().equals(DatasetFieldConstant.timePeriodCoveredEnd)) {
if (subField.isEmptyForDisplay()) {
end = null;
} else {
end = subField.getDisplayValue();
// see the comment above
end = subField.getValue();
}
}

Expand Down

0 comments on commit e0399c1

Please sign in to comment.