sufia 0.0.1.pre2 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. data/Gemfile +2 -5
  2. data/README.md +44 -12
  3. data/app/assets/javascripts/{scholarsphere.js → sufia.js} +0 -0
  4. data/app/assets/stylesheets/{scholarsphere.css → sufia.css} +0 -0
  5. data/app/controllers/batch_controller.rb +2 -3
  6. data/app/controllers/batch_edits_controller.rb +4 -4
  7. data/app/controllers/dashboard_controller.rb +5 -3
  8. data/app/controllers/generic_files_controller.rb +77 -41
  9. data/app/controllers/users_controller.rb +9 -21
  10. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +2 -2
  11. data/app/helpers/sufia_helper.rb +23 -2
  12. data/app/models/datastreams/file_content_datastream.rb +17 -9
  13. data/app/models/generic_file.rb +1 -809
  14. data/app/views/_add_assets_links.html.erb +1 -1
  15. data/app/views/_user_util_links.html.erb +2 -2
  16. data/app/views/batch/_metadata.html.erb +16 -16
  17. data/app/views/batch/edit.html.erb +16 -10
  18. data/app/views/batch_edits/_metadata.html.erb +16 -16
  19. data/app/views/catalog/_index_partials/_list_files.html.erb +2 -2
  20. data/app/views/catalog/index.html.erb +5 -0
  21. data/app/views/dashboard/_facet_limit.html.erb +1 -1
  22. data/app/views/dashboard/_facet_pagination.html.erb +4 -4
  23. data/app/views/dashboard/_facet_selected.html.erb +1 -1
  24. data/app/views/dashboard/_index_partials/_list_files.html.erb +8 -8
  25. data/app/views/dashboard/_search_form.html.erb +1 -1
  26. data/app/views/dashboard/_sort_and_per_page.html.erb +1 -1
  27. data/app/views/dashboard/index.html.erb +0 -1
  28. data/app/views/generic_files/_breadcrumbs.html.erb +1 -1
  29. data/app/views/generic_files/_descriptions.html.erb +3 -3
  30. data/app/views/generic_files/_field_form +3 -3
  31. data/app/views/generic_files/_media_display.html.erb +5 -4
  32. data/app/views/generic_files/_permission.html.erb +5 -5
  33. data/app/views/generic_files/_versioning.html.erb +1 -1
  34. data/app/views/generic_files/edit.html.erb +2 -2
  35. data/app/views/generic_files/show.html.erb +3 -3
  36. data/app/views/static/versions.html.erb +1 -1
  37. data/app/views/users/edit.html.erb +5 -3
  38. data/app/views/users/index.html.erb +3 -3
  39. data/app/views/users/show.html.erb +6 -6
  40. data/config/jetty.yml +6 -0
  41. data/config/routes.rb +8 -4
  42. data/features/browse_dashboard_files.feature +11 -1
  43. data/features/browse_files.feature +6 -5
  44. data/features/contact_form.feature +4 -0
  45. data/features/display_dashboard.feature +6 -3
  46. data/features/ingest_upload_files.feature +2 -2
  47. data/features/step_definitions/fixture_steps.rb +6 -5
  48. data/features/step_definitions/scholarsphere.rb +24 -1
  49. data/features/step_definitions/user_steps.rb +2 -2
  50. data/features/step_definitions/web_steps.rb +1 -1
  51. data/features/support/env.rb +26 -0
  52. data/features/users.feature +18 -0
  53. data/lib/active_support/core_ext/marshal.rb +22 -0
  54. data/lib/generators/sufia/sufia_generator.rb +18 -2
  55. data/lib/generators/sufia/templates/catalog_controller.rb +3 -4
  56. data/{spec/support → lib/generators/sufia/templates}/config/redis.yml +0 -0
  57. data/lib/generators/sufia/templates/config/sufia.rb +68 -0
  58. data/lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb +41 -0
  59. data/lib/kaminari/helpers/tag.rb +11 -0
  60. data/lib/sufia.rb +30 -7
  61. data/lib/sufia/controller.rb +1 -5
  62. data/lib/sufia/generic_file.rb +200 -0
  63. data/lib/sufia/generic_file/audit.rb +119 -0
  64. data/lib/sufia/generic_file/characterization.rb +82 -0
  65. data/lib/sufia/generic_file/export.rb +339 -0
  66. data/lib/sufia/generic_file/permissions.rb +64 -0
  67. data/lib/sufia/generic_file/thumbnail.rb +68 -0
  68. data/{app/models → lib/sufia/jobs}/audit_job.rb +13 -3
  69. data/lib/sufia/jobs/batch_update_job.rb +86 -0
  70. data/lib/sufia/jobs/characterize_job.rb +35 -0
  71. data/{app/models → lib/sufia/jobs}/content_delete_event_job.rb +3 -1
  72. data/{app/models → lib/sufia/jobs}/content_deposit_event_job.rb +1 -1
  73. data/{app/models → lib/sufia/jobs}/content_new_version_event_job.rb +1 -1
  74. data/{app/models → lib/sufia/jobs}/content_restored_version_event_job.rb +8 -0
  75. data/{app/models → lib/sufia/jobs}/content_update_event_job.rb +1 -1
  76. data/{app/models → lib/sufia/jobs}/event_job.rb +7 -3
  77. data/{app/models → lib/sufia/jobs}/resolrize_job.rb +4 -2
  78. data/lib/sufia/jobs/transcode_video_job.rb +79 -0
  79. data/{app/models → lib/sufia/jobs}/unzip_job.rb +11 -3
  80. data/{app/models → lib/sufia/jobs}/user_edit_profile_event_job.rb +6 -0
  81. data/{app/models → lib/sufia/jobs}/user_follow_event_job.rb +9 -4
  82. data/{app/models → lib/sufia/jobs}/user_unfollow_event_job.rb +6 -0
  83. data/lib/sufia/queue/resque.rb +30 -0
  84. data/lib/sufia/role_mapper.rb +0 -1
  85. data/{app/models/characterize_job.rb → lib/sufia/solr_document_behavior.rb} +6 -7
  86. data/lib/sufia/user.rb +3 -3
  87. data/lib/sufia/version.rb +1 -1
  88. data/lib/tasks/fixtures.rake +38 -38
  89. data/lib/tasks/resque.rake +1 -0
  90. data/solr_conf/conf/solrconfig.xml +32 -1615
  91. data/solr_conf/solr.xml +1 -1
  92. data/spec/active_fedora/unsaved_digital_object_spec.rb +4 -4
  93. data/spec/config/host_to_vhost_spec.rb +4 -4
  94. data/spec/controllers/authorities_controller_spec.rb +1 -1
  95. data/spec/controllers/batch_controller_spec.rb +12 -10
  96. data/spec/controllers/catalog_controller_spec.rb +13 -13
  97. data/spec/controllers/dashboard_controller_spec.rb +15 -15
  98. data/spec/controllers/downloads_controller_spec.rb +14 -14
  99. data/spec/controllers/generic_files_controller_spec.rb +88 -46
  100. data/spec/controllers/mailbox_controller_spec.rb +2 -2
  101. data/spec/controllers/sessions_controller_spec.rb +1 -1
  102. data/spec/controllers/single_use_link_controller_spec.rb +18 -18
  103. data/spec/controllers/users_controller_spec.rb +47 -31
  104. data/spec/fixtures/countdown.avi +0 -0
  105. data/spec/fixtures/sufia/.gitignore +1 -0
  106. data/spec/fixtures/{scholarsphere → sufia}/bg_header.jpg +0 -0
  107. data/spec/fixtures/sufia/sufia_test1.descMeta.txt +12 -0
  108. data/spec/fixtures/{scholarsphere → sufia}/sufia_test1.foxml.erb +2 -2
  109. data/spec/fixtures/{scholarsphere/scholarsphere_test1.txt → sufia/sufia_test1.txt} +0 -0
  110. data/spec/fixtures/sufia/sufia_test2.descMeta.txt +12 -0
  111. data/spec/fixtures/{scholarsphere/scholarsphere_test2.docx → sufia/sufia_test2.docx} +0 -0
  112. data/spec/fixtures/{scholarsphere/scholarsphere_test2.foxml.erb → sufia/sufia_test2.foxml.erb} +6 -6
  113. data/spec/fixtures/sufia/sufia_test3.descMeta.txt +12 -0
  114. data/spec/fixtures/{scholarsphere/scholarsphere_test3.foxml.erb → sufia/sufia_test3.foxml.erb} +6 -6
  115. data/spec/fixtures/{scholarsphere/scholarsphere_test3.xls → sufia/sufia_test3.xls} +0 -0
  116. data/spec/fixtures/sufia/sufia_test4.descMeta.txt +12 -0
  117. data/spec/fixtures/{scholarsphere/scholarsphere_test4.foxml.erb → sufia/sufia_test4.foxml.erb} +6 -6
  118. data/spec/fixtures/{scholarsphere/scholarsphere_test4.pdf → sufia/sufia_test4.pdf} +0 -0
  119. data/spec/fixtures/sufia/sufia_test5.descMeta.txt +19 -0
  120. data/spec/fixtures/{scholarsphere → sufia}/sufia_test5.foxml.erb +3 -3
  121. data/spec/fixtures/{scholarsphere/scholarsphere_test5.mp3 → sufia/sufia_test5.mp3} +0 -0
  122. data/spec/fixtures/sufia/sufia_test5.txt +1 -0
  123. data/spec/fixtures/sufia/sufia_test6.descMeta.txt +12 -0
  124. data/spec/fixtures/{scholarsphere/scholarsphere_test6.foxml.erb → sufia/sufia_test6.foxml.erb} +6 -6
  125. data/spec/fixtures/{scholarsphere/scholarsphere_test6.jp2 → sufia/sufia_test6.jp2} +0 -0
  126. data/spec/fixtures/sufia/sufia_test6.txt +1 -0
  127. data/spec/fixtures/sufia_generic_stub.descMeta.txt +12 -0
  128. data/spec/fixtures/{scholarsphere_generic_stub.foxml.erb → sufia_generic_stub.foxml.erb} +3 -3
  129. data/spec/fixtures/sufia_generic_stub.txt +1 -0
  130. data/spec/lib/sufia/role_mapper_spec.rb +1 -1
  131. data/spec/models/audit_job_spec.rb +8 -11
  132. data/spec/models/batch_spec.rb +5 -5
  133. data/spec/models/batch_update_job_spec.rb +18 -15
  134. data/spec/models/checksum_audit_log_spec.rb +6 -19
  135. data/spec/models/event_jobs_spec.rb +23 -23
  136. data/spec/models/file_content_datastream_spec.rb +14 -14
  137. data/spec/models/fits_datastream_spec.rb +1 -1
  138. data/spec/models/generic_file_spec.rb +88 -41
  139. data/spec/models/single_use_link_spec.rb +3 -3
  140. data/spec/models/transcode_video_job_spec.rb +30 -0
  141. data/spec/models/unzip_job_spec.rb +6 -4
  142. data/spec/rake/{scholarsphere_fixtures_spec.rb → sufia_fixtures_spec.rb} +16 -16
  143. data/spec/routing/route_spec.rb +4 -8
  144. data/spec/spec_helper.rb +0 -7
  145. data/spec/support/Gemfile +4 -2
  146. data/spec/support/fedora_conf/fedora.fcfg +953 -0
  147. data/spec/support/lib/generators/test_app_generator.rb +1 -11
  148. data/sufia.gemspec +5 -3
  149. data/tasks/{scholarsphere-db.rake → sufia-db.rake} +1 -1
  150. data/tasks/{scholarsphere-dev.rake → sufia-dev.rake} +7 -3
  151. data/tasks/{scholarsphere-fixtures.rake → sufia-fixtures.rake} +43 -43
  152. data/tasks/{scholarsphere.rake → sufia.rake} +2 -2
  153. metadata +126 -95
  154. data/app/models/batch_update_job.rb +0 -82
  155. data/app/models/solr_document.rb +0 -50
  156. data/lib/sufia/permissions.rb +0 -43
  157. data/spec/fixtures/scholarsphere/scholarsphere_test1.descMeta.txt +0 -12
  158. data/spec/fixtures/scholarsphere/scholarsphere_test2.descMeta.txt +0 -12
  159. data/spec/fixtures/scholarsphere/scholarsphere_test3.descMeta.txt +0 -12
  160. data/spec/fixtures/scholarsphere/scholarsphere_test4.descMeta.txt +0 -12
  161. data/spec/fixtures/scholarsphere/scholarsphere_test5.descMeta.txt +0 -19
  162. data/spec/fixtures/scholarsphere/scholarsphere_test5.txt +0 -1
  163. data/spec/fixtures/scholarsphere/scholarsphere_test6.descMeta.txt +0 -12
  164. data/spec/fixtures/scholarsphere/scholarsphere_test6.txt +0 -1
  165. data/spec/fixtures/scholarsphere/sufia_scholarsphere1.descMeta.txt +0 -12
  166. data/spec/fixtures/scholarsphere/sufia_scholarsphere1.foxml.erb +0 -79
  167. data/spec/fixtures/scholarsphere/sufia_scholarsphere1.txt +0 -1
  168. data/spec/fixtures/scholarsphere_generic_stub.descMeta.txt +0 -12
  169. data/spec/fixtures/scholarsphere_generic_stub.txt +0 -1
