Skip to content

Migrating from ActiveFedora 8 to ActiveFedora 9

Mike Korcynski edited this page Nov 3, 2015 · 23 revisions

See also: ActiveFedora 9.0.0 Release Notes

NR = No Replacement; F3 = Fedora 3; F4 = Fedora 4; AF8/9 = ActiveFedora 8/9

ActiveFedora::Base

Methods

  • #internal_uri - Use #id for relative repo URL path as string; #uri returns a RDF::URI.
  • .connection_for_pid - NR
  • #datastreams is deprecated, use #attached_files
  • If you previously used #apply_depositor_metadata, now include Hydra::WithDepositor

ActiveFedora::Datastream

DEPRECATED - use ActiveFedora::File

Methods

  • #dsid - NR, a File has an #id, but it's not the functional equivalent of an F3 datastream id
  • #dsSize - Use #size
  • #external? - NR
  • #mimeType - Use #mime_type
  • #pid - Exists as a deprecated version of #id, but return value is not the id of the "parent" resource as it is for an F3 datastream (#pid returns the PID of the digital object of which the F3 datastream is a part).

ActiveFedora::Datastreams

Now ActiveFedora::FilesHash

Methods

ActiveFedora::SemanticNode

Removed

Clone this wiki locally