active-fedora 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +5 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/active-fedora.gemspec +9 -7
- data/lib/active_fedora/base.rb +44 -50
- data/lib/active_fedora/metadata_datastream.rb +105 -33
- data/lib/active_fedora/metadata_datastream_helper.rb +3 -1
- data/lib/active_fedora/nokogiri_datastream.rb +51 -2
- data/lib/active_fedora/rels_ext_datastream.rb +0 -1
- data/lib/hydra.rb +1 -1
- data/lib/hydra/sample_mods_datastream.rb +100 -0
- data/spec/hydrangea_fixture_mods_article1.foxml.xml +225 -0
- data/spec/integration/full_featured_model_spec.rb +1 -2
- data/spec/integration/mods_article_integration_spec.rb +45 -0
- data/spec/unit/base_extra_spec.rb +11 -4
- data/spec/unit/base_spec.rb +64 -99
- data/spec/unit/metadata_datastream_spec.rb +109 -1
- data/spec/unit/nokogiri_datastream_spec.rb +154 -5
- data/spec/unit/solr_config_options_spec.rb +4 -2
- metadata +11 -9
- data/lib/hydra/mods_article.rb +0 -49
- data/lib/hydra/opinionated_mods_document.rb +0 -14
@@ -1,14 +0,0 @@
|
|
1
|
-
class OpinionatedModsDocument < Nokogiri::XML::Document
|
2
|
-
|
3
|
-
include OM::XML
|
4
|
-
|
5
|
-
self.schema_url = "http://www.loc.gov/standards/mods/v3/mods-3-2.xsd"
|
6
|
-
|
7
|
-
# Could add support for multiple root declarations.
|
8
|
-
# For now, assume that any modsCollections have already been broken up and fed in as individual mods documents
|
9
|
-
# root :mods_collection, :path=>"modsCollection",
|
10
|
-
# :attributes=>[],
|
11
|
-
# :subelements => :mods
|
12
|
-
root_property :mods, "mods", "http://www.loc.gov/mods/v3", :attributes=>["id", "version"]
|
13
|
-
|
14
|
-
end
|