@@ -1,82 +0,0 @@
1
- # Copyright © 2012 The Pennsylvania State University
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- class BatchUpdateJob
16
- include Hydra::AccessControlsEnforcement
17
- include GenericFileHelper
18
- include Rails.application.routes.url_helpers
19
-
20
- def self.queue
21
- :batch_update
22
- end
23
-
24
- def self.perform(*args)
25
- new(*args)
26
- end
27
-
28
- def initialize(login, params, perms)
29
- params = HashWithIndifferentAccess.new(params)
30
- perms = HashWithIndifferentAccess.new(perms)
31
- batch = Batch.find_or_create(params[:id])
32
- user = User.find_by_user_key(login)
33
- saved = []
34
- denied = []
35
-
36
- batch.generic_files.each do |gf|
37
- unless user.can? :edit, get_permissions_solr_response_for_doc_id(gf.pid)[1]
38
- logger.error "User #{user.user_key} DEEEENIED access to #{gf.pid}!"
39
- denied << gf
40
- next
41
- end
42
- gf.title = params[:title][gf.pid] if params[:title][gf.pid] rescue gf.label
43
- gf.update_attributes(params[:generic_file])
44
- gf.set_visibility(params)
45
-
46
- save_tries = 0
47
- begin
48
- gf.save
49
- rescue RSolr::Error::Http => error
50
- save_tries += 1
51
- logger.warn "BatchUpdateJob caught RSOLR error on #{gf.pid}: #{error.inspect}"
52
- # fail for good if the tries is greater than 3
53
- rescue_action_without_handler(error) if save_tries >=3
54
- sleep 0.01
55
- retry
56
- end #
57
- begin
58
- Resque.enqueue(ContentUpdateEventJob, gf.pid, login)
59
- rescue Redis::CannotConnectError
60
- logger.error "Redis is down!"
61
- end
62
-
63
- saved << gf
64
- end
65
- batch.update_attributes({status:["Complete"]})
66
-
67
- job_user = User.batchuser()
68
-
69
- message = '<a class="batchid ui-helper-hidden">ss-'+batch.noid+'</a>The file(s) '+ file_list(saved)+ " have been saved." unless saved.empty?
70
- job_user.send_message(user, message, 'Batch upload complete') unless saved.empty?
71
-
72
- message = '<a class="batchid ui-helper-hidden">'+batch.noid+'</a>The file(s) '+ file_list(denied)+" could not be updated. You do not have sufficient privileges to edit it." unless denied.empty?
73
- job_user.send_message(user, message, 'Batch upload permission denied') unless denied.empty?
74
-
75
- end
76
-
77
- def file_list ( files)
78
- return files.map {|gf| '<a href="'+Sufia::Engine.routes.url_helpers.generic_files_path+'/'+gf.noid+'">'+display_title(gf)+'</a>'}.join(', ')
79
-
80
- end
81
-
82
- end
@@ -1,50 +0,0 @@
1
- # Copyright © 2012 The Pennsylvania State University
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- # -*- encoding : utf-8 -*-
16
- class SolrDocument
17
- include Blacklight::Solr::Document
18
-
19
- def title_or_label
20
- self['generic_file__title_display'] ? 'generic_file__title_display' : 'label_t'
21
- end
22
-
23
- # self.unique_key = 'id'
24
-
25
- # The following shows how to setup this blacklight document to display marc documents
26
- #extension_parameters[:marc_source_field] = :marc_display
27
- #extension_parameters[:marc_format_type] = :marcxml
28
- #use_extension(Blacklight::Solr::Document::Marc) do |document|
29
- # document.key? :marc_display
30
- #end
31
-
32
- # Email uses the semantic field mappings below to generate the body of an email.
33
- #use_extension(Blacklight::Solr::Document::Email)
34
-
35
- # SMS uses the semantic field mappings below to generate the body of an SMS email.
36
- #use_extension(Blacklight::Solr::Document::Sms)
37
-
38
- # DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document
39
- # Semantic mappings of solr stored fields. Fields may be multi or
40
- # single valued. See Blacklight::Solr::Document::ExtendableClassMethods#field_semantics
41
- # and Blacklight::Solr::Document#to_semantic_values
42
- # Recommendation: Use field names from Dublin Core
43
- #use_extension( Blacklight::Solr::Document::DublinCore)
44
- #field_semantics.merge!(
45
- # :title => "title_display",
46
- # :author => "author_display",
47
- # :language => "language_facet",
48
- # :format => "format"
49
- # )
50
- end
@@ -1,43 +0,0 @@
1
- # Copyright © 2012 The Pennsylvania State University
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- module Sufia
16
- module GenericFile
17
- module Permissions
18
- # Copies and transforms permsisions set in params[:permission] into
19
- # params[:generic_file][:read_groups_string] and params[:generic_file][:discover_groups_string]
20
- # Once this is done it becomes possible to do:
21
- # @generic_file.update_attributes(params[:generic_file])
22
- # Which will set the permissions correctly
23
- def self.parse_permissions(params)
24
- if params.has_key?(:permission)
25
- if params[:permission][:group][:public] == 'read'
26
- if params[:generic_file][:read_groups_string].present?
27
- params[:generic_file][:read_groups_string] << ', public'
28
- else
29
- params[:generic_file][:read_groups_string] << 'public'
30
- end
31
- end
32
- if params[:permission][:group][:registered] == 'read'
33
- if params[:generic_file][:read_groups_string].present?
34
- params[:generic_file][:read_groups_string] << ', registered'
35
- else
36
- params[:generic_file][:read_groups_string] << 'registered'
37
- end
38
- end
39
- end
40
- end
41
- end
42
- end
43
- end
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/description> "Test Document Text Description" .
3
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/created> "4/11/2012" .
4
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/title> "Test Document Text" .
6
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/subject> "Plain Text Test" .
8
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:test1> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:test1> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/description> "Test Document Word DocX Description" .
3
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/created> "4/11/2012" .
4
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/title> "Test Document Word DocX" .
6
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/subject> "Word DocX Test" .
8
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:test2> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:test2> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/description> "Test Document Text Description" .
3
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/created> "4/11/2012" .
4
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/title> "Test Document Text" .
6
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/subject> "Plain Text Test" .
8
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:test3> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:test3> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/description> "Test Document PDF Description" .
3
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/created> "4/11/2012" .
4
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/title> "Test Document PDF" .
6
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/subject> "PDF Test" .
8
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:test4> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:test4> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1,19 +0,0 @@
1
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/description> "Test mp3 Description" .
3
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/created> "04/11/2012" .
4
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/title> "Test mp3" .
6
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keya" .
8
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keyb" .
9
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keyc" .
10
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keyd" .
11
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keye" .
12
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keyf" .
13
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/relation> "keyg" .
14
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/subject> "Test mp3 Test" .
15
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/language> "En" .
16
- <info:fedora/scholarsphere:test5> <http://xmlns.com/foaf/0.1/based_near> "State College" .
17
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/rights> "archivist1" .
18
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/creator> "archivist1" .
19
- <info:fedora/scholarsphere:test5> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1 +0,0 @@
1
- This is a test fixture for scholarsphere: test5.
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/description> "Test Image Description" .
3
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/created> "06/11/2012" .
4
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/title> "Test Image" .
6
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/subject> "Test Image Test" .
8
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:test6> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:test6> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1 +0,0 @@
1
- This is a test fixture for scholarsphere: test6.
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/publisher> "archivist1" .
2
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/description> "scholarsphere test Description" .
3
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/created> "11/16/2012" .
4
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/contributor> "archivist1" .
5
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/title> "scholarsphere test" .
6
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/subject> "scholarsphere test Test" .
8
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:scholarsphere1> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/rights> "archivist1" .
11
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/creator> "archivist1" .
12
- <info:fedora/scholarsphere:scholarsphere1> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1,79 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <foxml:digitalObject PID="sufia:scholarsphere1" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
4
- <foxml:objectProperties>
5
- <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
6
- <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="scholarsphere test"/>
7
- <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
8
- </foxml:objectProperties>
9
- <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
10
- <foxml:datastreamVersion FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
11
- ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml">
12
- <foxml:xmlContent>
13
- <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
14
- xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
15
- 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">
16
- <dc:title>scholarsphere test</dc:title>
17
- <dc:identifier>sufia:scholarsphere1</dc:identifier>
18
- </oai_dc:dc>
19
- </foxml:xmlContent>
20
- </foxml:datastreamVersion>
21
- </foxml:datastream>
22
- <foxml:datastream CONTROL_GROUP="M" ID="descMetadata" STATE="A" VERSIONABLE="true">
23
- <foxml:datastreamVersion ID="descMetadata.0" LABEL="" MIMETYPE="text/plain">
24
- <foxml:contentLocation REF="file:<%=@localDir%>/scholarsphere/sufia_scholarsphere1.descMeta.txt" TYPE="URL"/>
25
- </foxml:datastreamVersion>
26
- </foxml:datastream>
27
- <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
28
- <foxml:datastreamVersion ID="RELS-EXT.0"
29
- LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="application/rdf+xml">
30
- <foxml:xmlContent>
31
- <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
32
- <rdf:Description rdf:about="info:fedora/sufia:scholarsphere1">
33
- <ns0:hasModel rdf:resource="info:fedora/afmodel:GenericFile"/>
34
- </rdf:Description>
35
- </rdf:RDF>
36
- </foxml:xmlContent>
37
- </foxml:datastreamVersion>
38
- </foxml:datastream>
39
- <foxml:datastream CONTROL_GROUP="M" ID="content" STATE="A" VERSIONABLE="true">
40
- <foxml:datastreamVersion ID="content.0" LABEL="Test Data 1"
41
- MIMETYPE="text/plain" >
42
- <foxml:contentLocation REF="file:<%=@localDir%>/scholarsphere/sufia_scholarsphere1.txt" TYPE="URL"/>
43
- </foxml:datastreamVersion>
44
- </foxml:datastream>
45
- <foxml:datastream CONTROL_GROUP="X" ID="rightsMetadata" STATE="A" VERSIONABLE="true">
46
- <foxml:datastreamVersion CREATED="2012-04-06T13:41:37.093Z" ID="rightsMetadata.0" LABEL="" MIMETYPE="text/xml">
47
- <foxml:xmlContent>
48
- <rightsMetadata version="0.1" xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1">
49
- <copyright>
50
- <human/>
51
- <machine>
52
- <uvalicense>no</uvalicense>
53
- </machine>
54
- </copyright>
55
- <access type="discover">
56
- <human/>
57
- <machine>
58
- <group>public</group>
59
- </machine>
60
- </access>
61
- <access type="read">
62
- <human/>
63
- <machine/>
64
- </access>
65
- <access type="edit">
66
- <human/>
67
- <machine>
68
- <person>cam156@psu.edu</person>
69
- </machine>
70
- </access>
71
- <embargo>
72
- <human/>
73
- <machine/>
74
- </embargo>
75
- </rightsMetadata>
76
- </foxml:xmlContent>
77
- </foxml:datastreamVersion>
78
- </foxml:datastream>
79
- </foxml:digitalObject>
@@ -1 +0,0 @@
1
- This is a test fixture for scholarsphere: scholarsphere1.
@@ -1,12 +0,0 @@
1
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/publisher> "<%= @user %>" .
2
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/description> "<%= @title %> Description" .
3
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/created> "<%= Time.now.strftime("%m/%d/%Y") %>" .
4
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/contributor> "<%= @user %>" .
5
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/title> "<%= @title %>" .
6
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/relation> "test" .
7
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/subject> "<%= @title %> Test" .
8
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/language> "En" .
9
- <info:fedora/scholarsphere:<%= @id %>> <http://xmlns.com/foaf/0.1/based_near> "State College" .
10
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/rights> "<%= @user %>" .
11
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/creator> "<%= @user %>" .
12
- <info:fedora/scholarsphere:<%= @id %>> <http://purl.org/dc/terms/identifier> "Test" .
@@ -1 +0,0 @@
1
- This is a test fixture for scholarsphere: <%= @id %>.