Bug #693
Reading a datastream from Fedora should also read its control_group
| Status: | Assigned | Start: | 01/06/2010 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | % 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).
History
Updated by Matt Zumwalt 141 days ago
- 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
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
- Assigned to set to Edwin Shin
Steve Bayliss is working on this feature right now in Fedora