Citation needs to include a "last updated" field if available. Decide how to populate this field
Summary: Citation needs to include a "last updated" field if available. Decide how to populate this field
Created: 2012-10-05 15:31:45.901
Updated: 2013-12-16 17:50:42.284
Resolved: 2013-12-11 14:48:20.8
Description: Citation needs to include a "last updated field if available. Decide how to populate this field. Ideally it would be the date GBIF last indexed the dataset, and if yes, this value needs to be persisted somewhere to be able to get it back.
Possibly a new field to registry-persistence's Agent class is needed, but a change on the Dataset API object would not be needed as the DatasetFactory will be the one generating the citation and DatasetFactory has access to the persistence's Agent object.
To accomplish this, I need Andrea's opinion on this.]]>
Comment: Just to avoid confusion, Citation will not get a new field, no?
Created: 2012-11-06 11:12:12.157
Updated: 2012-11-06 11:12:12.157
Created: 2012-11-06 11:19:13.794
Updated: 2012-11-06 11:19:13.794
No, the API object is not going to be modified. My approach is to add all the text necessary string
to the "text" attribute of the Citation API object. and will be aither taken from the Dataset "pubDate" attr, the Agent's "created" or "modified" attrs, or from both objects. We could even need to add new "lastIndexed" attr on the Agent and/or Dataset.
But at the end, Citation will remain the same.