-
Notifications
You must be signed in to change notification settings - Fork 63
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
Methods
-
#internal_uri
- Use#id
for relative repo URL path as string;#uri
returns aRDF::URI
. -
.connection_for_pid
- NR -
#datastreams
is deprecated, use#attached_files
- If you previously used
#apply_depositor_metadata
, now includeHydra::WithDepositor
DEPRECATED - use ActiveFedora::File
Methods
-
#dsid
- NR, aFile
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).
Now ActiveFedora::FilesHash
Methods
-
#include?
- Use#key?
or#has_key?
(https://github.com/projecthydra/active_fedora/pull/907 proposes#include
alias)
Removed