I recently updated the gems for my project and the ActiveFedora::Datastream.new() seems to have changed. I now get this content at the top of XML datastreams.
-------------RubyMultipartPost
Content-Disposition: form-data; name="file"; filename="K000913.000.xml"
Content-Length: 20579
Content-Type: application/xml
Content-Transfer-Encoding: binary
Here's my code:
tei_ds = ActiveFedora::Datastream.new(:dsLabel => "TEI XML", :controlGroup => "M", :mime_type => "text/xml", :blob =>File.new(tei_path))
tei_obj.add_datastream(tei_ds)
And here's the result:
view-source:http://ramman.grainger.uiuc.edu:8080/fedora/objects/bamboo%3AK000913.000.tei/datastreams/DS1/content
What am I doing wrong here?
Thanks,
Bill
--
Bill Ingram
Research Programmer
Scholarly Communication and Repository Services
University of Illinois at Urbana-Champaign
--
You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
To post to this group, send email to active...@googlegroups.com.
To unsubscribe from this group, send email to active-fedor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.
Nailed it. I was using 1.1.3; shoulda been 1.1.2. Thanks!