Community:OnRamp/documentation/design/versioning/status

From NSDLWiki

Jump to: navigation, search

Versioning - Status

Design | Discussion | Status | Testing



Image:Greenck.jpg Complete: Pushed to Fez Trunk Image:Blueck.jpg Complete: Not Pushed Image:Caution.jpg In Process Image:Stop.jpg Not Begun Image:Nosup.jpg Not Supported / Latered
Status Feature Comments
Basis of Work
Image:Greenck.jpg Matt Painter's work has been added to Fez trunk classes. Rev 1897
Extensions & Modifications
Configuration
Image:Greenck.jpg
  define("APP_VERSION_UPLOADS_AND_LINKS","false");
Rev 1897
Image:Greenck.jpg
    define('APP_VIEW_VERSIONS_ROLES', "");
//  define('APP_REVERT_VERSIONS_ROLES', "");
    define('APP_VIEW_VERSIONS_ROLE_IDS', "");
//  define('APP_REVERT_VERSIONS_ROLE_IDS', "");
Rev 1897
Added. Revert roles and ids commented out awaiting revert implementation.
Image:Greenck.jpg
   canViewVersions() { ... }
// canRevertVersions() { ... } 
Rev 1897
Added in class.record.php. Revert function commented out awaiting revert implementation.
Version Uploads/Links
Image:Greenck.jpg New Method: Misc::processLinkVersioning() Rev 1897
Image:Greenck.jpg Modify Method: Record::insertXML() Rev 1897
  • call Misc::UpdateMetadataDatastreamsVersionable()
  • change purge code
  • pass versionable
Image:Greenck.jpg Modify Method: Fedora_API::callModifyDatastreamByReference() Rev 1897
  • new versionable param (default=false)
  • changes made to fedora_api_2_1_1 and fedora_api_2_2
  • modify callers of this method (multiple files)
Image:Greenck.jpg Modify Method: Fedora_API::callModifyDatastreamByValue() Rev 1897
  • new versionable param (default=false)
  • changes made to fedora_api_2_1_1 and fedora_api_2_2
  • modify callers of this method (multiple files)
Image:Greenck.jpg Modify Method: Fedora_API::getUploadLocationByLocalRef() Rev 1897
  • new versionable param (default=false)
  • change purge code
  • changes made to fedora_api_2_1_1 and fedora_api_2_2
  • modify callers of this method (multiple files)
Image:Greenck.jpg Modify Method: Fedora_API::getUploadLocation() Rev 1897
  • new versionable param (default=false)
  • change purge code
  • changes made to fedora_api_2_1_1 and fedora_api_2_2
  • modify callers of this method (multiple files)
Image:Greenck.jpg Modify Method: Fedora_API::callAddDatastream() Rev 1897
  • new versionable param (default=false)
Image:Greenck.jpg Modify Method: Fedora_API::callCreateDatastream() Rev 1897
  • new versionable param (default=false)
Image:Stop.jpg Modify Method: Record::copyToNewPID()
  • copy VERSIONABLE from source datastreams to new record's datastreams
Reason for Change log message for Publish
Image:Stop.jpg Modify popup.php to prompt for reason for change and send it to addHistory() as $historyDetailExtra.
Image:Stop.jpg Add reason for change to fez_premis_event.pre_detail. Done in class.history.php::addHistory(). Use $historyDetailExtra parameter to append a reason to pre_detail. Reason will be prefixed with "-- Reason: "
Image:Stop.jpg The drop menu will include the Reason for Change log message for each version if available.
Image:Stop.jpg Show reason in info box. Remaining work:
  • Add reason after date on Viewing Versions: info line.
View Record
Image:Greenck.jpg When viewing any version but the current version, change the background color of the info box area. Rev 1897
Added styles viewInfoBox and viewInfoBoxNoEdit to use with div preceding containing the info box. Uses APP_SELECTED_COLOR when viewing older versions.
Image:Caution.jpg Don't allow editing when viewing older versions. Remaining work:
  • (done) Not showing Workflows: line in info box when viewing older versions.
  • Probably should show the Workflows: line in the info box even if there are no workflows.
  • Probably should move "Cannot Modify" from Viewing Version: to Workflows: or maybe top line of info box
  • Need to show a revert workflow in Workflows: if the user can revert to older versions (see Revert to a Version section below).
Image:Caution.jpg Show version date when viewing older versions in info box area. Remaining work:
  • (done) Showing date in last line of info box. Viewing Versions:
  • Probably should move "Cannot Modify" from Viewing Version: to Workflows: or maybe top line of info box
  • Date in drop list displays in BST, but date in info box displays in EDT. Both use same code to format the date, so not sure why this is happening.
  • NOTE: See Reason for Change section for other changes to Viewing Versions: line
List of Versions
Image:Greenck.jpg Base implementation using APP_PHANTOM_VERSION_TIME_INTERVAL. Rev 1897
Image:Greenck.jpg Only show the list of versions if the user has permissions. Rev 1897
Image:Stop.jpg Create list based on Published date Will need to update pub date to include milliseconds because Fedora retrieves datastreams using milliseconds.
Image:Stop.jpg Extend filter list to include Published (make this the default)
Revert to a Version
Image:Stop.jpg Write workflow to perform the revert.
Image:Stop.jpg Show revert workflow in Workflows: if the user has permissions to revert.
Image:Stop.jpg Uncomment configuration properties.
Image:Stop.jpg Uncomment class.record.php::canRevertVersions().
Personal tools