Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dive Into Hydra - Build a Codex model with XML #112

Open
ericgriffis opened this issue Sep 28, 2016 · 5 comments
Open

Update Dive Into Hydra - Build a Codex model with XML #112

ericgriffis opened this issue Sep 28, 2016 · 5 comments

Comments

@ericgriffis
Copy link

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 to has_subresource and that it simply removed the delegate_to: functionality on property (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?

@jcoyne
Copy link
Contributor

jcoyne commented Sep 28, 2016

@tdonohue
Copy link

tdonohue commented Oct 6, 2016

+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).

@cwant
Copy link

cwant commented Jan 5, 2017

+1 here too.
Should this section of the tutorial be considered obsolete? (And preferably marked as such?)

@nomoregrapes
Copy link

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.

@cjcolvar
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants