active_fedora icon indicating copy to clipboard operation
active_fedora copied to clipboard

Uniform application of dates

Open awead opened this issue 10 years ago • 0 comments

Any ldp resource from Fedora has a repository#created and repository#lastModified property. We should be able to return that value whether it is a file, object, metadata path, or version, and use consistent method names. For example, create_date should return created from the ldp source, and modified_date should return the lastModified from the ldp source.

Returning last_modified on a file appears to be here: https://github.com/projecthydra/active_fedora/blob/master/lib/active_fedora/file.rb#L15

But that isn't doing what we think it is. You'd have to call created on the most recent version of a file to get this value,

awead avatar Jan 26 '15 20:01 awead