Feature #452
versionable getter/setter methods for Fedora::Datastream
| Status: | New | Start: | 08/11/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Sponsor: |
Description
We're finding that the foxml for active fedora objects can grow really large if datastream versioning is on, which it is by default. This is especially true when updating metadata through the UI with all of the individual field saving.
Maybe we could add versionable methods to the Fedora::Datastream object like so?
class Fedora::Datastream < Fedora::BaseObject
def versionable
@attributes[:versionable]
end
end
def versionable=(new_val)
@attributes[:versionable]=new_val
end
We are overriding the ActiveFedora::MetadataDatastream initializer to turn versioning off. Don't know if that's something the general codebase would want to do.