This feature is unreleased, and only available by downloading and building Fedora 4 from Github.
This feature is unreleased, and only available by downloading and building Fedora 4 from Github.
Overview
By default, whenever a REST call is made that results in one or more modifications to data in the fedora 4 repository, a new version is created. A relationship is made from an object to its version history, it's base version and its predecessors.
Browsing old versions
From the HTML view of the REST interface
- Create a node, then update its properties or content.
- Follow the link to the "predecessors" which will take you to a "version" node
- Follow the link to the first child, which is a "frozenNode" that represents the last version of the node
- Follow the link to that version node's "predecessors" which will take you to the version prior to that one
Configuration
Whether and how versions are made of nodes depends on how the node type is configured. Node types that have the "mix:versionable" mixin are versionable, node types without it are not and won't retain historical versions when updated.
Turn off Node Versioning
To disable versioning, remove mix:versionable from the node type definitions for the fedora:resource node type.
Brute force method: edit fcrepo-kernel/src/main/resources/fedora-node-types.cnd and remove the "mix:versionable" property from "fedora:resource", then run "mvn clean install" in fcrepo-kernel.
Customize Property Versioning
TBD
Related Links:
Reverting to an old version
TBD