hydra-pbcore 2.4.0 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +1 -1
  3. data/Gemfile.lock +135 -0
  4. data/README.md +32 -25
  5. data/Rakefile +1 -1
  6. data/hydra-pbcore.gemspec +3 -1
  7. data/lib/hydra-pbcore.rb +19 -2
  8. data/lib/hydra_pbcore/datastream.rb +0 -1
  9. data/lib/hydra_pbcore/datastream/document.rb +6 -11
  10. data/lib/hydra_pbcore/datastream/instantiation.rb +5 -10
  11. data/lib/hydra_pbcore/methods.rb +0 -6
  12. data/lib/hydra_pbcore/templates.rb +6 -6
  13. data/lib/hydra_pbcore/version.rb +1 -1
  14. data/spec/config_spec.rb +88 -0
  15. data/spec/document_spec.rb +37 -17
  16. data/spec/fixtures/digital_instantiation_solr.xml +1009 -1009
  17. data/spec/fixtures/document_solr.xml +441 -430
  18. data/spec/fixtures/physical_instantiation_solr.xml +291 -282
  19. data/spec/instantiation_spec.rb +38 -6
  20. data/spec/spec_helper.rb +1 -0
  21. metadata +42 -87
  22. data/lib/hydra_pbcore/conversions.rb +0 -107
  23. data/lib/hydra_pbcore/datastream/deprecated.rb +0 -6
  24. data/lib/hydra_pbcore/datastream/deprecated/digital_document.rb +0 -105
  25. data/lib/hydra_pbcore/datastream/deprecated/document.rb +0 -332
  26. data/lib/hydra_pbcore/datastream/deprecated/instantiation.rb +0 -263
  27. data/lib/hydra_pbcore/mapper.rb +0 -50
  28. data/spec/deprecated/digital_document_spec.rb +0 -242
  29. data/spec/deprecated/document_spec.rb +0 -282
  30. data/spec/deprecated/instantiation_spec.rb +0 -214
  31. data/spec/fixtures/converted_digital_document_rrhof_1904.xml +0 -61
  32. data/spec/fixtures/converted_digital_document_rrhof_2405.xml +0 -54
  33. data/spec/fixtures/converted_document_rrhof_2439.xml +0 -19
  34. data/spec/fixtures/converted_document_rrhof_524.xml +0 -45
  35. data/spec/fixtures/converted_instantiation_rrhof_1184.xml +0 -39
  36. data/spec/fixtures/converted_rrhof_524.xml +0 -45
  37. data/spec/fixtures/converted_rrhof_524_instantiation.xml +0 -18
  38. data/spec/fixtures/deprecated/pbcore_digital_document_template.xml +0 -67
  39. data/spec/fixtures/deprecated/pbcore_document_template.xml +0 -90
  40. data/spec/fixtures/deprecated/pbcore_instantiation_template.xml +0 -62
  41. data/spec/fixtures/deprecated/pbcore_solr_digital_document_template.xml +0 -500
  42. data/spec/fixtures/deprecated/pbcore_solr_document_template.xml +0 -592
  43. data/spec/fixtures/deprecated/pbcore_solr_instantiation_template.xml +0 -784
  44. data/spec/fixtures/integration/digital_document_rrhof_1904.xml +0 -67
  45. data/spec/fixtures/integration/digital_document_rrhof_2405.xml +0 -66
  46. data/spec/fixtures/integration/document_rrhof_2439.xml +0 -54
  47. data/spec/fixtures/integration/document_rrhof_524.xml +0 -80
  48. data/spec/fixtures/integration/instantiation_rrhof_1184.xml +0 -44
  49. data/spec/integration/conversions_spec.rb +0 -76
  50. data/spec/mapper_spec.rb +0 -18
