Open ericgriffis opened 8 years ago
It's referring to an object that include HydraEditor::Form
(https://github.com/projecthydra/hydra-editor/blob/master/app/forms/hydra_editor/form.rb) Here's a sample Form object: https://github.com/projecthydra/hydra-editor/blob/master/spec/support/audio_form.rb
+1 to what @ericgriffis noted. As a Hydra newbie, it's unclear how to correct the "Lesson Build a Codex model with XML" instructions (especially step 4) to work with ActiveFedora 10.0.0 / Hydra 10.0.0
As-is, I had to skip over this lesson, as I couldn't get them working as the lesson explains (and I couldn't figure out how to correct them for ActiveFedora 10.0.0).
+1 here too. Should this section of the tutorial be considered obsolete? (And preferably marked as such?)
I missed the notice that has been added. I don't know if there should be a notice at the "steps" stage, or if links to the page just need to be removed.
If the tutorial is obsolete, what is the alternative for building objects from XML? I.e. I have lots of documents as XML files that I want to ingest.
@nomoregrapes
Probably not the best approach to XML, but here is how we did it and we’re using Active-Fedora 11.4.0 right now.
https://github.com/avalonmediasystem/avalon/blob/master/app/models/concerns/media_object_mods.rb
This is migrated from a much older version of ActiveFedora so you can see part of the old (has_attributes
) approach commented out.
The accompanying files to make it all work are here:
https://github.com/avalonmediasystem/avalon/blob/master/app/models/mods_document.rb
https://github.com/avalonmediasystem/avalon/blob/master/app/models/mods_templates.rb
https://github.com/avalonmediasystem/avalon/blob/master/app/models/mods_behaviors.rb
Hopefully some of this should still match the Lesson in the wiki or the advanced lesson and give you enough to work with. Let me know if you want any more explanation.
The lesson Build a Codex model with XML includes out-of-date syntax for associating a model with a datastream. It seems ActiveFedora 10.0.0 renamed
contains
tohas_subresource
and that it simply removed thedelegate_to:
functionality onproperty
(commit here).I'm new to Hydra but I'd be happy to update the tutorial if I knew what new functionality was intended to replace this. The deprecation message referenced "Forms" – is this still used in Hydra 11? Where can I find documentation on this?