active-fedora 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/.hg/00changelog.i +0 -0
  4. data/.hg/branch +1 -0
  5. data/.hg/branch.cache +2 -0
  6. data/.hg/dirstate +0 -0
  7. data/.hg/hgrc +2 -0
  8. data/.hg/requires +2 -0
  9. data/.hg/store/00changelog.i +0 -0
  10. data/.hg/store/00manifest.i +0 -0
  11. data/.hg/store/data/.hgignore.i +0 -0
  12. data/.hg/store/data/.hgtags.i +0 -0
  13. data/.hg/store/data/_c_o_p_y_i_n_g.txt.i +0 -0
  14. data/.hg/store/data/_c_o_y_i_n_g._l_e_s_s_e_r.txt.i +0 -0
  15. data/.hg/store/data/_history.txt.i +0 -0
  16. data/.hg/store/data/_license.txt.i +0 -0
  17. data/.hg/store/data/_manifest.txt.i +0 -0
  18. data/.hg/store/data/_post_install.txt.i +0 -0
  19. data/.hg/store/data/_r_e_a_d_m_e.rdoc.i +0 -0
  20. data/.hg/store/data/_r_e_a_d_m_e.txt.i +0 -0
  21. data/.hg/store/data/_rakefile.i +0 -0
  22. data/.hg/store/data/_v_e_r_s_i_o_n.i +0 -0
  23. data/.hg/store/data/active-fedora.gemspec.i +0 -0
  24. data/.hg/store/data/active__fedora/_history.txt.i +0 -0
  25. data/.hg/store/data/active__fedora/_manifest.txt.i +0 -0
  26. data/.hg/store/data/active__fedora/_post_install.txt.i +0 -0
  27. data/.hg/store/data/active__fedora/_r_e_a_d_m_e.rdoc.i +0 -0
  28. data/.hg/store/data/active__fedora/_rakefile.i +0 -0
  29. data/.hg/store/data/active__fedora/lib/active__fedora.rb.i +0 -0
  30. data/.hg/store/data/active__fedora/script/console.i +0 -0
  31. data/.hg/store/data/active__fedora/script/destroy.i +0 -0
  32. data/.hg/store/data/active__fedora/script/generate.i +0 -0
  33. data/.hg/store/data/active__fedora/spec/active__fedora__spec.rb.i +0 -0
  34. data/.hg/store/data/active__fedora/spec/spec__helper.rb.i +0 -0
  35. data/.hg/store/data/config/fedora.yml.i +0 -0
  36. data/.hg/store/data/config/solr__mappings.yml.i +0 -0
  37. data/.hg/store/data/config/solr__mappings__af__0.1.yml.i +0 -0
  38. data/.hg/store/data/config/solr__mappings__bl__2.4.yml.i +0 -0
  39. data/.hg/store/data/lib/active-fedora.rb.i +0 -0
  40. data/.hg/store/data/lib/active__fedora.rb.i +0 -0
  41. data/.hg/store/data/lib/active__fedora/base.rb.i +0 -0
  42. data/.hg/store/data/lib/active__fedora/content__model.rb.i +0 -0
  43. data/.hg/store/data/lib/active__fedora/datastream.rb.i +0 -0
  44. data/.hg/store/data/lib/active__fedora/fedora__object.rb.i +0 -0
  45. data/.hg/store/data/lib/active__fedora/metadata__datastream.rb.i +0 -0
  46. data/.hg/store/data/lib/active__fedora/model.rb.i +0 -0
  47. data/.hg/store/data/lib/active__fedora/property.rb.i +0 -0
  48. data/.hg/store/data/lib/active__fedora/qualified__dublin__core__datastream.rb.i +0 -0
  49. data/.hg/store/data/lib/active__fedora/relationship.rb.i +0 -0
  50. data/.hg/store/data/lib/active__fedora/rels__ext__datastream.rb.i +0 -0
  51. data/.hg/store/data/lib/active__fedora/semantic__node.rb.i +0 -0
  52. data/.hg/store/data/lib/active__fedora/solr__mapper.rb.i +0 -0
  53. data/.hg/store/data/lib/active__fedora/solr__service.rb.i +0 -0
  54. data/.hg/store/data/lib/fedora/base.rb.i +0 -0
  55. data/.hg/store/data/lib/fedora/connection.rb.i +0 -0
  56. data/.hg/store/data/lib/fedora/datastream.rb.i +0 -0
  57. data/.hg/store/data/lib/fedora/fedora__object.rb.i +0 -0
  58. data/.hg/store/data/lib/fedora/formats.rb.i +0 -0
  59. data/.hg/store/data/lib/fedora/generic__search.rb.i +0 -0
  60. data/.hg/store/data/lib/fedora/repository.rb.i +0 -0
  61. data/.hg/store/data/lib/ruby-fedora.rb.i +0 -0
  62. data/.hg/store/data/lib/util/class__level__inheritable__attributes.rb.i +0 -0
  63. data/.hg/store/data/script/console.i +0 -0
  64. data/.hg/store/data/script/destroy.i +0 -0
  65. data/.hg/store/data/script/generate.i +0 -0
  66. data/.hg/store/data/solr/config/schema-1.5.xml.i +0 -0
  67. data/.hg/store/data/solr/config/schema.xml.i +0 -0
  68. data/.hg/store/data/solr/config/solrconfig-1.5.xml.i +0 -0
  69. data/.hg/store/data/spec/fixtures/changeme155.xml.i +0 -0
  70. data/.hg/store/data/spec/fixtures/dino.jpg.i +0 -0
  71. data/.hg/store/data/spec/fixtures/minivan.jpg.d +0 -0
  72. data/.hg/store/data/spec/fixtures/minivan.jpg.i +0 -0
  73. data/.hg/store/data/spec/fixtures/test__12.foxml.xml.i +0 -0
  74. data/.hg/store/data/spec/integration/active__fedora/base__spec.rb.i +0 -0
  75. data/.hg/store/data/spec/integration/active__fedora/datastream__spec.rb.i +0 -0
  76. data/.hg/store/data/spec/integration/active__fedora/fedora__object__spec.rb.i +0 -0
  77. data/.hg/store/data/spec/integration/active__fedora/full__featured__model__spec.rb.i +0 -0
  78. data/.hg/store/data/spec/integration/active__fedora/model__spec.rb.i +0 -0
  79. data/.hg/store/data/spec/integration/active__fedora/rels__ext__datastream__spec.rb.i +0 -0
  80. data/.hg/store/data/spec/integration/active__fedora/semantic__node__spec.rb.i +0 -0
  81. data/.hg/store/data/spec/integration/base__file__management__spec.rb.i +0 -0
  82. data/.hg/store/data/spec/integration/base__spec.rb.i +0 -0
  83. data/.hg/store/data/spec/integration/bug__spec.rb.i +0 -0
  84. data/.hg/store/data/spec/integration/datastream__spec.rb.i +0 -0
  85. data/.hg/store/data/spec/integration/datastreams__crud__spec.rb.i +0 -0
  86. data/.hg/store/data/spec/integration/fedora__object__spec.rb.i +0 -0
  87. data/.hg/store/data/spec/integration/full__featured__model__spec.rb.i +0 -0
  88. data/.hg/store/data/spec/integration/model__spec.rb.i +0 -0
  89. data/.hg/store/data/spec/integration/rels__ext__datastream__spec.rb.i +0 -0
  90. data/.hg/store/data/spec/integration/repository__spec.rb.i +0 -0
  91. data/.hg/store/data/spec/integration/rf__fedora__object__spec.rb.i +0 -0
  92. data/.hg/store/data/spec/integration/semantic__node__spec.rb.i +0 -0
  93. data/.hg/store/data/spec/integration/solr__service__spec.rb.i +0 -0
  94. data/.hg/store/data/spec/samples/models/audio__record.rb.i +0 -0
  95. data/.hg/store/data/spec/samples/models/image.rb.i +0 -0
  96. data/.hg/store/data/spec/samples/models/oral__history.rb.i +0 -0
  97. data/.hg/store/data/spec/samples/models/seminar.rb.i +0 -0
  98. data/.hg/store/data/spec/samples/models/seminar__audio__file.rb.i +0 -0
  99. data/.hg/store/data/spec/samples/oh__qdc.xml.i +0 -0
  100. data/.hg/store/data/spec/samples/oral__history.rb.i +0 -0
  101. data/.hg/store/data/spec/samples/oral__history__sample.xml.i +0 -0
  102. data/.hg/store/data/spec/samples/oral__history__sample__model.rb.i +0 -0
  103. data/.hg/store/data/spec/samples/oral__history__xml.xml.i +0 -0
  104. data/.hg/store/data/spec/spec.opts.i +0 -0
  105. data/.hg/store/data/spec/spec__helper.rb.i +0 -0
  106. data/.hg/store/data/spec/unit/active__fedora/base__cma__spec.rb.i +0 -0
  107. data/.hg/store/data/spec/unit/active__fedora/base__extra__spec.rb.i +0 -0
  108. data/.hg/store/data/spec/unit/active__fedora/base__spec.rb.i +0 -0
  109. data/.hg/store/data/spec/unit/active__fedora/content__model__spec.rb.i +0 -0
  110. data/.hg/store/data/spec/unit/active__fedora/datastream__spec.rb.i +0 -0
  111. data/.hg/store/data/spec/unit/active__fedora/inheritance__spec.rb.i +0 -0
  112. data/.hg/store/data/spec/unit/active__fedora/metadata__datastream__spec.rb.i +0 -0
  113. data/.hg/store/data/spec/unit/active__fedora/model__spec.rb.i +0 -0
  114. data/.hg/store/data/spec/unit/active__fedora/property__spec.rb.i +0 -0
  115. data/.hg/store/data/spec/unit/active__fedora/qualified__dublin__core__datastream__spec.rb.i +0 -0
  116. data/.hg/store/data/spec/unit/active__fedora/relationship__spec.rb.i +0 -0
  117. data/.hg/store/data/spec/unit/active__fedora/rels__ext__datastream__spec.rb.i +0 -0
  118. data/.hg/store/data/spec/unit/active__fedora/semantic__node__spec.rb.i +0 -0
  119. data/.hg/store/data/spec/unit/active__fedora/solr__service__spec.rb.i +0 -0
  120. data/.hg/store/data/spec/unit/active__fedora__spec.rb.i +0 -0
  121. data/.hg/store/data/spec/unit/base__cma__spec.rb.i +0 -0
  122. data/.hg/store/data/spec/unit/base__datastream__management__spec.rb.i +0 -0
  123. data/.hg/store/data/spec/unit/base__extra__spec.rb.i +0 -0
  124. data/.hg/store/data/spec/unit/base__file__management__spec.rb.i +0 -0
  125. data/.hg/store/data/spec/unit/base__loader__spec.rb.i +0 -0
  126. data/.hg/store/data/spec/unit/base__spec.rb.i +0 -0
  127. data/.hg/store/data/spec/unit/connection__spec.rb.i +0 -0
  128. data/.hg/store/data/spec/unit/content__model__spec.rb.i +0 -0
  129. data/.hg/store/data/spec/unit/datastream__concurrency__spec.rb.i +0 -0
  130. data/.hg/store/data/spec/unit/datastream__spec.rb.i +0 -0
  131. data/.hg/store/data/spec/unit/fedora__object__spec.rb.i +0 -0
  132. data/.hg/store/data/spec/unit/inheritance__spec.rb.i +0 -0
  133. data/.hg/store/data/spec/unit/metadata__datastream__spec.rb.i +0 -0
  134. data/.hg/store/data/spec/unit/model__spec.rb.i +0 -0
  135. data/.hg/store/data/spec/unit/property__spec.rb.i +0 -0
  136. data/.hg/store/data/spec/unit/qualified__dublin__core__datastream__spec.rb.i +0 -0
  137. data/.hg/store/data/spec/unit/relationship__spec.rb.i +0 -0
  138. data/.hg/store/data/spec/unit/rels__ext__datastream__spec.rb.i +0 -0
  139. data/.hg/store/data/spec/unit/repository__spec.rb.i +0 -0
  140. data/.hg/store/data/spec/unit/rf__datastream__spec.rb.i +0 -0
  141. data/.hg/store/data/spec/unit/semantic__node__spec.rb.i +0 -0
  142. data/.hg/store/data/spec/unit/solr__config__options__spec.rb.i +0 -0
  143. data/.hg/store/data/spec/unit/solr__mapper__spec.rb.i +0 -0
  144. data/.hg/store/data/spec/unit/solr__service__spec.rb.i +0 -0
  145. data/.hg/store/data/tasks/rspec.rake.i +0 -0
  146. data/.hg/store/undo +0 -0
  147. data/.hg/undo.branch +1 -0
  148. data/.hg/undo.dirstate +0 -0
  149. data/.hgignore +7 -0
  150. data/.hgtags +14 -0
  151. data/COPYING.txt +674 -0
  152. data/COYING.LESSER.txt +165 -0
  153. data/History.txt +34 -0
  154. data/LICENSE +20 -0
  155. data/License.txt +58 -0
  156. data/Manifest.txt +1 -1
  157. data/README.rdoc +13 -54
  158. data/README.txt +59 -0
  159. data/Rakefile +35 -0
  160. data/VERSION +1 -0
  161. data/active-fedora.gemspec +359 -0
  162. data/config/fedora.yml +16 -0
  163. data/config/solr_mappings.yml +14 -0
  164. data/config/solr_mappings_af_0.1.yml +16 -0
  165. data/config/solr_mappings_bl_2.4.yml +14 -0
  166. data/lib/active_fedora.rb +66 -6
  167. data/lib/active_fedora/base.rb +59 -23
  168. data/lib/active_fedora/datastream.rb +1 -1
  169. data/lib/active_fedora/metadata_datastream.rb +14 -7
  170. data/lib/active_fedora/model.rb +4 -4
  171. data/lib/active_fedora/rels_ext_datastream.rb +1 -1
  172. data/lib/active_fedora/semantic_node.rb +4 -3
  173. data/lib/active_fedora/solr_mapper.rb +17 -0
  174. data/lib/active_fedora/solr_service.rb +44 -2
  175. data/lib/fedora/base.rb +38 -0
  176. data/lib/fedora/connection.rb +210 -0
  177. data/lib/fedora/datastream.rb +56 -0
  178. data/lib/fedora/fedora_object.rb +161 -0
  179. data/lib/fedora/formats.rb +30 -0
  180. data/lib/fedora/generic_search.rb +71 -0
  181. data/lib/fedora/repository.rb +287 -0
  182. data/lib/ruby-fedora.rb +20 -0
  183. data/lib/util/class_level_inheritable_attributes.rb +23 -0
  184. data/script/console +15 -0
  185. data/script/destroy +14 -0
  186. data/script/generate +14 -0
  187. data/solr/config/schema-1.5.xml +468 -0
  188. data/solr/config/schema.xml +174 -212
  189. data/solr/config/solrconfig-1.5.xml +1069 -0
  190. data/spec/active_fedora_spec.rb +7 -0
  191. data/spec/fixtures/changeme155.xml +255 -0
  192. data/spec/fixtures/dino.jpg +0 -0
  193. data/spec/fixtures/minivan.jpg +0 -0
  194. data/spec/fixtures/test_12.foxml.xml +121 -0
  195. data/spec/integration/base_file_management_spec.rb +20 -0
  196. data/spec/integration/base_spec.rb +196 -0
  197. data/spec/integration/bug_spec.rb +57 -0
  198. data/spec/integration/datastream_spec.rb +60 -0
  199. data/spec/integration/datastreams_crud_spec.rb +208 -0
  200. data/spec/integration/fedora_object_spec.rb +77 -0
  201. data/spec/integration/full_featured_model_spec.rb +207 -0
  202. data/spec/integration/model_spec.rb +54 -0
  203. data/spec/integration/rels_ext_datastream_spec.rb +67 -0
  204. data/spec/integration/repository_spec.rb +297 -0
  205. data/spec/integration/rf_fedora_object_spec.rb +95 -0
  206. data/spec/integration/semantic_node_spec.rb +95 -0
  207. data/spec/integration/solr_service_spec.rb +33 -0
  208. data/spec/samples/models/audio_record.rb +29 -0
  209. data/spec/samples/models/image.rb +5 -0
  210. data/spec/samples/models/oral_history.rb +50 -0
  211. data/spec/samples/models/seminar.rb +29 -0
  212. data/spec/samples/models/seminar_audio_file.rb +34 -0
  213. data/spec/samples/oh_qdc.xml +32 -0
  214. data/spec/samples/oral_history_sample.xml +38 -0
  215. data/spec/samples/oral_history_sample_model.rb +39 -0
  216. data/spec/samples/oral_history_xml.xml +35 -0
  217. data/spec/spec.opts +5 -0
  218. data/spec/spec_helper.rb +41 -0
  219. data/spec/unit/active_fedora_spec.rb +15 -0
  220. data/spec/unit/base_cma_spec.rb +25 -0
  221. data/spec/unit/base_datastream_management_spec.rb +119 -0
  222. data/spec/unit/base_extra_spec.rb +108 -0
  223. data/spec/unit/base_file_management_spec.rb +90 -0
  224. data/spec/unit/base_loader_spec.rb +43 -0
  225. data/spec/unit/base_spec.rb +584 -0
  226. data/spec/unit/connection_spec.rb +25 -0
  227. data/spec/unit/content_model_spec.rb +51 -0
  228. data/spec/unit/datastream_concurrency_spec.rb +59 -0
  229. data/spec/unit/datastream_spec.rb +85 -0
  230. data/spec/unit/fedora_object_spec.rb +66 -0
  231. data/spec/unit/inheritance_spec.rb +46 -0
  232. data/spec/unit/metadata_datastream_spec.rb +290 -0
  233. data/spec/unit/model_spec.rb +186 -0
  234. data/spec/unit/property_spec.rb +50 -0
  235. data/spec/unit/qualified_dublin_core_datastream_spec.rb +177 -0
  236. data/spec/unit/relationship_spec.rb +77 -0
  237. data/spec/unit/rels_ext_datastream_spec.rb +99 -0
  238. data/spec/unit/repository_spec.rb +136 -0
  239. data/spec/unit/rf_datastream_spec.rb +49 -0
  240. data/spec/unit/semantic_node_spec.rb +354 -0
  241. data/spec/unit/solr_config_options_spec.rb +98 -0
  242. data/spec/unit/solr_mapper_spec.rb +31 -0
  243. data/spec/unit/solr_service_spec.rb +83 -0
  244. data/tasks/hoe.rake +0 -0
  245. data/tasks/rspec.rake +29 -0
  246. metadata +373 -55
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "ActiveFedora" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
@@ -0,0 +1,255 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="changeme:551"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-11-19T18:18:45.334Z"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2008-11-19T18:18:49.003Z"/>
11
+ </foxml:objectProperties>
12
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
13
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2008-11-19T18:18:45.334Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
14
+ <foxml:xmlContent>
15
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
16
+ <audit:record ID="AUDREC1">
17
+ <audit:process type="Fedora API-M"/>
18
+ <audit:action>modifyObject</audit:action>
19
+ <audit:componentID></audit:componentID>
20
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
21
+ <audit:date>2008-11-19T18:18:45.740Z</audit:date>
22
+ <audit:justification></audit:justification>
23
+ </audit:record>
24
+ <audit:record ID="AUDREC2">
25
+ <audit:process type="Fedora API-M"/>
26
+ <audit:action>addDatastream</audit:action>
27
+ <audit:componentID>Addelson_Frances19971114_Tape_4of4.mp3</audit:componentID>
28
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
29
+ <audit:date>2008-11-19T18:18:45.863Z</audit:date>
30
+ <audit:justification></audit:justification>
31
+ </audit:record>
32
+ <audit:record ID="AUDREC3">
33
+ <audit:process type="Fedora API-M"/>
34
+ <audit:action>addDatastream</audit:action>
35
+ <audit:componentID>Addelson_Frances19971114_Tape_2of4.mp3</audit:componentID>
36
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
37
+ <audit:date>2008-11-19T18:18:46.053Z</audit:date>
38
+ <audit:justification></audit:justification>
39
+ </audit:record>
40
+ <audit:record ID="AUDREC4">
41
+ <audit:process type="Fedora API-M"/>
42
+ <audit:action>addDatastream</audit:action>
43
+ <audit:componentID>Addelson_Frances19971114_Tape_3of4.mp3</audit:componentID>
44
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
45
+ <audit:date>2008-11-19T18:18:46.319Z</audit:date>
46
+ <audit:justification></audit:justification>
47
+ </audit:record>
48
+ <audit:record ID="AUDREC5">
49
+ <audit:process type="Fedora API-M"/>
50
+ <audit:action>addDatastream</audit:action>
51
+ <audit:componentID>Addelson_Frances19971114_Tape_1of4.mp3</audit:componentID>
52
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
53
+ <audit:date>2008-11-19T18:18:46.472Z</audit:date>
54
+ <audit:justification></audit:justification>
55
+ </audit:record>
56
+ <audit:record ID="AUDREC6">
57
+ <audit:process type="Fedora API-M"/>
58
+ <audit:action>addDatastream</audit:action>
59
+ <audit:componentID>Addelson_Frances19971114_FINAL.doc</audit:componentID>
60
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
61
+ <audit:date>2008-11-19T18:18:46.631Z</audit:date>
62
+ <audit:justification></audit:justification>
63
+ </audit:record>
64
+ <audit:record ID="AUDREC7">
65
+ <audit:process type="Fedora API-M"/>
66
+ <audit:action>addDatastream</audit:action>
67
+ <audit:componentID>sensitive_passages</audit:componentID>
68
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
69
+ <audit:date>2008-11-19T18:18:46.808Z</audit:date>
70
+ <audit:justification></audit:justification>
71
+ </audit:record>
72
+ <audit:record ID="AUDREC8">
73
+ <audit:process type="Fedora API-M"/>
74
+ <audit:action>addDatastream</audit:action>
75
+ <audit:componentID>significant_passages</audit:componentID>
76
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
77
+ <audit:date>2008-11-19T18:18:47.297Z</audit:date>
78
+ <audit:justification></audit:justification>
79
+ </audit:record>
80
+ <audit:record ID="AUDREC9">
81
+ <audit:process type="Fedora API-M"/>
82
+ <audit:action>addDatastream</audit:action>
83
+ <audit:componentID>metadata.csv</audit:componentID>
84
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
85
+ <audit:date>2008-11-19T18:18:47.894Z</audit:date>
86
+ <audit:justification></audit:justification>
87
+ </audit:record>
88
+ <audit:record ID="AUDREC10">
89
+ <audit:process type="Fedora API-M"/>
90
+ <audit:action>addDatastream</audit:action>
91
+ <audit:componentID>Addelson_Frances19971114_META.xls</audit:componentID>
92
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
93
+ <audit:date>2008-11-19T18:18:48.061Z</audit:date>
94
+ <audit:justification></audit:justification>
95
+ </audit:record>
96
+ <audit:record ID="AUDREC11">
97
+ <audit:process type="Fedora API-M"/>
98
+ <audit:action>addDatastream</audit:action>
99
+ <audit:componentID>Addelson_Frances19971114_FINAL.pdf</audit:componentID>
100
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
101
+ <audit:date>2008-11-19T18:18:48.227Z</audit:date>
102
+ <audit:justification></audit:justification>
103
+ </audit:record>
104
+ <audit:record ID="AUDREC12">
105
+ <audit:process type="Fedora API-M"/>
106
+ <audit:action>addDatastream</audit:action>
107
+ <audit:componentID>Addelson_Frances19971114.xml</audit:componentID>
108
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
109
+ <audit:date>2008-11-19T18:18:48.391Z</audit:date>
110
+ <audit:justification></audit:justification>
111
+ </audit:record>
112
+ <audit:record ID="AUDREC13">
113
+ <audit:process type="Fedora API-M"/>
114
+ <audit:action>addDatastream</audit:action>
115
+ <audit:componentID>properties</audit:componentID>
116
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
117
+ <audit:date>2008-11-19T18:18:48.542Z</audit:date>
118
+ <audit:justification></audit:justification>
119
+ </audit:record>
120
+ <audit:record ID="AUDREC14">
121
+ <audit:process type="Fedora API-M"/>
122
+ <audit:action>addDatastream</audit:action>
123
+ <audit:componentID>dublin_core</audit:componentID>
124
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
125
+ <audit:date>2008-11-19T18:18:49.003Z</audit:date>
126
+ <audit:justification></audit:justification>
127
+ </audit:record>
128
+ </audit:auditTrail>
129
+ </foxml:xmlContent>
130
+ </foxml:datastreamVersion>
131
+ </foxml:datastream>
132
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
133
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2008-11-19T18:18:45.334Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="187">
134
+ <foxml:xmlContent>
135
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/">
136
+ <dc:identifier>changeme:551</dc:identifier>
137
+ </oai_dc:dc>
138
+ </foxml:xmlContent>
139
+ </foxml:datastreamVersion>
140
+ </foxml:datastream>
141
+ <foxml:datastream ID="Addelson_Frances19971114_Tape_4of4.mp3" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
142
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_Tape_4of4.mp3.0" LABEL="Addelson_Frances19971114_Tape_4of4.mp3" CREATED="2008-11-19T18:18:45.863Z" MIMETYPE="audio/mpeg">
143
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_Tape_4of4.mp3+Addelson_Frances19971114_Tape_4of4.mp3.0"/>
144
+ </foxml:datastreamVersion>
145
+ </foxml:datastream>
146
+ <foxml:datastream ID="Addelson_Frances19971114_Tape_2of4.mp3" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
147
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_Tape_2of4.mp3.0" LABEL="Addelson_Frances19971114_Tape_2of4.mp3" CREATED="2008-11-19T18:18:46.053Z" MIMETYPE="audio/mpeg">
148
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_Tape_2of4.mp3+Addelson_Frances19971114_Tape_2of4.mp3.0"/>
149
+ </foxml:datastreamVersion>
150
+ </foxml:datastream>
151
+ <foxml:datastream ID="Addelson_Frances19971114_Tape_3of4.mp3" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
152
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_Tape_3of4.mp3.0" LABEL="Addelson_Frances19971114_Tape_3of4.mp3" CREATED="2008-11-19T18:18:46.319Z" MIMETYPE="audio/mpeg">
153
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_Tape_3of4.mp3+Addelson_Frances19971114_Tape_3of4.mp3.0"/>
154
+ </foxml:datastreamVersion>
155
+ </foxml:datastream>
156
+ <foxml:datastream ID="Addelson_Frances19971114_Tape_1of4.mp3" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
157
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_Tape_1of4.mp3.0" LABEL="Addelson_Frances19971114_Tape_1of4.mp3" CREATED="2008-11-19T18:18:46.472Z" MIMETYPE="audio/mpeg">
158
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_Tape_1of4.mp3+Addelson_Frances19971114_Tape_1of4.mp3.0"/>
159
+ </foxml:datastreamVersion>
160
+ </foxml:datastream>
161
+ <foxml:datastream ID="Addelson_Frances19971114_FINAL.doc" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
162
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_FINAL.doc.0" LABEL="Addelson_Frances19971114_FINAL.doc" CREATED="2008-11-19T18:18:46.631Z" MIMETYPE="application/msword">
163
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_FINAL.doc+Addelson_Frances19971114_FINAL.doc.0"/>
164
+ </foxml:datastreamVersion>
165
+ </foxml:datastream>
166
+ <foxml:datastream ID="sensitive_passages" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
167
+ <foxml:datastreamVersion ID="sensitive_passages.0" LABEL="" CREATED="2008-11-19T18:18:46.808Z" MIMETYPE="text/xml" SIZE="156">
168
+ <foxml:xmlContent>
169
+ <fields>
170
+ <sensitive_passage>Pg. 83-86. Some might find the discussion of abortion sensitive or controversial.</sensitive_passage>
171
+ </fields>
172
+ </foxml:xmlContent>
173
+ </foxml:datastreamVersion>
174
+ </foxml:datastream>
175
+ <foxml:datastream ID="significant_passages" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
176
+ <foxml:datastreamVersion ID="significant_passages.0" LABEL="" CREATED="2008-11-19T18:18:47.297Z" MIMETYPE="text/xml" SIZE="252">
177
+ <foxml:xmlContent>
178
+ <fields>
179
+ <significant_passage>Pg. 83-86. Frances talks about her work as a social worker at Beth Israel Hospital, where she counseled women who came seeking abortions before they were federally legalized.</significant_passage>
180
+ </fields>
181
+ </foxml:xmlContent>
182
+ </foxml:datastreamVersion>
183
+ </foxml:datastream>
184
+ <foxml:datastream ID="metadata.csv" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
185
+ <foxml:datastreamVersion ID="metadata.csv.0" LABEL="metadata.csv" CREATED="2008-11-19T18:18:47.894Z" MIMETYPE="text/csv">
186
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+metadata.csv+metadata.csv.0"/>
187
+ </foxml:datastreamVersion>
188
+ </foxml:datastream>
189
+ <foxml:datastream ID="Addelson_Frances19971114_META.xls" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
190
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_META.xls.0" LABEL="Addelson_Frances19971114_META.xls" CREATED="2008-11-19T18:18:48.061Z" MIMETYPE="application/vnd.ms-excel">
191
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_META.xls+Addelson_Frances19971114_META.xls.0"/>
192
+ </foxml:datastreamVersion>
193
+ </foxml:datastream>
194
+ <foxml:datastream ID="Addelson_Frances19971114_FINAL.pdf" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
195
+ <foxml:datastreamVersion ID="Addelson_Frances19971114_FINAL.pdf.0" LABEL="Addelson_Frances19971114_FINAL.pdf" CREATED="2008-11-19T18:18:48.227Z" MIMETYPE="application/pdf">
196
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114_FINAL.pdf+Addelson_Frances19971114_FINAL.pdf.0"/>
197
+ </foxml:datastreamVersion>
198
+ </foxml:datastream>
199
+ <foxml:datastream ID="Addelson_Frances19971114.xml" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
200
+ <foxml:datastreamVersion ID="Addelson_Frances19971114.xml.0" LABEL="Addelson_Frances19971114.xml" CREATED="2008-11-19T18:18:48.391Z" MIMETYPE="application/xml">
201
+ <foxml:contentLocation TYPE="INTERNAL_ID" REF="changeme:551+Addelson_Frances19971114.xml+Addelson_Frances19971114.xml.0"/>
202
+ </foxml:datastreamVersion>
203
+ </foxml:datastream>
204
+ <foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
205
+ <foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2008-11-19T18:18:48.542Z" MIMETYPE="text/xml" SIZE="2117">
206
+ <foxml:xmlContent>
207
+ <fields>
208
+ <narrator>Addelson, Frances</narrator>
209
+ <location>Boston, Massachusetts</location>
210
+ <interviewer>Ruthchild, Rochelle</interviewer>
211
+ <other_contributor>any other contributors, people or corporate names (eg. Temple Israel)</other_contributor>
212
+ <transcript_editor>Siegel, Cheryl</transcript_editor>
213
+ <bio>Rochelle Ruthchild interviewed Frances Addleson on October 18, November 14, and December 10, 1997. The interview thoroughly examined the trajectory of Frances&apos; life from birth until the time of the interview. As a young child, Frances&apos; father died during the influenza epidemic, and her mother was not equipped to care for her and her siblings. Consequently, they were placed in a Jewish foster home. Although her experience was mostly positive, this experience would leave life-long effects. Frances attended Radcliffe upon the urging of a mentor and later obtained her Master&apos;s degree in social work from Simmons College in 1954. In the 1940&apos;s, she returned to work while her children were still young; a rather unusual event for that time period. While working as a social worker at Beth Israel Hospital in the early 1970&apos;s, she helped counsel countless women who came to the hospital seeking abortions before the procedure was officially legalized during the landmark Roe vs. Wade decision in 1973. Frances would later write two articles that were published in medical journals about her experience during this time. Although not a very religious person, Frances felt connected to the Jewish notion of social justice and remained very active until an accident in the late 1990&apos;s.</bio>
214
+ <notes>Addelson, Frances. (1973?) &quot;The Induced Abortion,&quot; American Journal of Ortho-Psychiatry, Addelson, Frances. &quot;Abortion: Source of Guilt or Growth,&quot; National Journal of Gynecology and Obstetrics., Addelson, Frances. &quot;First Zionist Novel,&quot; Jewish Frontier.</notes>
215
+ <hard_copy_availability>Yes, please contact the Jewish Women&apos;s Archive for more information on using this source.</hard_copy_availability>
216
+ </fields>
217
+ </foxml:xmlContent>
218
+ </foxml:datastreamVersion>
219
+ </foxml:datastream>
220
+ <foxml:datastream ID="dublin_core" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
221
+ <foxml:datastreamVersion ID="dublin_core.0" LABEL="" CREATED="2008-11-19T18:18:49.003Z" MIMETYPE="text/xml" SIZE="2060">
222
+ <foxml:xmlContent>
223
+ <dc xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
224
+ <type xsi:type="DCMITYPE">sound</type>
225
+ <dcterms:creator>Jewish Women&apos;s Archive</dcterms:creator>
226
+ <dcterms:extent>987905000;01:35:34, 990201000;01:35:51, 983729000;01:35:10, 138986000:00:13:26</dcterms:extent>
227
+ <dcterms:date>1997 October 18 - December 10</dcterms:date>
228
+ <dcterms:spatial>Boston [7013445]</dcterms:spatial>
229
+ <dcterms:spatial>Dorchester [7013575]</dcterms:spatial>
230
+ <dcterms:spatial>Roxbury [7015002]</dcterms:spatial>
231
+ <dcterms:publisher>Jewish Women&apos;s Archive</dcterms:publisher>
232
+ <dcterms:format>audio/x-wav</dcterms:format>
233
+ <dcterms:alternative>Addelson_Frances19971114</dcterms:alternative>
234
+ <subject xsi:type="LCSH">Temple Israel (Boston, Mass.)</subject>
235
+ <subject xsi:type="LCSH">Abortion counseling</subject>
236
+ <subject xsi:type="LCSH">Working mothers</subject>
237
+ <subject xsi:type="LCSH">Judiasm</subject>
238
+ <subject xsi:type="LCSH">Jewish Families</subject>
239
+ <subject xsi:type="LCSH">Jewish children -- Institutional Care</subject>
240
+ <subject xsi:type="LCSH">Social service</subject>
241
+ <subject xsi:type="LCSH">Aging</subject>
242
+ <dcterms:medium>cassette tape</dcterms:medium>
243
+ <dcterms:temporal>1909-1997</dcterms:temporal>
244
+ <rights>Oral History of Frances Addelson by Jewish Women&apos;s Archive is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License. Permissions beyond the scope of this license may be available at http://jwa.org/contact.</rights>
245
+ <dcterms:language>English</dcterms:language>
246
+ <dcterms:title>Oral history with Frances Addelson, 1997 November 14</dcterms:title>
247
+ <dcterms:subject>families</dcterms:subject>
248
+ <dcterms:subject>Social Work</dcterms:subject>
249
+ <dcterms:subject>death</dcterms:subject>
250
+ <dcterms:description>The abstract should be a brief paragraph in which the first sentence contains the oral historian&apos;s name, the narrator&apos;s name, and the date which the interview was conducted.</dcterms:description>
251
+ </dc>
252
+ </foxml:xmlContent>
253
+ </foxml:datastreamVersion>
254
+ </foxml:datastream>
255
+ </foxml:digitalObject>
Binary file
Binary file
@@ -0,0 +1,121 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="test:12"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object for Document Transform Demo"/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
11
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2009-07-07T23:37:13.950Z"/>
12
+ </foxml:objectProperties>
13
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
14
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2008-07-02T05:09:42.015Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
15
+ <foxml:xmlContent>
16
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
17
+ <audit:record ID="AUDREC1">
18
+ <audit:process type="Fedora API-M"/>
19
+ <audit:action>ingest</audit:action>
20
+ <audit:componentID></audit:componentID>
21
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
22
+ <audit:date>2009-07-07T23:37:13.950Z</audit:date>
23
+ <audit:justification>Ingested from local file /Volumes/fedora-solr-testing/fedora/client/demo/foxml/local-server-demos/document-transform-demo/sdef_demo_12.xml</audit:justification>
24
+ </audit:record>
25
+ </audit:auditTrail>
26
+ </foxml:xmlContent>
27
+ </foxml:datastreamVersion>
28
+ </foxml:datastream>
29
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
30
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2008-07-02T05:09:42.515Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="413">
31
+ <foxml:xmlContent>
32
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
33
+ <dc:title>Service Definition Object for Document Transform Demo</dc:title>
34
+ <dc:identifier>test:12</dc:identifier>
35
+ </oai_dc:dc>
36
+ </foxml:xmlContent>
37
+ </foxml:datastreamVersion>
38
+ </foxml:datastream>
39
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
40
+ <foxml:datastreamVersion ID="RELS-EXT1.0" LABEL="RDF Statements about this object" CREATED="2008-07-02T05:09:42.578Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="356">
41
+ <foxml:xmlContent>
42
+ <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
43
+ <rdf:Description rdf:about="info:fedora/test:12">
44
+ <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"></fedora-model:hasModel>
45
+ </rdf:Description>
46
+ </rdf:RDF>
47
+ </foxml:xmlContent>
48
+ </foxml:datastreamVersion>
49
+ </foxml:datastream>
50
+ <foxml:datastream ID="METHODMAP" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
51
+ <foxml:datastreamVersion ID="METHODMAP1.0" LABEL="Abstract Method Map" CREATED="2008-07-02T05:09:42.515Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" SIZE="293">
52
+ <foxml:xmlContent>
53
+ <fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" name="Fedora MethodMap for NSDL Exhibit (Style 1)">
54
+ <fmm:Method operationName="getDocumentStyle1"></fmm:Method>
55
+ <fmm:Method operationName="getDocumentStyle2"></fmm:Method>
56
+ </fmm:MethodMap>
57
+ </foxml:xmlContent>
58
+ </foxml:datastreamVersion>
59
+ </foxml:datastream>
60
+ </foxml:digitalObject>
61
+ <?xml version="1.0" encoding="UTF-8"?>
62
+ <foxml:digitalObject VERSION="1.1" PID="demo:12"
63
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
64
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
65
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
66
+ <foxml:objectProperties>
67
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
68
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object for Document Transform Demo"/>
69
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
70
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
71
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2009-07-07T23:37:13.950Z"/>
72
+ </foxml:objectProperties>
73
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
74
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2008-07-02T05:09:42.015Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
75
+ <foxml:xmlContent>
76
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
77
+ <audit:record ID="AUDREC1">
78
+ <audit:process type="Fedora API-M"/>
79
+ <audit:action>ingest</audit:action>
80
+ <audit:componentID></audit:componentID>
81
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
82
+ <audit:date>2009-07-07T23:37:13.950Z</audit:date>
83
+ <audit:justification>Ingested from local file /Volumes/fedora-solr-testing/fedora/client/demo/foxml/local-server-demos/document-transform-demo/sdef_demo_12.xml</audit:justification>
84
+ </audit:record>
85
+ </audit:auditTrail>
86
+ </foxml:xmlContent>
87
+ </foxml:datastreamVersion>
88
+ </foxml:datastream>
89
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
90
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2008-07-02T05:09:42.515Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="413">
91
+ <foxml:xmlContent>
92
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
93
+ <dc:title>Service Definition Object for Document Transform Demo</dc:title>
94
+ <dc:identifier>demo:12</dc:identifier>
95
+ </oai_dc:dc>
96
+ </foxml:xmlContent>
97
+ </foxml:datastreamVersion>
98
+ </foxml:datastream>
99
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
100
+ <foxml:datastreamVersion ID="RELS-EXT1.0" LABEL="RDF Statements about this object" CREATED="2008-07-02T05:09:42.578Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="356">
101
+ <foxml:xmlContent>
102
+ <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
103
+ <rdf:Description rdf:about="info:fedora/demo:12">
104
+ <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"></fedora-model:hasModel>
105
+ </rdf:Description>
106
+ </rdf:RDF>
107
+ </foxml:xmlContent>
108
+ </foxml:datastreamVersion>
109
+ </foxml:datastream>
110
+ <foxml:datastream ID="METHODMAP" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
111
+ <foxml:datastreamVersion ID="METHODMAP1.0" LABEL="Abstract Method Map" CREATED="2008-07-02T05:09:42.515Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" SIZE="293">
112
+ <foxml:xmlContent>
113
+ <fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" name="Fedora MethodMap for NSDL Exhibit (Style 1)">
114
+ <fmm:Method operationName="getDocumentStyle1"></fmm:Method>
115
+ <fmm:Method operationName="getDocumentStyle2"></fmm:Method>
116
+ </fmm:MethodMap>
117
+ </foxml:xmlContent>
118
+ </foxml:datastreamVersion>
119
+ </foxml:datastream>
120
+ </foxml:digitalObject>
121
+ foo
@@ -0,0 +1,20 @@
1
+ require File.join( File.dirname(__FILE__), "../spec_helper" )
2
+
3
+ describe ActiveFedora::Base do
4
+
5
+ before(:each) do
6
+ @test_container = ActiveFedora::Base.new
7
+ @test_container.add_relationship(:has_collection_member, "foo:2")
8
+ @test_container.save
9
+ end
10
+
11
+ after(:each) do
12
+ @test_container.delete
13
+ end
14
+
15
+ it "should persist and re-load collection members" do
16
+ container_copy = ActiveFedora::Base.load_instance(@test_container.pid)
17
+ container_copy.collection_members(:response_format=>:id_array).should == ["foo:2"]
18
+ end
19
+
20
+ end
@@ -0,0 +1,196 @@
1
+ require File.join( File.dirname(__FILE__), "../spec_helper" )
2
+
3
+ describe ActiveFedora::Base do
4
+
5
+ before(:each) do
6
+ @test_object = ActiveFedora::Base.new
7
+ @test_object.save
8
+ end
9
+
10
+ after(:each) do
11
+ @test_object.delete
12
+ end
13
+
14
+
15
+ it "calling constructor should create a new Fedora Object" do
16
+ @test_object.should have(0).errors
17
+ @test_object.pid.should_not be_nil
18
+ end
19
+
20
+ describe ".save" do
21
+ before(:each) do
22
+ @test_object2 = ActiveFedora::Base.new
23
+ end
24
+
25
+ after(:each) do
26
+ @test_object2.delete
27
+ end
28
+
29
+ it "should set the CMA hasModel relationship in the Rels-EXT" do
30
+ @test_object2.save
31
+ rexml = REXML::Document.new(@test_object.datastreams_in_fedora["RELS-EXT"].content)
32
+ # Purpose: confirm that the isMemberOf entries exist and have real RDF in them
33
+ rexml.root.elements["rdf:Description/hasModel"].attributes["rdf:resource"].should == 'info:fedora/afmodel:ActiveFedora_Base'
34
+ end
35
+ it "should merge attributes from fedora into attributes hash" do
36
+ inner_object = @test_object2.inner_object
37
+ inner_object.attributes.should == {:pid=>@test_object2.pid}
38
+ @test_object2.save
39
+ inner_object.attributes.should have_key(:state)
40
+ inner_object.attributes.should have_key(:create_date)
41
+ inner_object.attributes.should have_key(:modified_date)
42
+ inner_object.attributes.should have_key(:owner_id)
43
+ inner_object.state.should == "A"
44
+ inner_object.owner_id.should == "fedoraAdmin"
45
+ end
46
+ end
47
+
48
+ describe "#load_instance" do
49
+ it "should return an object loaded from fedora" do
50
+ result = ActiveFedora::Base.load_instance(@test_object.pid)
51
+ result.should be_instance_of(ActiveFedora::Base)
52
+ end
53
+ end
54
+
55
+ describe ".datastreams_in_fedora" do
56
+ it "should return a Hash of datastreams from fedora" do
57
+ datastreams = @test_object.datastreams_in_fedora
58
+ datastreams.should be_an_instance_of(Hash)
59
+ datastreams.each_value do |ds|
60
+ ds.should be_a_kind_of(ActiveFedora::Datastream)
61
+ end
62
+ @test_object.datastreams_in_fedora["DC"].should be_an_instance_of(ActiveFedora::Datastream)
63
+ datastreams["DC"].should_not be_nil
64
+ datastreams["DC"].should be_an_instance_of(ActiveFedora::Datastream)
65
+ end
66
+ it "should initialize the datastream pointers with @new_object=false" do
67
+ datastreams = @test_object.datastreams_in_fedora
68
+ datastreams.each_value do |ds|
69
+ ds.new_object?.should be_false
70
+ end
71
+ end
72
+ end
73
+
74
+ describe ".metadata_streams" do
75
+ it "should return all of the datastreams from the object that are kinds of MetadataDatastreams " do
76
+ mds1 = ActiveFedora::MetadataDatastream.new(:dsid => "md1")
77
+ mds2 = ActiveFedora::QualifiedDublinCoreDatastream.new(:dsid => "qdc")
78
+ fds = ActiveFedora::Datastream.new(:dsid => "fds")
79
+ @test_object.add_datastream(mds1)
80
+ @test_object.add_datastream(mds2)
81
+ @test_object.add_datastream(fds)
82
+
83
+ result = @test_object.metadata_streams
84
+ result.length.should == 2
85
+ result.should include(mds1)
86
+ result.should include(mds2)
87
+ end
88
+ end
89
+
90
+ describe ".file_streams" do
91
+ it "should return all of the datastreams from the object that are kinds of MetadataDatastreams" do
92
+ fds1 = ActiveFedora::Datastream.new(:dsid => "fds1")
93
+ fds2 = ActiveFedora::Datastream.new(:dsid => "fds2")
94
+ mds = ActiveFedora::MetadataDatastream.new(:dsid => "mds")
95
+ @test_object.add_datastream(fds1)
96
+ @test_object.add_datastream(fds2)
97
+ @test_object.add_datastream(mds)
98
+
99
+ result = @test_object.file_streams
100
+ result.length.should == 2
101
+ result.should include(fds1)
102
+ result.should include(fds2)
103
+ end
104
+ it "should skip DC and RELS-EXT datastreams" do
105
+ fds1 = ActiveFedora::Datastream.new(:dsid => "fds1")
106
+ dc = ActiveFedora::Datastream.new(:dsid => "DC")
107
+ rels_ext = ActiveFedora::RelsExtDatastream.new
108
+ @test_object.add_datastream(fds1)
109
+ @test_object.add_datastream(dc)
110
+ @test_object.add_datastream(rels_ext)
111
+ @test_object.file_streams.should == [fds1]
112
+ end
113
+ end
114
+
115
+ describe ".dc" do
116
+ it "should expose the DC datastream" do
117
+ dc = @test_object.dc
118
+ dc.should be_a_kind_of(ActiveFedora::Datastream)
119
+ #dc["identifier"].should_not be_nil
120
+ rexml = REXML::Document.new(dc.content)
121
+ rexml.root.elements["dc:identifier"].get_text.should_not be_nil
122
+ #dc.elements["dc:identifier"].should_not be_nil
123
+ end
124
+ end
125
+
126
+
127
+ describe '.rels_ext' do
128
+ it "should retrieve RelsExtDatastream object via rels_ext method" do
129
+ @test_object.rels_ext.should be_instance_of(ActiveFedora::RelsExtDatastream)
130
+ end
131
+
132
+ it 'should create the RELS-EXT datastream if it doesnt exist' do
133
+ test_object = ActiveFedora::Base.new
134
+ test_object.datastreams["RELS-EXT"].should == nil
135
+ test_object.rels_ext
136
+ test_object.datastreams_in_memory["RELS-EXT"].should_not == nil
137
+ test_object.datastreams_in_memory["RELS-EXT"].class.should == ActiveFedora::RelsExtDatastream
138
+ end
139
+ end
140
+
141
+ describe '.add_relationship' do
142
+ it "should update the RELS-EXT datastream and relationships should end up in Fedora when the object is saved" do
143
+ test_relationships = [ActiveFedora::Relationship.new(:subject => :self, :predicate => :is_member_of, :object => "info:fedora/demo:5"),
144
+ ActiveFedora::Relationship.new(:subject => :self, :predicate => :is_member_of, :object => "info:fedora/demo:10"),
145
+ ActiveFedora::Relationship.new(:subject => :self, :predicate => :conforms_to, :object => "info:fedora/afmodel:OralHistory")]
146
+ test_relationships.each do |rel|
147
+ @test_object.add_relationship(rel.predicate, rel.object)
148
+ end
149
+ @test_object.save
150
+ rexml = REXML::Document.new(@test_object.datastreams_in_fedora["RELS-EXT"].content)
151
+ # Purpose: confirm that the isMemberOf entries exist and have real RDF in them
152
+ rexml.root.elements["rdf:Description/isMemberOf[@rdf:resource='info:fedora/demo:5']"].attributes["xmlns"].should == 'info:fedora/fedora-system:def/relations-external#'
153
+ rexml.root.elements["rdf:Description/isMemberOf[@rdf:resource='info:fedora/demo:10']"].attributes["xmlns"].should == 'info:fedora/fedora-system:def/relations-external#'
154
+ end
155
+ end
156
+
157
+ describe '.add_datastream' do
158
+
159
+ it "should be able to add datastreams" do
160
+ ds = ActiveFedora::Datastream.new(:dsID => 'DS1', :dsLabel => 'hello', :altIDs => '3333',
161
+ :controlGroup => 'M', :blob => fixture('dino.jpg'))
162
+ @test_object.add_datastream(ds).should be_true
163
+ end
164
+
165
+ it "adding and saving should add the datastream to the datastreams_in_fedora array" do
166
+ ds = ActiveFedora::Datastream.new(:dsid => 'DS1', :dsLabel => 'hello', :altIDs => '3333',
167
+ :controlGroup => 'M', :blob => fixture('dino.jpg'))
168
+ @test_object.datastreams.should_not have_key("DS1")
169
+ @test_object.add_datastream(ds)
170
+ ds.save
171
+ @test_object.datastreams_in_fedora.should have_key("DS1")
172
+ end
173
+
174
+ end
175
+
176
+ it "should retrieve blobs that match the saved blobs" do
177
+ ds = ActiveFedora::Datastream.new(:dsid => 'DS1', :dsLabel => 'hello', :altIDs => '3333',
178
+ :controlGroup => 'M', :blob => fixture('dino.jpg'))
179
+ @test_object.add_datastream(ds)
180
+ ds.save
181
+ @test_object.datastreams_in_fedora["DS1"].content.should == ds.content
182
+ end
183
+
184
+ describe ".create_date" do
185
+ it "should return W3C date" do
186
+ @test_object.create_date.should_not be_nil
187
+ end
188
+ end
189
+
190
+ describe ".modified_date" do
191
+ it "should return nil before saving and a W3C date after saving" do
192
+ @test_object.modified_date.should_not be_nil
193
+ end
194
+ end
195
+
196
+ end