hydra-pbcore 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/README.md +2 -0
- data/Rakefile +6 -1
- data/hydra-pbcore.gemspec +1 -4
- data/lib/hydra_pbcore/conversions.rb +7 -11
- data/lib/hydra_pbcore/datastream/deprecated/document.rb +0 -3
- data/lib/hydra_pbcore/datastream/document.rb +10 -7
- data/lib/hydra_pbcore/datastream/instantiation.rb +1 -0
- data/lib/hydra_pbcore/version.rb +1 -1
- data/spec/document_spec.rb +11 -9
- data/spec/fixtures/document.xml +22 -21
- data/spec/fixtures/document_solr.xml +96 -108
- data/spec/spec_helper.rb +0 -1
- metadata +12 -52
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# HydraPbcore
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/curationexperts/hydra-pbcore.png)](https://travis-ci.org/curationexperts/hydra-pbcore)
|
4
|
+
|
3
5
|
A Hydra gem that offers PBCore datastream definitions using OM, as well as some other convenience
|
4
6
|
methods such as inserting xml templates into existing documents and reordering your PBCore xml
|
5
7
|
elements so that you can export complete, valid PBCore documents.
|
data/Rakefile
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
2
|
require "bundler/gem_tasks"
|
3
|
+
require 'rspec/core/rake_task'
|
3
4
|
|
4
5
|
# Rake task for getting an irb session
|
5
6
|
desc "Open an irb session preloaded with this library"
|
6
7
|
task :console do
|
7
8
|
sh "irb -rubygems -I lib -r hydra-pbcore.rb"
|
8
|
-
end
|
9
|
+
end
|
10
|
+
|
11
|
+
RSpec::Core::RakeTask.new(:spec)
|
12
|
+
|
13
|
+
task :default => :spec
|
data/hydra-pbcore.gemspec
CHANGED
@@ -17,15 +17,12 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.version = HydraPbcore::VERSION
|
18
18
|
|
19
19
|
# Dependencies
|
20
|
-
gem.add_dependency('nokogiri')
|
21
|
-
gem.add_dependency('om')
|
22
20
|
gem.add_dependency('active-fedora')
|
23
|
-
gem.add_dependency('solrizer')
|
24
21
|
gem.add_development_dependency('yard')
|
25
22
|
gem.add_development_dependency('redcarpet')
|
26
23
|
# For Development
|
24
|
+
gem.add_development_dependency 'rake'
|
27
25
|
gem.add_development_dependency 'rspec'
|
28
|
-
gem.add_development_dependency 'debugger'
|
29
26
|
gem.add_development_dependency 'rdoc'
|
30
27
|
gem.add_development_dependency 'equivalent-xml'
|
31
28
|
end
|
@@ -14,11 +14,9 @@
|
|
14
14
|
module HydraPbcore::Conversions
|
15
15
|
|
16
16
|
# Converts a HydraPbcore::Datastream::Deprecated::Document to a HydraPbcore::Datastream::Document
|
17
|
-
# - the existing pbcoreInstantiation node is removed
|
18
|
-
|
19
|
-
|
20
|
-
raise "only works with HydraPbcore::Datastream::Deprecated::Document" unless self.kind_of?(HydraPbcore::Datastream::Deprecated::Document)
|
21
|
-
self.remove_node(:pbcoreInstantiation)
|
17
|
+
# - the existing pbcoreInstantiation node is removed and returned
|
18
|
+
def to_document xml = self.ng_xml
|
19
|
+
xml.search("//pbcoreInstantiation").remove
|
22
20
|
end
|
23
21
|
|
24
22
|
# Extracts the instantation from a HydraPbcore::Datastream::Deprecated::Document and returns
|
@@ -26,8 +24,7 @@ module HydraPbcore::Conversions
|
|
26
24
|
# - removes all instantiationRelation nodes
|
27
25
|
# - adds source="PBCore instantiationColors" to instantiationColors node
|
28
26
|
# - extracts the pbcoreInstantiation node and returns new Instantiation object
|
29
|
-
def to_physical_instantiation
|
30
|
-
raise "only works with HydraPbcore::Datastream::Deprecated::Document" unless self.kind_of?(HydraPbcore::Datastream::Deprecated::Document)
|
27
|
+
def to_physical_instantiation xml = self.ng_xml
|
31
28
|
xml.search("//instantiationRelation").each do |node|
|
32
29
|
node.remove
|
33
30
|
end
|
@@ -39,7 +36,6 @@ module HydraPbcore::Conversions
|
|
39
36
|
# Converts a HydraPbcore::Datastream::Deprecated::Instantiation to a HydraPbcore::Datastream::Instantiation
|
40
37
|
# Modifies the exiting xml to exclude any parent nodes of the pbcoreInstantiation node
|
41
38
|
def to_instantiation
|
42
|
-
raise "only works with HydraPbcore::Datastream::Deprecated::Instantiation" unless self.kind_of?(HydraPbcore::Datastream::Deprecated::Instantiation)
|
43
39
|
self.ng_xml = self.ng_xml.xpath("//pbcoreInstantiation").to_xml
|
44
40
|
end
|
45
41
|
|
@@ -50,7 +46,7 @@ module HydraPbcore::Conversions
|
|
50
46
|
#
|
51
47
|
# Note: Since pbcoreRelation is used to indicated archival collection and series, this information should be copied to another kind
|
52
48
|
# of datastream using an RDF relationship in Hydra.
|
53
|
-
def clean_document
|
49
|
+
def clean_document xml = self.ng_xml
|
54
50
|
xml.search("//pbcoreRelation").each do |node|
|
55
51
|
node.remove unless is_event_series?(node)
|
56
52
|
end
|
@@ -66,7 +62,7 @@ module HydraPbcore::Conversions
|
|
66
62
|
end
|
67
63
|
|
68
64
|
# Determines if the given node defines an event_series term
|
69
|
-
def is_event_series?
|
65
|
+
def is_event_series? node
|
70
66
|
unless node.at_xpath("pbcoreRelationIdentifier").nil?
|
71
67
|
if node.at_xpath("pbcoreRelationIdentifier").attribute("annotation").to_s == "Event Series"
|
72
68
|
return true
|
@@ -77,7 +73,7 @@ module HydraPbcore::Conversions
|
|
77
73
|
# Determines if a coverage node that has no annotation attribute should be either an event_date term or an event_date term.
|
78
74
|
# Returns the first instance of an annotation attribute, processing it so that may be sent directly to
|
79
75
|
# the datastream as a method.
|
80
|
-
def coverage_type
|
76
|
+
def coverage_type node
|
81
77
|
node.children.each do |c|
|
82
78
|
return c.attribute("annotation").to_s.split.last.downcase unless c.attribute("annotation").nil?
|
83
79
|
end
|
@@ -8,9 +8,6 @@ class Document < ActiveFedora::NokogiriDatastream
|
|
8
8
|
set_terminology do |t|
|
9
9
|
t.root(:path=>"pbcoreDescriptionDocument")
|
10
10
|
|
11
|
-
#
|
12
|
-
# pbcoreDescription fields
|
13
|
-
#
|
14
11
|
t.pbc_id(:path=>"pbcoreIdentifier",
|
15
12
|
:attributes=>{ :source=>"Rock and Roll Hall of Fame and Museum", :annotation=>"PID" }
|
16
13
|
)
|
@@ -3,6 +3,7 @@ class Document < ActiveFedora::OmDatastream
|
|
3
3
|
|
4
4
|
include HydraPbcore::Methods
|
5
5
|
include HydraPbcore::Templates
|
6
|
+
include HydraPbcore::Conversions
|
6
7
|
|
7
8
|
set_terminology do |t|
|
8
9
|
t.root(:path=>"pbcoreDescriptionDocument")
|
@@ -11,7 +12,7 @@ class Document < ActiveFedora::OmDatastream
|
|
11
12
|
:attributes=>{ :source=>"Rock and Roll Hall of Fame and Museum", :annotation=>"PID" }
|
12
13
|
)
|
13
14
|
|
14
|
-
t.
|
15
|
+
t.title(:path=>"pbcoreTitle", :attributes=>{ :titleType=>"Main" }, :index_as => [:searchable, :displayable])
|
15
16
|
t.alternative_title(:path=>"pbcoreTitle", :attributes=>{ :titleType=>"Alternative" },
|
16
17
|
:index_as => [:searchable, :displayable]
|
17
18
|
)
|
@@ -26,7 +27,7 @@ class Document < ActiveFedora::OmDatastream
|
|
26
27
|
)
|
27
28
|
|
28
29
|
# This is only to display all subjects
|
29
|
-
t.
|
30
|
+
t.subject(:path=>"pbcoreSubject", :index_as => [:facetable])
|
30
31
|
|
31
32
|
# Individual subject types defined for entry
|
32
33
|
t.lc_subject(:path=>"pbcoreSubject",
|
@@ -55,7 +56,7 @@ class Document < ActiveFedora::OmDatastream
|
|
55
56
|
:index_as => [:searchable, :displayable]
|
56
57
|
)
|
57
58
|
|
58
|
-
t.
|
59
|
+
t.contents(:path=>"pbcoreDescription",
|
59
60
|
:attributes=>{
|
60
61
|
:descriptionType=>"Table of Contents",
|
61
62
|
:descriptionTypeSource=>"pbcoreDescription/descriptionType",
|
@@ -66,7 +67,9 @@ class Document < ActiveFedora::OmDatastream
|
|
66
67
|
)
|
67
68
|
|
68
69
|
# This is only to display all genres
|
69
|
-
t.
|
70
|
+
t.genre(:path=>"pbcoreGenre", :index_as => [:facetable])
|
71
|
+
|
72
|
+
t.asset_type(:path=>"pbcoreAssetType", :index_as => [:searchable, :facetable])
|
70
73
|
|
71
74
|
# Individual genre types defined for entry
|
72
75
|
t.getty_genre(:path=>"pbcoreGenre",
|
@@ -93,14 +96,14 @@ class Document < ActiveFedora::OmDatastream
|
|
93
96
|
|
94
97
|
# PBCore relation fields
|
95
98
|
t.pbcoreRelation do
|
96
|
-
t.
|
99
|
+
t.event_series(:path=>"pbcoreRelationIdentifier", :attributes=>{ :annotation=>"Event Series" })
|
97
100
|
t.arch_coll(:path=>"pbcoreRelationIdentifier", :attributes=>{ :annotation=>"Archival Collection" })
|
98
101
|
t.arch_ser(:path=>"pbcoreRelationIdentifier", :attributes=>{ :annotation=>"Archival Series" })
|
99
102
|
t.coll_num(:path=>"pbcoreRelationIdentifier", :attributes=>{ :annotation=>"Collection Number" })
|
100
103
|
t.acc_num(:path=>"pbcoreRelationIdentifier", :attributes=>{ :annotation=>"Accession Number" })
|
101
104
|
end
|
102
|
-
t.
|
103
|
-
t.
|
105
|
+
t.series(:ref=>[:pbcoreRelation, :event_series], :index_as => [:searchable, :displayable])
|
106
|
+
t.collection(:ref=>[:pbcoreRelation, :arch_coll], :index_as => [:searchable, :displayable])
|
104
107
|
t.archival_series(:ref=>[:pbcoreRelation, :arch_ser], :index_as => [:searchable, :displayable])
|
105
108
|
t.collection_number(:ref=>[:pbcoreRelation, :coll_num], :index_as => [:searchable, :displayable])
|
106
109
|
t.accession_number(:ref=>[:pbcoreRelation, :acc_num], :index_as => [:searchable, :displayable])
|
data/lib/hydra_pbcore/version.rb
CHANGED
data/spec/document_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe HydraPbcore::Datastream::Document do
|
|
17
17
|
it "should update the intitial fields" do
|
18
18
|
[
|
19
19
|
[:pbc_id],
|
20
|
-
[:
|
20
|
+
[:title],
|
21
21
|
[:alternative_title],
|
22
22
|
[:chapter],
|
23
23
|
[:episode],
|
@@ -27,14 +27,14 @@ describe HydraPbcore::Datastream::Document do
|
|
27
27
|
[:track],
|
28
28
|
[:translation],
|
29
29
|
[:summary],
|
30
|
-
[:
|
30
|
+
[:contents],
|
31
31
|
[:lc_subject],
|
32
32
|
[:lc_name],
|
33
33
|
[:rh_subject],
|
34
34
|
[:getty_genre],
|
35
35
|
[:lc_genre],
|
36
36
|
[:lc_subject_genre],
|
37
|
-
[:
|
37
|
+
[:series],
|
38
38
|
[:creator_name],
|
39
39
|
[:creator_role],
|
40
40
|
[:contributor_name],
|
@@ -42,8 +42,9 @@ describe HydraPbcore::Datastream::Document do
|
|
42
42
|
[:publisher_name],
|
43
43
|
[:publisher_role],
|
44
44
|
[:note],
|
45
|
+
[:asset_type],
|
45
46
|
[:rights_summary],
|
46
|
-
[:
|
47
|
+
[:collection],
|
47
48
|
[:archival_series],
|
48
49
|
[:collection_number],
|
49
50
|
[:accession_number],
|
@@ -77,10 +78,10 @@ describe HydraPbcore::Datastream::Document do
|
|
77
78
|
it "should have insert_relation" do
|
78
79
|
@object_ds = HydraPbcore::Datastream::Document.new(nil, nil)
|
79
80
|
@object_ds.insert_relation("My Collection", 'Archival Collection')
|
80
|
-
@object_ds.
|
81
|
+
@object_ds.collection.should == ['My Collection']
|
81
82
|
|
82
83
|
@object_ds.insert_relation("My event", 'Event Series')
|
83
|
-
@object_ds.
|
84
|
+
@object_ds.series.should == ['My event']
|
84
85
|
|
85
86
|
@object_ds.insert_relation("My series", 'Archival Series')
|
86
87
|
@object_ds.archival_series.should == ['My series']
|
@@ -138,7 +139,7 @@ describe HydraPbcore::Datastream::Document do
|
|
138
139
|
@object_ds.insert_relation("inserted", 'Collection Number')
|
139
140
|
|
140
141
|
@object_ds.pbc_id = "inserted"
|
141
|
-
@object_ds.
|
142
|
+
@object_ds.title = "inserted"
|
142
143
|
@object_ds.alternative_title = "inserted"
|
143
144
|
@object_ds.chapter = "inserted"
|
144
145
|
@object_ds.episode = "inserted"
|
@@ -148,20 +149,21 @@ describe HydraPbcore::Datastream::Document do
|
|
148
149
|
@object_ds.track = "inserted"
|
149
150
|
@object_ds.translation = "inserted"
|
150
151
|
@object_ds.summary = "inserted"
|
151
|
-
@object_ds.
|
152
|
+
@object_ds.contents = "inserted"
|
152
153
|
@object_ds.lc_subject = "inserted"
|
153
154
|
@object_ds.lc_name = "inserted"
|
154
155
|
@object_ds.rh_subject = "inserted"
|
155
156
|
@object_ds.getty_genre = "inserted"
|
156
157
|
@object_ds.lc_genre = "inserted"
|
157
158
|
@object_ds.lc_subject_genre = "inserted"
|
158
|
-
@object_ds.
|
159
|
+
@object_ds.series = "inserted"
|
159
160
|
@object_ds.contributor_name = "inserted"
|
160
161
|
@object_ds.contributor_role = "inserted"
|
161
162
|
@object_ds.publisher_name = "inserted"
|
162
163
|
@object_ds.publisher_role = "inserted"
|
163
164
|
@object_ds.note = "inserted"
|
164
165
|
@object_ds.rights_summary = "inserted"
|
166
|
+
@object_ds.asset_type = "Scene"
|
165
167
|
end
|
166
168
|
|
167
169
|
it "solr document should match an exemplar" do
|
data/spec/fixtures/document.xml
CHANGED
@@ -3,26 +3,6 @@
|
|
3
3
|
<pbcoreTitle titleType="Main">inserted</pbcoreTitle>
|
4
4
|
<pbcoreDescription descriptionType="Description" descriptionTypeSource="pbcoreDescription/descriptionType" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description" annotation="Summary">inserted</pbcoreDescription>
|
5
5
|
<pbcoreDescription descriptionType="Table of Contents" descriptionTypeSource="pbcoreDescription/descriptionType" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents" annotation="Parts List">inserted</pbcoreDescription>
|
6
|
-
<pbcoreRelation>
|
7
|
-
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
8
|
-
<pbcoreRelationIdentifier annotation="Event Series">inserted</pbcoreRelationIdentifier>
|
9
|
-
</pbcoreRelation>
|
10
|
-
<pbcoreRelation>
|
11
|
-
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
12
|
-
<pbcoreRelationIdentifier annotation="Archival Collection">inserted</pbcoreRelationIdentifier>
|
13
|
-
</pbcoreRelation>
|
14
|
-
<pbcoreRelation>
|
15
|
-
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
16
|
-
<pbcoreRelationIdentifier annotation="Archival Series">inserted</pbcoreRelationIdentifier>
|
17
|
-
</pbcoreRelation>
|
18
|
-
<pbcoreRelation>
|
19
|
-
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
20
|
-
<pbcoreRelationIdentifier annotation="Collection Number">inserted</pbcoreRelationIdentifier>
|
21
|
-
</pbcoreRelation>
|
22
|
-
<pbcoreRelation>
|
23
|
-
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
24
|
-
<pbcoreRelationIdentifier annotation="Accession Number">inserted</pbcoreRelationIdentifier>
|
25
|
-
</pbcoreRelation>
|
26
6
|
<pbcoreRightsSummary>
|
27
7
|
<rightsSummary>inserted</rightsSummary>
|
28
8
|
</pbcoreRightsSummary>
|
@@ -55,6 +35,26 @@
|
|
55
35
|
<coverage annotation="Event Date">2012-11-11</coverage>
|
56
36
|
<coverageType>Temporal</coverageType>
|
57
37
|
</pbcoreCoverage>
|
38
|
+
<pbcoreRelation>
|
39
|
+
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
40
|
+
<pbcoreRelationIdentifier annotation="Archival Collection">inserted</pbcoreRelationIdentifier>
|
41
|
+
</pbcoreRelation>
|
42
|
+
<pbcoreRelation>
|
43
|
+
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
44
|
+
<pbcoreRelationIdentifier annotation="Event Series">inserted</pbcoreRelationIdentifier>
|
45
|
+
</pbcoreRelation>
|
46
|
+
<pbcoreRelation>
|
47
|
+
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
48
|
+
<pbcoreRelationIdentifier annotation="Archival Series">inserted</pbcoreRelationIdentifier>
|
49
|
+
</pbcoreRelation>
|
50
|
+
<pbcoreRelation>
|
51
|
+
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
52
|
+
<pbcoreRelationIdentifier annotation="Accession Number">inserted</pbcoreRelationIdentifier>
|
53
|
+
</pbcoreRelation>
|
54
|
+
<pbcoreRelation>
|
55
|
+
<pbcoreRelationType source="PBCore relationType" ref="http://pbcore.org/vocabularies/relationType#is-part-of">Is Part Of</pbcoreRelationType>
|
56
|
+
<pbcoreRelationIdentifier annotation="Collection Number">inserted</pbcoreRelationIdentifier>
|
57
|
+
</pbcoreRelation>
|
58
58
|
<pbcoreTitle titleType="Alternative">inserted</pbcoreTitle>
|
59
59
|
<pbcoreTitle titleType="Chapter">inserted</pbcoreTitle>
|
60
60
|
<pbcoreTitle titleType="Episode">inserted</pbcoreTitle>
|
@@ -69,4 +69,5 @@
|
|
69
69
|
<pbcoreGenre source="The Getty Research Institute Art and Architecture Thesaurus" ref="http://www.getty.edu/research/tools/vocabularies/aat/index.html">inserted</pbcoreGenre>
|
70
70
|
<pbcoreGenre source="Library of Congress Genre/Form Terms" ref="http://id.loc.gov/authorities/genreForms.html">inserted</pbcoreGenre>
|
71
71
|
<pbcoreGenre source="Library of Congress Subject Headings" ref="http://id.loc.gov/authorities/subjects.html">inserted</pbcoreGenre>
|
72
|
-
</
|
72
|
+
<pbcoreAssetType>Scene</pbcoreAssetType>
|
73
|
+
</pbcoreDescriptionDocument>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<hash>
|
3
|
-
<pbcoreDescriptionDocument-
|
4
|
-
<pbcoreDescriptionDocument-
|
5
|
-
</pbcoreDescriptionDocument-
|
6
|
-
<pbcoreDescriptionDocument-
|
7
|
-
<pbcoreDescriptionDocument-
|
8
|
-
</pbcoreDescriptionDocument-
|
9
|
-
<pbcoreDescriptionDocument-0-
|
10
|
-
<pbcoreDescriptionDocument-0-
|
11
|
-
</pbcoreDescriptionDocument-0-
|
12
|
-
<pbcoreDescriptionDocument-0-
|
13
|
-
<pbcoreDescriptionDocument-0-
|
14
|
-
</pbcoreDescriptionDocument-0-
|
3
|
+
<pbcoreDescriptionDocument-title-t type="array">
|
4
|
+
<pbcoreDescriptionDocument-title-t>inserted</pbcoreDescriptionDocument-title-t>
|
5
|
+
</pbcoreDescriptionDocument-title-t>
|
6
|
+
<pbcoreDescriptionDocument-title-display type="array">
|
7
|
+
<pbcoreDescriptionDocument-title-display>inserted</pbcoreDescriptionDocument-title-display>
|
8
|
+
</pbcoreDescriptionDocument-title-display>
|
9
|
+
<pbcoreDescriptionDocument-0-title-t type="array">
|
10
|
+
<pbcoreDescriptionDocument-0-title-t>inserted</pbcoreDescriptionDocument-0-title-t>
|
11
|
+
</pbcoreDescriptionDocument-0-title-t>
|
12
|
+
<pbcoreDescriptionDocument-0-title-display type="array">
|
13
|
+
<pbcoreDescriptionDocument-0-title-display>inserted</pbcoreDescriptionDocument-0-title-display>
|
14
|
+
</pbcoreDescriptionDocument-0-title-display>
|
15
15
|
<pbcoreDescriptionDocument-alternative-title-t type="array">
|
16
16
|
<pbcoreDescriptionDocument-alternative-title-t>inserted</pbcoreDescriptionDocument-alternative-title-t>
|
17
17
|
</pbcoreDescriptionDocument-alternative-title-t>
|
@@ -108,26 +108,16 @@
|
|
108
108
|
<pbcoreDescriptionDocument-0-translation-display type="array">
|
109
109
|
<pbcoreDescriptionDocument-0-translation-display>inserted</pbcoreDescriptionDocument-0-translation-display>
|
110
110
|
</pbcoreDescriptionDocument-0-translation-display>
|
111
|
-
<pbcoreDescriptionDocument-subject-
|
112
|
-
<pbcoreDescriptionDocument-subject-
|
113
|
-
<pbcoreDescriptionDocument-subject-
|
114
|
-
<pbcoreDescriptionDocument-subject-
|
115
|
-
</pbcoreDescriptionDocument-subject-
|
116
|
-
<pbcoreDescriptionDocument-subject-
|
117
|
-
<pbcoreDescriptionDocument-subject-
|
118
|
-
<pbcoreDescriptionDocument-subject-
|
119
|
-
<pbcoreDescriptionDocument-subject-
|
120
|
-
</pbcoreDescriptionDocument-subject-
|
121
|
-
<pbcoreDescriptionDocument-0-subject-topic-t type="array">
|
122
|
-
<pbcoreDescriptionDocument-0-subject-topic-t>inserted</pbcoreDescriptionDocument-0-subject-topic-t>
|
123
|
-
<pbcoreDescriptionDocument-0-subject-topic-t>inserted</pbcoreDescriptionDocument-0-subject-topic-t>
|
124
|
-
<pbcoreDescriptionDocument-0-subject-topic-t>inserted</pbcoreDescriptionDocument-0-subject-topic-t>
|
125
|
-
</pbcoreDescriptionDocument-0-subject-topic-t>
|
126
|
-
<pbcoreDescriptionDocument-0-subject-topic-facet type="array">
|
127
|
-
<pbcoreDescriptionDocument-0-subject-topic-facet>inserted</pbcoreDescriptionDocument-0-subject-topic-facet>
|
128
|
-
<pbcoreDescriptionDocument-0-subject-topic-facet>inserted</pbcoreDescriptionDocument-0-subject-topic-facet>
|
129
|
-
<pbcoreDescriptionDocument-0-subject-topic-facet>inserted</pbcoreDescriptionDocument-0-subject-topic-facet>
|
130
|
-
</pbcoreDescriptionDocument-0-subject-topic-facet>
|
111
|
+
<pbcoreDescriptionDocument-subject-facet type="array">
|
112
|
+
<pbcoreDescriptionDocument-subject-facet>inserted</pbcoreDescriptionDocument-subject-facet>
|
113
|
+
<pbcoreDescriptionDocument-subject-facet>inserted</pbcoreDescriptionDocument-subject-facet>
|
114
|
+
<pbcoreDescriptionDocument-subject-facet>inserted</pbcoreDescriptionDocument-subject-facet>
|
115
|
+
</pbcoreDescriptionDocument-subject-facet>
|
116
|
+
<pbcoreDescriptionDocument-0-subject-facet type="array">
|
117
|
+
<pbcoreDescriptionDocument-0-subject-facet>inserted</pbcoreDescriptionDocument-0-subject-facet>
|
118
|
+
<pbcoreDescriptionDocument-0-subject-facet>inserted</pbcoreDescriptionDocument-0-subject-facet>
|
119
|
+
<pbcoreDescriptionDocument-0-subject-facet>inserted</pbcoreDescriptionDocument-0-subject-facet>
|
120
|
+
</pbcoreDescriptionDocument-0-subject-facet>
|
131
121
|
<pbcoreDescriptionDocument-lc-subject-display type="array">
|
132
122
|
<pbcoreDescriptionDocument-lc-subject-display>inserted</pbcoreDescriptionDocument-lc-subject-display>
|
133
123
|
</pbcoreDescriptionDocument-lc-subject-display>
|
@@ -158,38 +148,40 @@
|
|
158
148
|
<pbcoreDescriptionDocument-0-summary-display type="array">
|
159
149
|
<pbcoreDescriptionDocument-0-summary-display>inserted</pbcoreDescriptionDocument-0-summary-display>
|
160
150
|
</pbcoreDescriptionDocument-0-summary-display>
|
161
|
-
<pbcoreDescriptionDocument-
|
162
|
-
<pbcoreDescriptionDocument-
|
163
|
-
</pbcoreDescriptionDocument-
|
164
|
-
<pbcoreDescriptionDocument-
|
165
|
-
<pbcoreDescriptionDocument-
|
166
|
-
</pbcoreDescriptionDocument-
|
167
|
-
<pbcoreDescriptionDocument-0-
|
168
|
-
<pbcoreDescriptionDocument-0-
|
169
|
-
</pbcoreDescriptionDocument-0-
|
170
|
-
<pbcoreDescriptionDocument-0-
|
171
|
-
<pbcoreDescriptionDocument-0-
|
172
|
-
</pbcoreDescriptionDocument-0-
|
173
|
-
<pbcoreDescriptionDocument-
|
174
|
-
<pbcoreDescriptionDocument-
|
175
|
-
<pbcoreDescriptionDocument-
|
176
|
-
<pbcoreDescriptionDocument-
|
177
|
-
</pbcoreDescriptionDocument-
|
178
|
-
<pbcoreDescriptionDocument-
|
179
|
-
<pbcoreDescriptionDocument-
|
180
|
-
<pbcoreDescriptionDocument-
|
181
|
-
<pbcoreDescriptionDocument-
|
182
|
-
</pbcoreDescriptionDocument-
|
183
|
-
<pbcoreDescriptionDocument-
|
184
|
-
<pbcoreDescriptionDocument-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<pbcoreDescriptionDocument-0-
|
191
|
-
|
192
|
-
|
151
|
+
<pbcoreDescriptionDocument-contents-t type="array">
|
152
|
+
<pbcoreDescriptionDocument-contents-t>inserted</pbcoreDescriptionDocument-contents-t>
|
153
|
+
</pbcoreDescriptionDocument-contents-t>
|
154
|
+
<pbcoreDescriptionDocument-contents-display type="array">
|
155
|
+
<pbcoreDescriptionDocument-contents-display>inserted</pbcoreDescriptionDocument-contents-display>
|
156
|
+
</pbcoreDescriptionDocument-contents-display>
|
157
|
+
<pbcoreDescriptionDocument-0-contents-t type="array">
|
158
|
+
<pbcoreDescriptionDocument-0-contents-t>inserted</pbcoreDescriptionDocument-0-contents-t>
|
159
|
+
</pbcoreDescriptionDocument-0-contents-t>
|
160
|
+
<pbcoreDescriptionDocument-0-contents-display type="array">
|
161
|
+
<pbcoreDescriptionDocument-0-contents-display>inserted</pbcoreDescriptionDocument-0-contents-display>
|
162
|
+
</pbcoreDescriptionDocument-0-contents-display>
|
163
|
+
<pbcoreDescriptionDocument-genre-facet type="array">
|
164
|
+
<pbcoreDescriptionDocument-genre-facet>inserted</pbcoreDescriptionDocument-genre-facet>
|
165
|
+
<pbcoreDescriptionDocument-genre-facet>inserted</pbcoreDescriptionDocument-genre-facet>
|
166
|
+
<pbcoreDescriptionDocument-genre-facet>inserted</pbcoreDescriptionDocument-genre-facet>
|
167
|
+
</pbcoreDescriptionDocument-genre-facet>
|
168
|
+
<pbcoreDescriptionDocument-0-genre-facet type="array">
|
169
|
+
<pbcoreDescriptionDocument-0-genre-facet>inserted</pbcoreDescriptionDocument-0-genre-facet>
|
170
|
+
<pbcoreDescriptionDocument-0-genre-facet>inserted</pbcoreDescriptionDocument-0-genre-facet>
|
171
|
+
<pbcoreDescriptionDocument-0-genre-facet>inserted</pbcoreDescriptionDocument-0-genre-facet>
|
172
|
+
</pbcoreDescriptionDocument-0-genre-facet>
|
173
|
+
<pbcoreDescriptionDocument-asset-type-t type="array">
|
174
|
+
<pbcoreDescriptionDocument-asset-type-t>Scene</pbcoreDescriptionDocument-asset-type-t>
|
175
|
+
</pbcoreDescriptionDocument-asset-type-t>
|
176
|
+
<pbcoreDescriptionDocument-asset-type-facet type="array">
|
177
|
+
<pbcoreDescriptionDocument-asset-type-facet>Scene</pbcoreDescriptionDocument-asset-type-facet>
|
178
|
+
</pbcoreDescriptionDocument-asset-type-facet>
|
179
|
+
<pbcoreDescriptionDocument-0-asset-type-t type="array">
|
180
|
+
<pbcoreDescriptionDocument-0-asset-type-t>Scene</pbcoreDescriptionDocument-0-asset-type-t>
|
181
|
+
</pbcoreDescriptionDocument-0-asset-type-t>
|
182
|
+
<pbcoreDescriptionDocument-0-asset-type-facet type="array">
|
183
|
+
<pbcoreDescriptionDocument-0-asset-type-facet>Scene</pbcoreDescriptionDocument-0-asset-type-facet>
|
184
|
+
</pbcoreDescriptionDocument-0-asset-type-facet>
|
193
185
|
<pbcoreDescriptionDocument-getty-genre-display type="array">
|
194
186
|
<pbcoreDescriptionDocument-getty-genre-display>inserted</pbcoreDescriptionDocument-getty-genre-display>
|
195
187
|
</pbcoreDescriptionDocument-getty-genre-display>
|
@@ -318,12 +310,12 @@
|
|
318
310
|
<pbcoreDescriptionDocument-0-note-t type="array">
|
319
311
|
<pbcoreDescriptionDocument-0-note-t>inserted</pbcoreDescriptionDocument-0-note-t>
|
320
312
|
</pbcoreDescriptionDocument-0-note-t>
|
321
|
-
<
|
322
|
-
<
|
323
|
-
</
|
324
|
-
<
|
325
|
-
<
|
326
|
-
</
|
313
|
+
<title-t type="array">
|
314
|
+
<title-t>inserted</title-t>
|
315
|
+
</title-t>
|
316
|
+
<title-display type="array">
|
317
|
+
<title-display>inserted</title-display>
|
318
|
+
</title-display>
|
327
319
|
<alternative-title-t type="array">
|
328
320
|
<alternative-title-t>inserted</alternative-title-t>
|
329
321
|
</alternative-title-t>
|
@@ -372,16 +364,11 @@
|
|
372
364
|
<translation-display type="array">
|
373
365
|
<translation-display>inserted</translation-display>
|
374
366
|
</translation-display>
|
375
|
-
<subject-
|
376
|
-
<subject-
|
377
|
-
<subject-
|
378
|
-
<subject-
|
379
|
-
</subject-
|
380
|
-
<subject-topic-facet type="array">
|
381
|
-
<subject-topic-facet>inserted</subject-topic-facet>
|
382
|
-
<subject-topic-facet>inserted</subject-topic-facet>
|
383
|
-
<subject-topic-facet>inserted</subject-topic-facet>
|
384
|
-
</subject-topic-facet>
|
367
|
+
<subject-facet type="array">
|
368
|
+
<subject-facet>inserted</subject-facet>
|
369
|
+
<subject-facet>inserted</subject-facet>
|
370
|
+
<subject-facet>inserted</subject-facet>
|
371
|
+
</subject-facet>
|
385
372
|
<lc-subject-display type="array">
|
386
373
|
<lc-subject-display>inserted</lc-subject-display>
|
387
374
|
</lc-subject-display>
|
@@ -397,22 +384,23 @@
|
|
397
384
|
<summary-display type="array">
|
398
385
|
<summary-display>inserted</summary-display>
|
399
386
|
</summary-display>
|
400
|
-
<
|
401
|
-
<
|
402
|
-
</
|
403
|
-
<
|
404
|
-
<
|
405
|
-
</
|
406
|
-
<
|
407
|
-
<
|
408
|
-
<
|
409
|
-
<
|
410
|
-
</
|
411
|
-
<
|
412
|
-
<
|
413
|
-
|
414
|
-
|
415
|
-
|
387
|
+
<contents-t type="array">
|
388
|
+
<contents-t>inserted</contents-t>
|
389
|
+
</contents-t>
|
390
|
+
<contents-display type="array">
|
391
|
+
<contents-display>inserted</contents-display>
|
392
|
+
</contents-display>
|
393
|
+
<genre-facet type="array">
|
394
|
+
<genre-facet>inserted</genre-facet>
|
395
|
+
<genre-facet>inserted</genre-facet>
|
396
|
+
<genre-facet>inserted</genre-facet>
|
397
|
+
</genre-facet>
|
398
|
+
<asset-type-t type="array">
|
399
|
+
<asset-type-t>Scene</asset-type-t>
|
400
|
+
</asset-type-t>
|
401
|
+
<asset-type-facet type="array">
|
402
|
+
<asset-type-facet>Scene</asset-type-facet>
|
403
|
+
</asset-type-facet>
|
416
404
|
<getty-genre-display type="array">
|
417
405
|
<getty-genre-display>inserted</getty-genre-display>
|
418
406
|
</getty-genre-display>
|
@@ -422,18 +410,18 @@
|
|
422
410
|
<lc-subject-genre-display type="array">
|
423
411
|
<lc-subject-genre-display>inserted</lc-subject-genre-display>
|
424
412
|
</lc-subject-genre-display>
|
425
|
-
<
|
426
|
-
<
|
427
|
-
</
|
428
|
-
<
|
429
|
-
<
|
430
|
-
</
|
431
|
-
<
|
432
|
-
<
|
433
|
-
</
|
434
|
-
<
|
435
|
-
<
|
436
|
-
</
|
413
|
+
<series-t type="array">
|
414
|
+
<series-t>inserted</series-t>
|
415
|
+
</series-t>
|
416
|
+
<series-display type="array">
|
417
|
+
<series-display>inserted</series-display>
|
418
|
+
</series-display>
|
419
|
+
<collection-t type="array">
|
420
|
+
<collection-t>inserted</collection-t>
|
421
|
+
</collection-t>
|
422
|
+
<collection-display type="array">
|
423
|
+
<collection-display>inserted</collection-display>
|
424
|
+
</collection-display>
|
437
425
|
<archival-series-t type="array">
|
438
426
|
<archival-series-t>inserted</archival-series-t>
|
439
427
|
</archival-series-t>
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-pbcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,40 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: nokogiri
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: om
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
14
|
- !ruby/object:Gem::Dependency
|
47
15
|
name: active-fedora
|
48
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,22 +27,6 @@ dependencies:
|
|
59
27
|
- - ! '>='
|
60
28
|
- !ruby/object:Gem::Version
|
61
29
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: solrizer
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
30
|
- !ruby/object:Gem::Dependency
|
79
31
|
name: yard
|
80
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +60,7 @@ dependencies:
|
|
108
60
|
- !ruby/object:Gem::Version
|
109
61
|
version: '0'
|
110
62
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
63
|
+
name: rake
|
112
64
|
requirement: !ruby/object:Gem::Requirement
|
113
65
|
none: false
|
114
66
|
requirements:
|
@@ -124,7 +76,7 @@ dependencies:
|
|
124
76
|
- !ruby/object:Gem::Version
|
125
77
|
version: '0'
|
126
78
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
79
|
+
name: rspec
|
128
80
|
requirement: !ruby/object:Gem::Requirement
|
129
81
|
none: false
|
130
82
|
requirements:
|
@@ -179,6 +131,7 @@ extensions: []
|
|
179
131
|
extra_rdoc_files: []
|
180
132
|
files:
|
181
133
|
- .gitignore
|
134
|
+
- .travis.yml
|
182
135
|
- Gemfile
|
183
136
|
- LICENSE
|
184
137
|
- README.md
|
@@ -247,12 +200,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
200
|
- - ! '>='
|
248
201
|
- !ruby/object:Gem::Version
|
249
202
|
version: '0'
|
203
|
+
segments:
|
204
|
+
- 0
|
205
|
+
hash: 3521105165021581431
|
250
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
207
|
none: false
|
252
208
|
requirements:
|
253
209
|
- - ! '>='
|
254
210
|
- !ruby/object:Gem::Version
|
255
211
|
version: '0'
|
212
|
+
segments:
|
213
|
+
- 0
|
214
|
+
hash: 3521105165021581431
|
256
215
|
requirements: []
|
257
216
|
rubyforge_project:
|
258
217
|
rubygems_version: 1.8.24
|
@@ -296,3 +255,4 @@ test_files:
|
|
296
255
|
- spec/mapper_spec.rb
|
297
256
|
- spec/spec_helper.rb
|
298
257
|
- spec/templates_spec.rb
|
258
|
+
has_rdoc:
|