Bug #693

avatar

Reading a datastream from Fedora should also read its control_group

Added by Matt Zumwalt 204 days ago. Updated 92 days ago.

Status:Assigned Start:01/06/2010
Priority:Normal Due date:
Assigned to:avatarEdwin Shin % Done:

0%

Category:Consuming Fedora APIs Spent time: 0.25 hours
Target version:2.0 Release: MODS, Nokogiri & better Solr
Sponsor:


Description

This is mainly for when you're copying "M" datastreams.

Currently rubyfedora just loads the datastream but ignores its control group. this is fine if you are only reading the datstream's content, but as soon as you want to change the content and save it back to fedora, it's absolutely necessary (lest fedora smite you with a 500 error).


Related issues

related to Bug #614 Datastream should have mime_type accessors Closed 11/23/2009

History

Updated by Matt Zumwalt 201 days ago

avatar
  • Target version changed from 1.0.7 to 1.0.9

Updated by Matt Zumwalt 141 days ago

avatar
  • Status changed from New to Assigned
  • Target version changed from 1.0.9 to 2.0 Release: MODS, Nokogiri & better Solr

This can't be fixed without replacing the way ActiveFedora loads datastreams from fedora. Currently it relies on the /datastreams rest method (API-A), which does not provide the content model value. Will have to parse the object xml instead...

Updated by Matt Zumwalt 141 days ago

avatar

Tests commented out in spec/integration/datastream_spec.rb

line 25: # dc.control_group.should "X"
line 55: # to.datastreams[dsid].control_group.should "M"

Updated by Matt Zumwalt 92 days ago

avatar
  • Assigned to set to Edwin Shin

Steve Bayliss is working on this feature right now in Fedora

Also available in: Atom PDF