@@ -1,67 +0,0 @@
1
-
2
- <pbcoreDescriptionDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pbcore.org/PBCore/PBCoreNamespace.html">
3
- <pbcoreIdentifier annotation="PID" source="Rock and Roll Hall of Fame and Museum"></pbcoreIdentifier>
4
- <pbcoreTitle titleType="Main">Oral history project. Wanda Jackson.</pbcoreTitle>
5
- <pbcoreDescription annotation="Summary" descriptionType="Description" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description" descriptionTypeSource="pbcoreDescription/descriptionType">Jackson discusses her career in rockabilly, her country influences, and her professional relationships with Elvis Presley, Hank Thompson, Jack White, and Ken Nelson.</pbcoreDescription>
6
- <pbcoreDescription annotation="Parts List" descriptionType="Table of Contents" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents" descriptionTypeSource="pbcoreDescription/descriptionType">[Interview in four parts.]</pbcoreDescription>
7
- <pbcoreRelation>
8
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
9
- <pbcoreRelationIdentifier annotation="Event Series">Oral history project (Rock and Roll Hall of Fame and Museum)</pbcoreRelationIdentifier>
10
- </pbcoreRelation>
11
- <pbcoreRelation>
12
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
13
- </pbcoreRelation>
14
- <pbcoreRelation>
15
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
16
- <pbcoreRelationIdentifier annotation="Archival Series">Oral history project</pbcoreRelationIdentifier>
17
- </pbcoreRelation>
18
- <pbcoreRelation>
19
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
20
- </pbcoreRelation>
21
- <pbcoreRelation>
22
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
23
- <pbcoreRelationIdentifier annotation="Accession Number"></pbcoreRelationIdentifier>
24
- </pbcoreRelation>
25
- <pbcoreCoverage>
26
- <coverage annotation="Event Place">Oklahoma City, OK</coverage>
27
- <coverageType>Spatial</coverageType>
28
- <coverage>New York, NY</coverage>
29
- </pbcoreCoverage>
30
- <pbcoreCoverage>
31
- <coverage annotation="Event Date">2011-12-08</coverage>
32
- <coverageType>Temporal</coverageType>
33
- <coverage>2011-12-19</coverage>
34
- </pbcoreCoverage>
35
- <pbcoreRightsSummary></pbcoreRightsSummary>
36
- <pbcoreAnnotation annotationType="Notes"></pbcoreAnnotation>
37
- <pbcoreTitle titleType="Alternative">Wanda Jackson oral history</pbcoreTitle>
38
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Jackson, Wanda, 1937-</pbcoreSubject>
39
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Rockabilly music</pbcoreSubject>
40
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Women rock musicians</pbcoreSubject>
41
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Rock music--History and criticism</pbcoreSubject>
42
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Oral histories</pbcoreGenre>
43
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Filmed interviews</pbcoreGenre>
44
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Nonfiction films</pbcoreGenre>
45
- <pbcoreContributor>
46
- <contributor>Jackson, Wanda, 1937-</contributor>
47
- <contributorRole source="MARC relator terms">interviewee</contributorRole>
48
- </pbcoreContributor>
49
- <pbcoreContributor>
50
- <contributor>George-Warren, Holly</contributor>
51
- <contributorRole source="MARC relator terms">interviewer</contributorRole>
52
- </pbcoreContributor>
53
- <pbcoreContributor>
54
- <contributor>Rock and Roll Hall of Fame Foundation</contributor>
55
- <contributorRole source="MARC relator terms">producer</contributorRole>
56
- </pbcoreContributor>
57
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Nelson, Ken, 1911-2008</pbcoreSubject>
58
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">White, Jack, 1975-</pbcoreSubject>
59
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Presley, Elvis, 1935-1977</pbcoreSubject>
60
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Thompson, Hank</pbcoreSubject>
61
- <pbcoreRelationIdentifier annotation="Archival Collection">Rock and Roll Hall of Fame and Museum records. Education and Public Programs Division. </pbcoreRelationIdentifier>
62
- <pbcoreRelationIdentifier annotation="Collection Number">RG.0004</pbcoreRelationIdentifier>
63
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Inductee</pbcoreSubject>
64
- <instantiationRelationIdentifier annotation="Archival collection">Rock and Roll Hall of Fame and Museum records. Education and Public Programs Division</instantiationRelationIdentifier>
65
- <instantiationRelationIdentifier annotation="Archival Series">Oral history project</instantiationRelationIdentifier>
66
- <instantiationRelationIdentifier annotation="Collection Number">RG.0004</instantiationRelationIdentifier>
67
- </pbcoreDescriptionDocument>
@@ -1,66 +0,0 @@
1
-
2
- <pbcoreDescriptionDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pbcore.org/PBCore/PBCoreNamespace.html">
3
- <pbcoreIdentifier annotation="PID" source="Rock and Roll Hall of Fame and Museum"></pbcoreIdentifier>
4
- <pbcoreTitle titleType="Main">Oral History project. Clive Davis.</pbcoreTitle>
5
- <pbcoreDescription annotation="Summary" descriptionType="Description" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description" descriptionTypeSource="pbcoreDescription/descriptionType">Anthony DeCurtis interviews record executive Clive Davis, who signed such legendary artists as Janis Joplin and Santana, and who founded Arista Records.</pbcoreDescription>
6
- <pbcoreDescription annotation="Parts List" descriptionType="Table of Contents" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents" descriptionTypeSource="pbcoreDescription/descriptionType"></pbcoreDescription>
7
- <pbcoreRelation>
8
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
9
- <pbcoreRelationIdentifier annotation="Event Series">Oral history project (Rock and Roll Hall of Fame and Museum)</pbcoreRelationIdentifier>
10
- </pbcoreRelation>
11
- <pbcoreRelation>
12
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
13
- <pbcoreRelationIdentifier annotation="Archival Collection">Rock and Roll Hall of Fame and Museum records. Education and Public Programs Division.</pbcoreRelationIdentifier>
14
- </pbcoreRelation>
15
- <pbcoreRelation>
16
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
17
- <pbcoreRelationIdentifier annotation="Archival Series">Oral history project</pbcoreRelationIdentifier>
18
- </pbcoreRelation>
19
- <pbcoreRelation>
20
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
21
- <pbcoreRelationIdentifier annotation="Collection Number">RG.0004</pbcoreRelationIdentifier>
22
- </pbcoreRelation>
23
- <pbcoreRelation>
24
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
25
- <pbcoreRelationIdentifier annotation="Accession Number">LA.2012.05.024</pbcoreRelationIdentifier>
26
- </pbcoreRelation>
27
- <pbcoreCoverage>
28
- <coverage annotation="Event Place">Pound Ridge, New York</coverage>
29
- <coverageType>Spatial</coverageType>
30
- </pbcoreCoverage>
31
- <pbcoreCoverage>
32
- <coverage annotation="Event Date">2011-12-10</coverage>
33
- <coverageType>Temporal</coverageType>
34
- </pbcoreCoverage>
35
- <pbcoreRightsSummary></pbcoreRightsSummary>
36
- <pbcoreAnnotation annotationType="Notes"></pbcoreAnnotation>
37
- <pbcoreTitle titleType="Alternative">Clive Davis Oral History</pbcoreTitle>
38
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Davis, Clive</pbcoreSubject>
39
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Joplin, Janis</pbcoreSubject>
40
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Oral histories</pbcoreGenre>
41
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Santana (Musical group)</pbcoreSubject>
42
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Filmed interviews</pbcoreGenre>
43
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Arista (Firm)</pbcoreSubject>
44
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Nonfiction films</pbcoreGenre>
45
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Columbia Records, Inc.</pbcoreSubject>
46
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Sound recording executives and producers</pbcoreSubject>
47
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Record labels--United States</pbcoreSubject>
48
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Sound recording industry</pbcoreSubject>
49
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Rock music--History and criticism</pbcoreSubject>
50
- <pbcoreContributor>
51
- <contributor>Davis, Clive</contributor>
52
- <contributorRole source="MARC relator terms">interviewee</contributorRole>
53
- </pbcoreContributor>
54
- <pbcoreContributor>
55
- <contributor>DeCurtis, Anthony</contributor>
56
- <contributorRole source="MARC relator terms">interviewer</contributorRole>
57
- </pbcoreContributor>
58
- <pbcoreContributor>
59
- <contributor>Rock and Roll Hall of Fame Foundation</contributor>
60
- <contributorRole source="MARC relator terms">producer</contributorRole>
61
- </pbcoreContributor>
62
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Inductee</pbcoreSubject>
63
- <instantiationRelationIdentifier annotation="Archival collection">Rock and Roll Hall of Fame and Museum records. Education and Public Programs Division</instantiationRelationIdentifier>
64
- <instantiationRelationIdentifier annotation="Archival Series">Oral history project</instantiationRelationIdentifier>
65
- <instantiationRelationIdentifier annotation="Collection Number">RG.0004</instantiationRelationIdentifier>
66
- </pbcoreDescriptionDocument>
@@ -1,54 +0,0 @@
1
- <pbcoreDescriptionDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pbcore.org/PBCore/PBCoreNamespace.html">
2
- <pbcoreIdentifier annotation="PID" source="Rock and Roll Hall of Fame and Museum"></pbcoreIdentifier>
3
- <pbcoreTitle titleType="Main">David Ritz. Tape 67.</pbcoreTitle>
4
- <pbcoreDescription annotation="Summary" descriptionType="Description" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description" descriptionTypeSource="pbcoreDescription/descriptionType">Interview with David Ritz on the subject of Jerry Wexler. Other topics discussed include Muscle Shoals, Jimmie Johnson, and Ahmet Ertegun.</pbcoreDescription>
5
- <pbcoreDescription annotation="Parts List" descriptionType="Table of Contents" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents" descriptionTypeSource="pbcoreDescription/descriptionType"></pbcoreDescription>
6
- <pbcoreRelation>
7
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
8
- <pbcoreRelationIdentifier annotation="Event Series"></pbcoreRelationIdentifier>
9
- </pbcoreRelation>
10
- <pbcoreCoverage>
11
- <coverage annotation="Event Place"></coverage>
12
- <coverageType>Spatial</coverageType>
13
- </pbcoreCoverage>
14
- <pbcoreCoverage>
15
- <coverage annotation="Event Date">1999</coverage>
16
- <coverageType>Temporal</coverageType>
17
- </pbcoreCoverage>
18
- <pbcoreAnnotation annotationType="Notes"></pbcoreAnnotation>
19
- <pbcoreInstantiation>
20
- <instantiationIdentifier annotation="Barcode" source="Rock and Roll Hall of Fame and Museum">39156042456405</instantiationIdentifier>
21
- <instantiationDate dateType="created">1999</instantiationDate>
22
- <instantiationPhysical source="PBCore instantiationPhysical">Betacam SP</instantiationPhysical>
23
- <instantiationStandard>NTSC</instantiationStandard>
24
- <instantiationLocation>Rock and Roll Hall of Fame and Museum,
25
- 2809 Woodland Ave.,
26
- Cleveland, OH, 44115
27
- 216-515-1956
28
- library@rockhall.org</instantiationLocation>
29
- <instantiationMediaType source="PBCore instantiationMediaType">Moving image</instantiationMediaType>
30
- <instantiationGenerations source="PBCore instantiationGenerations">Original</instantiationGenerations>
31
- <instantiationColors>Color</instantiationColors>
32
- <instantiationLanguage ref="http://www.loc.gov/standards/iso639-2/php/code_list.php" source="ISO 639.2">eng</instantiationLanguage>
33
- <instantiationRelation>
34
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
35
- <instantiationRelationIdentifier annotation="Archival Collection"></instantiationRelationIdentifier>
36
- <instantiationRelationIdentifier annotation="Archival collection">Immaculate Funk Collection</instantiationRelationIdentifier>
37
- </instantiationRelation>
38
- <instantiationRelation>
39
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
40
- <instantiationRelationIdentifier annotation="Archival Series">Beta SP Videocassettes</instantiationRelationIdentifier>
41
- </instantiationRelation>
42
- <instantiationRelation>
43
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
44
- <instantiationRelationIdentifier annotation="Collection Number">ARC.0008</instantiationRelationIdentifier>
45
- </instantiationRelation>
46
- <instantiationRelation>
47
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
48
- <instantiationRelationIdentifier annotation="Accession Number">La.2010.06.004</instantiationRelationIdentifier>
49
- </instantiationRelation>
50
- <instantiationRights>
51
- <rightsSummary></rightsSummary>
52
- </instantiationRights>
53
- </pbcoreInstantiation>
54
- </pbcoreDescriptionDocument>
@@ -1,80 +0,0 @@
1
- <pbcoreDescriptionDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pbcore.org/PBCore/PBCoreNamespace.html">
2
- <pbcoreIdentifier annotation="PID" source="Rock and Roll Hall of Fame and Museum"></pbcoreIdentifier>
3
- <pbcoreTitle titleType="Main">Evening with series. Glass Harp. Part 1.</pbcoreTitle>
4
- <pbcoreDescription annotation="Summary" descriptionType="Description" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description" descriptionTypeSource="pbcoreDescription/descriptionType">Chief Curator Jim Henke interviews Phil Keaggy, John Sferra, and Daniel Pecchio of Cleveland-based power trio band Glass Harp. The band members discuss their genesis in Youngstown, Ohio, playing early shows in Kent, Ohio, the James Gang, Decca Records, and playing at Carnegie Hall.</pbcoreDescription>
5
- <pbcoreDescription annotation="Parts List" descriptionType="Table of Contents" descriptionTypeRef="http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents" descriptionTypeSource="pbcoreDescription/descriptionType"></pbcoreDescription>
6
- <pbcoreRelation>
7
- <pbcoreRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</pbcoreRelationType>
8
- <pbcoreRelationIdentifier annotation="Event Series">Evening with series (Rock and Roll Hall of Fame and Museum)</pbcoreRelationIdentifier>
9
- </pbcoreRelation>
10
- <pbcoreCoverage>
11
- <coverage annotation="Event Place">Rock and Roll Hall of Fame and Museum, Cleveland, Ohio</coverage>
12
- <coverageType>Spatial</coverageType>
13
- </pbcoreCoverage>
14
- <pbcoreCoverage>
15
- <coverage annotation="Event Date">1997-04-19</coverage>
16
- <coverageType>Temporal</coverageType>
17
- </pbcoreCoverage>
18
- <pbcoreAnnotation annotationType="Notes"></pbcoreAnnotation>
19
- <pbcoreInstantiation>
20
- <instantiationIdentifier annotation="Barcode" source="Rock and Roll Hall of Fame and Museum">39156042459672</instantiationIdentifier>
21
- <instantiationDate dateType="created">1997-04-19</instantiationDate>
22
- <instantiationPhysical source="PBCore instantiationPhysical">Betacam</instantiationPhysical>
23
- <instantiationStandard>NTSC</instantiationStandard>
24
- <instantiationLocation>Rock and Roll Hall of Fame and Museum,
25
- 2809 Woodland Ave.,
26
- Cleveland, OH, 44115
27
- 216-515-1956
28
- library@rockhall.org</instantiationLocation>
29
- <instantiationMediaType source="PBCore instantiationMediaType">Moving image</instantiationMediaType>
30
- <instantiationGenerations source="PBCore instantiationGenerations">Original</instantiationGenerations>
31
- <instantiationColors>Color</instantiationColors>
32
- <instantiationLanguage ref="http://www.loc.gov/standards/iso639-2/php/code_list.php" source="ISO 639.2">eng</instantiationLanguage>
33
- <instantiationRelation>
34
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
35
- <instantiationRelationIdentifier annotation="Archival Collection"></instantiationRelationIdentifier>
36
- <instantiationRelationIdentifier annotation="Archival collection">Rock and Roll Hall of Fame and Museum records. Education and Public Programs Division</instantiationRelationIdentifier>
37
- </instantiationRelation>
38
- <instantiationRelation>
39
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
40
- <instantiationRelationIdentifier annotation="Archival Series"></instantiationRelationIdentifier>
41
- </instantiationRelation>
42
- <instantiationRelation>
43
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
44
- <instantiationRelationIdentifier annotation="Collection Number">RG.0004</instantiationRelationIdentifier>
45
- </instantiationRelation>
46
- <instantiationRelation>
47
- <instantiationRelationType ref="http://pbcore.org/vocabularies/relationType#is-part-of" source="PBCore relationType">Is Part Of</instantiationRelationType>
48
- <instantiationRelationIdentifier annotation="Accession Number"></instantiationRelationIdentifier>
49
- </instantiationRelation>
50
- <instantiationRights>
51
- <rightsSummary></rightsSummary>
52
- </instantiationRights>
53
- </pbcoreInstantiation>
54
- <pbcoreTitle titleType="Label">An evening with Glass Harp.</pbcoreTitle>
55
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Glass Harp (Musical group)</pbcoreSubject>
56
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Rock groups</pbcoreSubject>
57
- <pbcoreSubject ref="http://id.loc.gov/authorities/subjects.html" source="Library of Congress Subject Headings">Rock music--History and criticism</pbcoreSubject>
58
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Filmed interviews</pbcoreGenre>
59
- <pbcoreGenre ref="http://id.loc.gov/authorities/genreForms.html" source="Library of Congress Genre/Form Terms">Nonfiction films</pbcoreGenre>
60
- <pbcoreContributor>
61
- <contributor>Henke, James</contributor>
62
- <contributorRole source="MARC relator terms">interviewer</contributorRole>
63
- </pbcoreContributor>
64
- <pbcoreContributor>
65
- <contributor>Glass Harp (Musical group)</contributor>
66
- <contributorRole source="MARC relator terms">interviewee</contributorRole>
67
- </pbcoreContributor>
68
- <pbcoreContributor>
69
- <contributor>Keaggy, Phil</contributor>
70
- <contributorRole source="MARC relator terms">interviewee</contributorRole>
71
- </pbcoreContributor>
72
- <pbcoreContributor>
73
- <contributor>Sferra, John</contributor>
74
- <contributorRole source="MARC relator terms">interviewee</contributorRole>
75
- </pbcoreContributor>
76
- <pbcoreContributor>
77
- <contributor>Rock and Roll Hall of Fame and Museum</contributor>
78
- <contributorRole source="MARC relator terms"></contributorRole>
79
- </pbcoreContributor>
80
- </pbcoreDescriptionDocument>
@@ -1,44 +0,0 @@
1
- <pbcoreDescriptionDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pbcore.org/PBCore/PBCoreNamespace.html">
2
- <pbcoreIdentifier annotation="PID" source="Rock and Roll Hall of Fame and Museum"></pbcoreIdentifier>
3
- <pbcoreTitle></pbcoreTitle>
4
- <pbcoreDescription></pbcoreDescription>
5
- <pbcoreInstantiation>
6
- <instantiationIdentifier annotation="Filename" source="Rock and Roll Hall of Fame and Museum">39156042449095_preservation.mov</instantiationIdentifier>
7
- <instantiationDate dateType="created">2012-02-07</instantiationDate>
8
- <instantiationDigital source="EBU file formats">mov</instantiationDigital>
9
- <instantiationLocation></instantiationLocation>
10
- <instantiationMediaType source="PBCore instantiationMediaType">Moving image</instantiationMediaType>
11
- <instantiationGenerations source="PBCore instantiationGenerations">Copy: preservation</instantiationGenerations>
12
- <instantiationFileSize unitsOfMeasure="">34</instantiationFileSize>
13
- <instantiationDuration>00:21:51</instantiationDuration>
14
- <instantiationColors source="PBCore instantiationColors">Color</instantiationColors>
15
- <instantiationEssenceTrack>
16
- <essenceTrackType>Video</essenceTrackType>
17
- <essenceTrackStandard>NTSC</essenceTrackStandard>
18
- <essenceTrackEncoding source="PBCore essenceTrackEncoding">AJA v210</essenceTrackEncoding>
19
- <essenceTrackDataRate unitsOfMeasure="Mbps">224</essenceTrackDataRate>
20
- <essenceTrackFrameRate unitsOfMeasure="fps">29.97</essenceTrackFrameRate>
21
- <essenceTrackBitDepth>10</essenceTrackBitDepth>
22
- <essenceTrackFrameSize source="PBCore essenceTrackFrameSize">720x486</essenceTrackFrameSize>
23
- <essenceTrackAspectRatio source="PBCore essenceTrackAspectRatio">4:3</essenceTrackAspectRatio>
24
- </instantiationEssenceTrack>
25
- <instantiationEssenceTrack>
26
- <essenceTrackType>Audio</essenceTrackType>
27
- <essenceTrackStandard>Linear PCM Audio</essenceTrackStandard>
28
- <essenceTrackEncoding source="PBCore essenceTrackEncoding">in24</essenceTrackEncoding>
29
- <essenceTrackDataRate unitsOfMeasure="Kbps">1152</essenceTrackDataRate>
30
- <essenceTrackSamplingRate unitsOfMeasure="kHz">48</essenceTrackSamplingRate>
31
- <essenceTrackBitDepth>24</essenceTrackBitDepth>
32
- <essenceTrackAnnotation annotationType="Number of Audio Channels">2</essenceTrackAnnotation>
33
- </instantiationEssenceTrack>
34
- <instantiationRights>
35
- <rightsSummary></rightsSummary>
36
- </instantiationRights>
37
- <instantiationAnnotation annotationType="Capture Software">Apple FCP 7 (ver 7.0.3)</instantiationAnnotation>
38
- <instantiationAnnotation annotationType="Operator">TM</instantiationAnnotation>
39
- <instantiationAnnotation annotationType="Playback Device">BTS BCB75</instantiationAnnotation>
40
- <instantiationAnnotation annotationType="Chroma">4:2:2</instantiationAnnotation>
41
- <instantiationAnnotation annotationType="Color Space">YUV</instantiationAnnotation>
42
- <instantiationAnnotation annotationType="Vendor Name">George Blood Audio and Video</instantiationAnnotation>
43
- </pbcoreInstantiation>
44
- </pbcoreDescriptionDocument>
@@ -1,76 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "Converting" do
4
-
5
- before :all do
6
- class FakeDocument
7
- include HydraPbcore::Conversions
8
- end
9
- @fake = FakeDocument.new
10
- end
11
-
12
- describe "HydraPbcore::Datastream::Deprecated::Document to HydraPbcore::Datastream::Document" do
13
- it "should return a valid pbcore document" do
14
- doc = HydraPbcore::Datastream::Deprecated::Document.from_xml(integration_fixture "document_rrhof_524.xml")
15
- doc.to_document
16
- save_template doc.to_xml, "converted_rrhof_524.xml"
17
- tmp_file_should_match_exemplar("converted_rrhof_524.xml")
18
- end
19
- it "should raise an error with the wrong class" do
20
- lambda { @fake.to_document }.should raise_error
21
- end
22
- end
23
-
24
- describe "HydraPbcore::Datastream::Deprecated::Document to HydraPbcore::Datastream::Instantiation" do
25
- it "should return a physical instantation from an existing document" do
26
- doc = HydraPbcore::Datastream::Deprecated::Document.from_xml(integration_fixture "document_rrhof_524.xml")
27
- inst = doc.to_physical_instantiation
28
- inst.should be_kind_of HydraPbcore::Datastream::Instantiation
29
- save_template inst.to_xml, "converted_rrhof_524_instantiation.xml"
30
- tmp_file_should_match_exemplar("converted_rrhof_524_instantiation.xml")
31
- end
32
- it "should raise an error with the wrong class" do
33
- lambda { @fake.to_document }.should raise_error
34
- end
35
- end
36
-
37
- describe "HydraPbcore::Datastream::Deprecated::Instantiation to HydraPbcore::Datastream::Instantiation" do
38
- it "should return a valid instantation" do
39
- inst = HydraPbcore::Datastream::Deprecated::Instantiation.from_xml(integration_fixture "instantiation_rrhof_1184.xml")
40
- inst.to_instantiation
41
- save_template inst.to_xml, "converted_instantiation_rrhof_1184.xml"
42
- tmp_file_should_match_exemplar("converted_instantiation_rrhof_1184.xml")
43
- end
44
- it "should raise an error with the wrong class" do
45
- lambda { @fake.to_document }.should raise_error
46
- end
47
- end
48
-
49
- describe "#clean_document" do
50
- it "should correct invalid pbcoreDocuments" do
51
- ["document_rrhof_524.xml","document_rrhof_2439.xml"].each do |file|
52
- doc = HydraPbcore::Datastream::Deprecated::Document.from_xml(integration_fixture file)
53
- doc.to_document
54
- doc.clean_document
55
- save_template doc.to_xml, ("converted_"+file)
56
- tmp_file_should_match_exemplar(("converted_"+file))
57
- save_template doc.to_pbcore_xml, "valid_pbcore.xml"
58
- doc.valid?.should == []
59
- end
60
- end
61
- end
62
-
63
- describe "#clean_digital_document" do
64
- it "should correct invalid pbcoreDigitalDocuments" do
65
- ["digital_document_rrhof_1904.xml","digital_document_rrhof_2405.xml"].each do |file|
66
- doc = HydraPbcore::Datastream::Deprecated::DigitalDocument.from_xml(integration_fixture file)
67
- doc.clean_digital_document
68
- save_template doc.to_xml, ("converted_"+file)
69
- tmp_file_should_match_exemplar(("converted_"+file))
70
- save_template doc.to_pbcore_xml, "valid_pbcore.xml"
71
- doc.valid?.should == []
72
- end
73
- end
74
- end
75
-
76
- end
data/spec/mapper_spec.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe HydraPbcore::Mapper do
4
-
5
- describe "#pbcore_date" do
6
-
7
- it "should return valid dates from only partial ones" do
8
- HydraPbcore::Mapper.pbcore_date('2003').should == "2003-01-01T00:00:00Z"
9
- HydraPbcore::Mapper.pbcore_date('2009-07').should == "2009-07-01T00:00:00Z"
10
- end
11
-
12
- it "should return empty strings and not dates" do
13
- HydraPbcore::Mapper.pbcore_date('').should be_empty
14
- end
15
-
16
- end
17
-
18
- end