hyrax
hyrax copied to clipboard
Version Presenter Valykrization
I’ve been looking into editing FileSets through the Web UI in a Valkyrized Hyrax and from what I can tell the VersionListPresenter
and VersionPresenter
are current sticking points in making this work. I think fixing the following things would get us a fair chunk of the way there :—
-
[ ]
FileSet
s need anoriginal_file
method. TheValkyrieFileSetIndexer
provides an implementation oforiginal_file
here :——: but it doesn’t appear to be present on
FileSet
s themselves. Perhaps this method can just be moved there? -
[ ] The resulting
FileMetadata
needs aversions
method, and doesn’t have one. The Wings storage adapter provides afind_versions
method so creating this should be achievable. -
[ ] The
Version
object provided by the Wings storage adapter is missing acreated
method, although “in practice” it seems like this might be theversion_token
? -
[ ] Finally,
Version
s created by Wings should have an associatedVersionCommitter
.VersionCommitter
s are created by theVersioningService
, but this service does nothing for Valkyrie resources. The pieces to implement this for Wings should be present in the storage adapter; it just needs to be put into place.