-
Notifications
You must be signed in to change notification settings - Fork 537
Closed
Labels
bugFrom Hemiptera and especially its suborder HeteropteraFrom Hemiptera and especially its suborder Heteroptera
Description
Related to #759.
I tried to solve the problem by enabling the consolidation, however, the correct publication date was not retrieved correctly.
The BiblioItem object from the consolidation service had:
- publicationDate = null
- normalisedPublicationDate with the correct value
(I wonder if this is the correct behaviour)
however, in the BiblioItem, after the correct(...) method is invoked, the normalisedPublication date is overridden with the first raw publication date:
// normalization of dates
if (resHeader != null) {
if (resHeader.getPublicationDate() != null) {
List<Date> dates = parsers.getDateParser().processing(resHeader.getPublicationDate());
// most basic heuristic, we take the first date - to be
// revised...
if (dates != null) {
if (dates.size() > 0) {
resHeader.setNormalizedPublicationDate(dates.get(0));
}
}
}This will inevitably lose the good normalised date from the consolidation service. I'm not sure what is the correct behaviour, I supply this issue mostly for information as I assume there many different use cases 😉
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugFrom Hemiptera and especially its suborder HeteropteraFrom Hemiptera and especially its suborder Heteroptera