-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on nokogiri datastreams; yaml requirement fix
- Loading branch information
1 parent
f433f03
commit 965b369
Showing
8 changed files
with
58 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
require 'solr' | ||
require "active_fedora/solr_mapper" | ||
require "yaml" | ||
module ActiveFedora | ||
class SolrService | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
class OpinionatedModsDocument | ||
class OpinionatedModsDocument < Nokogiri::XML::Document | ||
|
||
include OM::XML | ||
|
||
self.schema_url = "http://www.loc.gov/standards/mods/v3/mods-3-2.xsd" | ||
|
||
# Could add support for multiple root declarations. | ||
# For now, assume that any modsCollections have already been broken up and fed in as individual mods documents | ||
# root :mods_collection, :path=>"modsCollection", | ||
# :attributes=>[], | ||
# :subelements => :mods | ||
root_property :mods, "mods", "http://www.loc.gov/mods/v3", :attributes=>["id", "version"] | ||
|
||
end |
Oops, something went wrong.