hydra-head 3.0.0pre3 → 3.0.0pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +0 -3
- data/.rvmrc +6 -0
- data/BLACKLIGHT_CONFIG.textile +76 -0
- data/CREATE_RAILS_APP.textile +323 -0
- data/DEVELOP_PLUGIN.textile +90 -0
- data/GIT_WORKFLOW.textile +84 -0
- data/Gemfile.lock +82 -66
- data/HISTORY.textile +7 -0
- data/HOW_DO_I.textile +107 -0
- data/HOW_TO_DEFINE_A_HYDRA_CONTROLLER.textile +21 -0
- data/HOW_TO_DEFINE_A_HYDRA_MODEL.textile +64 -0
- data/HOW_TO_GET_STARTED.textile +100 -76
- data/INITIAL_APP_MODS.textile +60 -76
- data/INSTALL_PREREQ.textile +19 -0
- data/LICENSE +14 -0
- data/README.textile +89 -17
- data/README_RAKE_TASKS.textile +107 -0
- data/README_SUBTREE.textile +87 -0
- data/README_TERSE.textile +92 -0
- data/TESTING_PLUGIN.textile +134 -0
- data/app/controllers/assets_controller.rb +34 -4
- data/app/controllers/contributors_controller.rb +49 -1
- data/app/controllers/downloads_controller.rb +36 -0
- data/app/controllers/file_assets_controller.rb +43 -21
- data/app/controllers/generic_content_objects_controller.rb +38 -0
- data/app/controllers/get_controller.rb +39 -0
- data/app/controllers/permissions_controller.rb +33 -4
- data/app/controllers/user_sessions_controller.rb +0 -1
- data/app/helpers/application_helper.rb +183 -0
- data/app/helpers/blacklight_helper.rb +13 -8
- data/app/helpers/hydra_assets_helper.rb +6 -15
- data/app/helpers/hydra_fedora_metadata_helper.rb +51 -67
- data/app/helpers/hydra_helper.rb +35 -11
- data/app/helpers/javascript_includes_helper.rb +2 -4
- data/app/helpers/personalization_helper.rb +44 -0
- data/app/models/generic_content.rb +6 -3
- data/app/models/generic_image.rb +3 -1
- data/app/models/mods_asset.rb +12 -1
- data/app/models/user_attribute.rb +25 -0
- data/app/models/uses_default_partials.rb +14 -0
- data/app/views/_add_assets_links.html.erb +1 -0
- data/app/views/catalog/_edit_partials/_default.html.erb +5 -5
- data/app/views/catalog/_home_text.html.erb +2 -2
- data/app/views/catalog/_index_partials/_default_details.html.erb +10 -7
- data/app/views/catalog/_opensearch_response_metadata.html.erb +2 -0
- data/app/views/catalog/_search_form.html.erb +1 -1
- data/app/views/catalog/_show_partials/_default.html.erb +4 -2
- data/app/views/catalog/_show_partials/_default_details.html.erb +10 -7
- data/app/views/catalog/show.html.erb +20 -28
- data/app/views/contributors/_edit_person.html.erb +26 -29
- data/app/views/contributors/_index.html.erb +6 -7
- data/app/views/contributors/_show_conference.html.erb +5 -15
- data/app/views/contributors/_show_organization.html.erb +8 -16
- data/app/views/file_assets/_file_assets_form.html.erb +11 -0
- data/app/views/file_assets/_index.html.erb +21 -6
- data/app/views/file_assets/_new.html.erb +6 -2
- data/app/views/file_assets/_result.html.erb +2 -2
- data/app/views/fluid_infusion/_uploader.html.erb +4 -5
- data/app/views/generic_content_objects/_contributor_form.html.erb +11 -0
- data/app/views/generic_content_objects/_description_form.html.erb +7 -0
- data/app/views/generic_content_objects/_edit_description.html.erb +14 -41
- data/app/views/generic_content_objects/_show_description.html.erb +38 -63
- data/app/views/generic_contents/_edit.html.erb +1 -45
- data/app/views/generic_contents/_edit.html.erb_ +39 -0
- data/app/views/generic_contents/_index.html.erb +1 -3
- data/app/views/generic_contents/_show.html.erb +4 -14
- data/app/views/generic_contents/_show_content.html.erb +7 -4
- data/app/views/generic_images/_edit.html.erb +26 -32
- data/app/views/generic_images/_show.html.erb +7 -10
- data/app/views/generic_images/_show_all.html.erb +1 -1
- data/app/views/generic_images/_show_content.html.erb +7 -7
- data/app/views/layouts/application.html.erb +33 -41
- data/app/views/layouts/hydra-head.html.erb +52 -7
- data/app/views/mods_assets/_additional_info_form.html.erb +44 -0
- data/app/views/mods_assets/_contributor_form.html.erb +14 -0
- data/app/views/mods_assets/_edit.html.erb +8 -32
- data/app/views/mods_assets/_edit.html.erb_ +63 -0
- data/app/views/mods_assets/_edit_description.html.erb +52 -61
- data/app/views/mods_assets/_edit_journal.html.erb +49 -64
- data/app/views/mods_assets/_publication_form.html.erb +13 -0
- data/app/views/mods_assets/_show.html.erb +18 -23
- data/app/views/mods_assets/_show_additional_info.html.erb +17 -0
- data/app/views/mods_assets/_show_contributors.html.erb +7 -0
- data/app/views/mods_assets/_show_description.html.erb +3 -13
- data/app/views/mods_assets/_show_file_assets.html.erb +22 -0
- data/app/views/mods_assets/_show_journal.html.erb +3 -3
- data/app/views/mods_assets/_show_permissions.html.erb +1 -0
- data/app/views/mods_assets/_show_publication.html.erb +8 -0
- data/app/views/permissions/_edit_person_permissions.html.erb +4 -9
- data/app/views/permissions/_index.html.erb +9 -18
- data/app/views/permissions/_new.html.erb +13 -17
- data/app/views/permissions/_permissions_form.html.erb +24 -0
- data/app/views/user_sessions/_login_form.html.erb +1 -1
- data/assets/images/hydra/powered_by_hydra.png +0 -0
- data/assets/images/hydra/search-button.png +0 -0
- data/assets/javascripts/date-picker/booking/index.html +368 -0
- data/assets/javascripts/date-picker/calendarHTML.txt +84 -0
- data/assets/javascripts/date-picker/css/datepicker.css +511 -0
- data/assets/javascripts/date-picker/css/demo.css +229 -0
- data/assets/javascripts/date-picker/index.html +798 -0
- data/assets/javascripts/date-picker/js/datepicker.js +2898 -0
- data/assets/javascripts/date-picker/js/datepicker.packed.js +1 -0
- data/assets/javascripts/date-picker/js/lang/ar.js +9 -0
- data/assets/javascripts/date-picker/js/lang/cs.js +9 -0
- data/assets/javascripts/date-picker/js/lang/da.js +10 -0
- data/assets/javascripts/date-picker/js/lang/de.js +10 -0
- data/assets/javascripts/date-picker/js/lang/en.js +9 -0
- data/assets/javascripts/date-picker/js/lang/eo.js +13 -0
- data/assets/javascripts/date-picker/js/lang/es.js +9 -0
- data/assets/javascripts/date-picker/js/lang/et.js +23 -0
- data/assets/javascripts/date-picker/js/lang/fi.js +7 -0
- data/assets/javascripts/date-picker/js/lang/fr.js +69 -0
- data/assets/javascripts/date-picker/js/lang/he.js +9 -0
- data/assets/javascripts/date-picker/js/lang/hu.js +9 -0
- data/assets/javascripts/date-picker/js/lang/id.js +9 -0
- data/assets/javascripts/date-picker/js/lang/it.js +11 -0
- data/assets/javascripts/date-picker/js/lang/kr.js +9 -0
- data/assets/javascripts/date-picker/js/lang/lt.js +8 -0
- data/assets/javascripts/date-picker/js/lang/lv.js +9 -0
- data/assets/javascripts/date-picker/js/lang/nl.js +9 -0
- data/assets/javascripts/date-picker/js/lang/no.js +9 -0
- data/assets/javascripts/date-picker/js/lang/pl.js +10 -0
- data/assets/javascripts/date-picker/js/lang/pt-br.js +11 -0
- data/assets/javascripts/date-picker/js/lang/pt.js +9 -0
- data/assets/javascripts/date-picker/js/lang/ru.js +11 -0
- data/assets/javascripts/date-picker/js/lang/se.js +9 -0
- data/assets/javascripts/date-picker/js/lang/si.js +9 -0
- data/assets/javascripts/date-picker/js/lang/tr.js +9 -0
- data/assets/javascripts/date-picker/language/index.html +240 -0
- data/assets/javascripts/date-picker/media/Thumbs.db +0 -0
- data/assets/javascripts/date-picker/media/backstripes.gif +0 -0
- data/assets/javascripts/date-picker/media/bg_header.jpg +0 -0
- data/assets/javascripts/date-picker/media/bullet1.gif +0 -0
- data/assets/javascripts/date-picker/media/bullet2.gif +0 -0
- data/assets/javascripts/date-picker/media/cal-grey.gif +0 -0
- data/assets/javascripts/date-picker/media/cal.gif +0 -0
- data/assets/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif +0 -0
- data/assets/javascripts/hydra/hydra-head.js +195 -0
- data/assets/javascripts/hydra/mediashelf.datepicker.js +39 -0
- data/assets/javascripts/hydra/mediashelf.placeholder.js +67 -0
- data/assets/javascripts/jquery.form.js +675 -0
- data/assets/javascripts/jquery.ui.datepicker.js +1793 -0
- data/assets/javascripts/spin.min.js +2 -0
- data/assets/stylesheets/hydra/html_refactor.css +115 -0
- data/assets/stylesheets/hydra/hydrangea-split-button.css +18 -0
- data/assets/stylesheets/hydra/hydrangea.css +292 -0
- data/assets/stylesheets/hydra/ie-styles.css +240 -0
- data/assets/stylesheets/hydra/styles.css +2224 -0
- data/assets/stylesheets/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/assets/stylesheets/redmond/jquery-ui-1.8.5.custom.css +572 -0
- data/config/fedora.yml +17 -0
- data/config/role_map_cucumber.yml +10 -0
- data/config/role_map_development.yml +12 -0
- data/config/role_map_production.yml +2 -0
- data/config/role_map_test.yml +14 -0
- data/config/solr.yml +10 -0
- data/config/solr_mappings.yml +22 -0
- data/db/migrate/20101105214243_add_user_attributes_table.rb +15 -0
- data/db/migrate/20101108192527_create_superusers.rb +12 -0
- data/fedora/conf/fedora.fcfg +1021 -0
- data/hydra-head.gemspec +7 -4
- data/init.rb +4 -0
- data/install.rb +1 -0
- data/lib/blacklight/catalog_helper.rb +44 -0
- data/lib/blacklight.rb +40 -0
- data/lib/block_mapper.rb +52 -0
- data/lib/djatoka.rb +59 -0
- data/lib/ead_mapper.rb +7 -0
- data/lib/field_maps.rb +507 -0
- data/lib/generators/hydra/assets_generator.rb +51 -0
- data/lib/generators/hydra/head_generator.rb +23 -4
- data/lib/generators/hydra/templates/config/initializers/blacklight_config.rb +2 -2
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +26 -0
- data/lib/hydra/access_controls_enforcement.rb +3 -2
- data/lib/hydra/assets_controller_helper.rb +6 -0
- data/lib/hydra/catalog.rb +7 -3
- data/lib/hydra/controller.rb +27 -0
- data/lib/hydra/file_assets_helper.rb +25 -8
- data/lib/hydra/generic_user_attributes.rb +34 -0
- data/lib/hydra/model_methods.rb +4 -2
- data/lib/hydra/mods_article.rb +5 -2
- data/lib/hydra/submission_workflow.rb +137 -0
- data/lib/hydra-head/controller.rb +30 -0
- data/lib/hydra-head/engine.rb +22 -1
- data/lib/hydra-head/routes.rb +14 -3
- data/lib/hydra-head/version.rb +1 -1
- data/lib/hydra-head.rb +3 -3
- data/lib/hydra.rb +1 -1
- data/lib/jetty_cleaner.rb +27 -0
- data/lib/marc_mapper.rb +131 -0
- data/lib/marc_record_ext.rb +97 -0
- data/lib/mediashelf/active_fedora_helper.rb +7 -1
- data/lib/prev_next_links.rb +22 -0
- data/lib/railties/hydra-fixtures.rake +6 -1
- data/lib/railties/hyhead_cucumber.rake +1 -2
- data/lib/railties/hyhead_rspec.rake +7 -7
- data/lib/stanford_blacklight_extensions.rb +6 -0
- data/lib/user_attributes_loader.rb +17 -0
- data/solr/conf/schema.xml +116 -0
- data/solr/conf/solrconfig.xml +311 -0
- data/solr/solr.xml +35 -0
- data/spec/controllers/catalog_valid_html_spec.rb +128 -0
- data/spec-rails2/helpers/hydra_fedora_metadata_helper_spec.rb +219 -0
- data/spec-rails2/spec_helper.rb +88 -0
- data/tasks/hydra-head.rake +2 -4
- data/test_support/etc/Gemfile +6 -5
- data/test_support/features/absent_model_edit.feature +27 -0
- data/test_support/features/absent_model_search_result.feature +24 -0
- data/test_support/features/absent_model_show.feature +27 -0
- data/test_support/features/button_add_assets.feature +2 -2
- data/test_support/features/contributor_add.feature +21 -16
- data/test_support/features/default_partials_edit.feature +27 -0
- data/test_support/features/default_partials_search_result.feature +22 -0
- data/test_support/features/default_partials_show.feature +24 -0
- data/test_support/features/file_upload.feature +55 -22
- data/test_support/features/generic_content_create.feature +7 -0
- data/test_support/features/generic_content_edit.feature +21 -0
- data/test_support/features/generic_content_search_result.feature +22 -0
- data/test_support/features/generic_content_show.feature +20 -0
- data/test_support/features/generic_image_create.feature +7 -0
- data/test_support/features/generic_image_edit.feature +21 -0
- data/test_support/features/generic_image_search_result.feature +22 -0
- data/test_support/features/generic_image_show.feature +20 -0
- data/test_support/features/html_validity.feature +43 -0
- data/test_support/features/mods_asset_contributors_edit.feature +27 -19
- data/test_support/features/mods_asset_create.feature +13 -8
- data/test_support/features/mods_asset_edit.feature +48 -16
- data/test_support/features/mods_asset_edit_without_permission.feature +6 -1
- data/test_support/features/mods_asset_search_result.feature +15 -15
- data/test_support/features/mods_asset_show.feature +56 -5
- data/test_support/features/permissions_add.feature +5 -4
- data/test_support/features/permissions_edit.feature +9 -7
- data/test_support/features/step_definitions/html_validity_steps.rb +57 -0
- data/test_support/features/step_definitions/show_document_steps.rb +1 -1
- data/test_support/features/step_definitions/user_steps.rb +4 -4
- data/test_support/features/support/paths.rb +4 -1
- data/test_support/fixtures/hydra_test_default_partials.foxml.xml +80 -0
- data/test_support/fixtures/hydra_test_generic_content.foxml.xml +138 -0
- data/test_support/fixtures/hydra_test_generic_image.foxml.xml +395 -0
- data/test_support/fixtures/hydra_test_no_model.foxml.xml +79 -0
- data/test_support/fixtures/hydrus_admin_class1.foxml.xml +176 -0
- data/test_support/fixtures/libra-oa_7.foxml.xml +1735 -0
- data/test_support/spec/controllers/assets_controller_spec.rb +5 -4
- data/test_support/spec/controllers/catalog_controller_spec.rb +2 -2
- data/test_support/spec/controllers/file_assets_controller_spec.rb +16 -10
- data/test_support/spec/controllers/hydra_controller_spec.rb +2 -0
- data/test_support/spec/controllers/permissions_controller_spec.rb +1 -1
- data/test_support/spec/helpers/access_controls_enforcement_spec.rb +20 -219
- data/test_support/spec/helpers/blacklight_helper_spec.rb +3 -1
- data/test_support/spec/helpers/file_assets_helper_spec.rb +13 -10
- data/test_support/spec/helpers/hydra_assets_helper_spec.rb +5 -1
- data/test_support/spec/helpers/hydra_djatoka_helper_spec.rb +3 -1
- data/test_support/spec/helpers/hydra_fedora_metadata_helper_spec.rb +102 -69
- data/test_support/spec/helpers/hydra_helper_spec.rb +15 -0
- data/test_support/spec/lib/hydra_submission_workflow_spec.rb +141 -0
- data/test_support/spec/models/generic_image_spec.rb +6 -1
- data/uninstall.rb +1 -0
- data/vendor/cache/actionmailer-3.0.10.gem +0 -0
- data/vendor/cache/actionpack-3.0.10.gem +0 -0
- data/vendor/cache/activemodel-3.0.10.gem +0 -0
- data/vendor/cache/activerecord-3.0.10.gem +0 -0
- data/vendor/cache/activeresource-3.0.10.gem +0 -0
- data/vendor/cache/activesupport-3.0.10.gem +0 -0
- data/vendor/cache/capybara-1.1.1.gem +0 -0
- data/vendor/cache/childprocess-0.2.2.gem +0 -0
- data/vendor/cache/crack-0.3.1.gem +0 -0
- data/vendor/cache/cucumber-1.1.0.gem +0 -0
- data/vendor/cache/cucumber-rails-1.1.1.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.3.gem +0 -0
- data/vendor/cache/equivalent-xml-0.2.8.gem +0 -0
- data/vendor/cache/factory_girl-2.1.2.gem +0 -0
- data/vendor/cache/gherkin-2.5.2.gem +0 -0
- data/vendor/cache/haml-3.1.3.gem +0 -0
- data/vendor/cache/httparty-0.8.1.gem +0 -0
- data/vendor/cache/json-1.6.1.gem +0 -0
- data/vendor/cache/json_pure-1.6.1.gem +0 -0
- data/vendor/cache/launchy-2.0.5.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.7.gem +0 -0
- data/vendor/cache/metaclass-0.0.1.gem +0 -0
- data/vendor/cache/mocha-0.10.0.gem +0 -0
- data/vendor/cache/multi_json-1.0.3.gem +0 -0
- data/vendor/cache/multi_xml-0.4.1.gem +0 -0
- data/vendor/cache/om-1.4.2.gem +0 -0
- data/vendor/cache/polyglot-0.3.2.gem +0 -0
- data/vendor/cache/rack-1.2.4.gem +0 -0
- data/vendor/cache/{rails-3.0.9.gem → rails-3.0.10.gem} +0 -0
- data/vendor/cache/railties-3.0.10.gem +0 -0
- data/vendor/cache/rcov-0.9.11.gem +0 -0
- data/vendor/cache/rdoc-3.10.gem +0 -0
- data/vendor/cache/rest-client-1.6.7.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.8.0.gem +0 -0
- data/vendor/cache/solrizer-1.1.2.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.1.2.gem +0 -0
- data/vendor/cache/sqlite3-1.3.4.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.7.gem +0 -0
- data/vendor/cache/treetop-1.4.10.gem +0 -0
- data/vendor/cache/tzinfo-0.3.30.gem +0 -0
- data/vendor/cache/will_paginate-3.0.2.gem +0 -0
- data/vendor/cache/xml-simple-1.1.1.gem +0 -0
- metadata +351 -121
- data/lib/engine.rb +0 -30
- data/test_support/features/file_assets_list.feature +0 -32
- data/vendor/cache/actionmailer-3.0.9.gem +0 -0
- data/vendor/cache/actionpack-3.0.9.gem +0 -0
- data/vendor/cache/activemodel-3.0.9.gem +0 -0
- data/vendor/cache/activerecord-3.0.9.gem +0 -0
- data/vendor/cache/activeresource-3.0.9.gem +0 -0
- data/vendor/cache/activesupport-3.0.9.gem +0 -0
- data/vendor/cache/capybara-1.0.0.gem +0 -0
- data/vendor/cache/childprocess-0.2.0.gem +0 -0
- data/vendor/cache/crack-0.1.8.gem +0 -0
- data/vendor/cache/cucumber-1.0.2.gem +0 -0
- data/vendor/cache/cucumber-rails-1.0.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/cache/equivalent-xml-0.2.7.gem +0 -0
- data/vendor/cache/factory_girl-1.3.3.gem +0 -0
- data/vendor/cache/gherkin-2.4.5.gem +0 -0
- data/vendor/cache/haml-3.1.2.gem +0 -0
- data/vendor/cache/httparty-0.7.8.gem +0 -0
- data/vendor/cache/json-1.5.3.gem +0 -0
- data/vendor/cache/json_pure-1.5.3.gem +0 -0
- data/vendor/cache/launchy-2.0.4.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.3.gem +0 -0
- data/vendor/cache/mocha-0.9.12.gem +0 -0
- data/vendor/cache/om-1.2.5.gem +0 -0
- data/vendor/cache/polyglot-0.3.1.gem +0 -0
- data/vendor/cache/rack-1.2.3.gem +0 -0
- data/vendor/cache/railties-3.0.9.gem +0 -0
- data/vendor/cache/rcov-0.9.9.gem +0 -0
- data/vendor/cache/rdoc-3.8.gem +0 -0
- data/vendor/cache/selenium-webdriver-0.2.2.gem +0 -0
- data/vendor/cache/solrizer-1.1.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.1.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.5.gem +0 -0
- data/vendor/cache/treetop-1.4.9.gem +0 -0
- data/vendor/cache/tzinfo-0.3.29.gem +0 -0
- data/vendor/cache/will_paginate-2.3.15.gem +0 -0
- data/vendor/cache/xml-simple-1.1.0.gem +0 -0
@@ -1,24 +1,24 @@
|
|
1
1
|
@catalog @articles
|
2
|
-
Feature:
|
2
|
+
Feature: ModsAsset Search Result
|
3
3
|
As a user
|
4
|
-
|
5
|
-
I want to see appropriate information about articles in a search result
|
4
|
+
I want to see appropriate information for ModsAsset objects in a search result
|
6
5
|
|
7
|
-
Scenario:
|
8
|
-
Given I am on the
|
6
|
+
Scenario: Search Results have ModsAsset info
|
7
|
+
Given I am on the home page
|
9
8
|
And I fill in "q" with "1234-5678"
|
10
9
|
When I press "submit"
|
11
10
|
Then I should see a link to "the show document page for hydrangea:fixture_mods_article3"
|
12
11
|
And I should see "Test Article"
|
13
12
|
And I should see "Aug. 1, 1998"
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
When I
|
18
|
-
Then
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
And I
|
13
|
+
|
14
|
+
Scenario: html5 valid - unauthenticated
|
15
|
+
Given I am on the home page
|
16
|
+
When I follow "Article"
|
17
|
+
Then the page should be HTML5 valid
|
18
|
+
|
19
|
+
Scenario: html5 valid - authenticated
|
20
|
+
Given I am logged in as "archivist1@example.com"
|
21
|
+
When I am on the home page
|
22
|
+
And I follow "Article"
|
23
|
+
Then the page should be HTML5 valid
|
24
24
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
@show @articles
|
2
|
-
Feature: Show
|
3
|
-
|
4
|
-
[stakeholder]
|
5
|
-
wants [behaviour]
|
2
|
+
Feature: ModsAsset Show View
|
3
|
+
I want to see appropriate information for ModsAsset objects in the show view
|
6
4
|
|
5
|
+
@overwritten
|
7
6
|
Scenario: Public visit Publicly Viewable Document
|
8
7
|
Given I am on the show document page for hydrangea:fixture_mods_article1
|
9
8
|
Then I should see "ARTICLE TITLE"
|
@@ -14,18 +13,38 @@ Feature: Show a document
|
|
14
13
|
And I should see "TOPIC 2"
|
15
14
|
And I should see "CONTROLLED TERM"
|
16
15
|
And I should not see a link to "the edit document page for hydrangea:fixture_mods_article1"
|
16
|
+
|
17
|
+
@local
|
18
|
+
Scenario: Public visit Publicly Viewable Document
|
19
|
+
Given I am on the show document page for libra-oa:1
|
20
|
+
Then I should see "The Smallest Victims of the"
|
21
|
+
And I should see "Mary"
|
22
|
+
And I should see "Gibson"
|
23
|
+
And I should see "University of Virginia"
|
24
|
+
And I should see "white plague"
|
25
|
+
And I should see "pediatric nursing"
|
26
|
+
# We're not doing anything with licenses for this version of mods_assets
|
27
|
+
# And I should see "UVA Libra Contributor's License"
|
28
|
+
And I should not see a link to "the edit document page for libra-oa:1"
|
17
29
|
|
18
30
|
Scenario: Public visit Document Show Page for a private document
|
19
31
|
Given I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
20
32
|
Then I should be on the search page
|
21
33
|
And I should see "You do not have sufficient access privileges to read this document, which has been marked private" within ".notice"
|
22
34
|
|
23
|
-
@
|
35
|
+
@overwritten
|
24
36
|
Scenario: Superuser visits Document Show Page for a private document
|
25
37
|
Given I am a superuser
|
26
38
|
And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
27
39
|
Then I should see "Article for Archivist Eyes Only"
|
40
|
+
|
41
|
+
@local
|
42
|
+
Scenario: Superuser visits Document Show Page for a private document
|
43
|
+
Given I am a superuser
|
44
|
+
And I am on the show document page for libra-oa:7
|
45
|
+
Then I should see "Khadzhi-Murat's Silence"
|
28
46
|
|
47
|
+
@overwritten
|
29
48
|
Scenario: Archivist visits Show Page for Restricted Document
|
30
49
|
Given I am logged in as "archivist1@example.com"
|
31
50
|
And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
@@ -36,4 +55,36 @@ Feature: Show a document
|
|
36
55
|
And I should see "contributing"
|
37
56
|
And I should see "exclusiveness"
|
38
57
|
And I should not see a link to "the edit document page for hydrangea:fixture_public_mods_article"
|
58
|
+
|
59
|
+
@local
|
60
|
+
Scenario: Archivist visits Show Page for Restricted Document
|
61
|
+
Given I am logged in as "archivist1@example.com"
|
62
|
+
And I am on the show document page for libra-oa:7
|
63
|
+
Then I should see "Khadzhi-Murat's Silence"
|
64
|
+
And I should see "David Herman"
|
65
|
+
And I should see "University of Virginia"
|
66
|
+
|
67
|
+
|
68
|
+
Scenario: html5 valid - unauthenticated
|
69
|
+
Given I am on the show document page for hydrangea:fixture_mods_article1
|
70
|
+
Then the page should be HTML5 valid
|
71
|
+
|
72
|
+
Scenario: html5 valid - unauthenticated for restricted document
|
73
|
+
Given I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
74
|
+
Then the page should be HTML5 valid
|
75
|
+
|
76
|
+
Scenario: html5 valid - authenticated
|
77
|
+
Given I am logged in as "archivist1@example.com"
|
78
|
+
When I am on the show document page for hydrangea:fixture_mods_article1
|
79
|
+
Then the page should be HTML5 valid
|
80
|
+
|
81
|
+
Scenario: html5 valid - authenticated but not authorized for restricted document
|
82
|
+
Given I am a superuser
|
83
|
+
When I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
84
|
+
Then the page should be HTML5 valid
|
85
|
+
|
86
|
+
Scenario: html5 valid - authenticated for restricted document
|
87
|
+
Given I am logged in as "archivist1@example.com"
|
88
|
+
When I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
89
|
+
Then the page should be HTML5 valid
|
39
90
|
|
@@ -6,10 +6,11 @@ Feature: Add Individual Permissions
|
|
6
6
|
|
7
7
|
Scenario: Editing group permissions
|
8
8
|
Given I am logged in as "archivist1@example.com"
|
9
|
-
And I am on the edit
|
9
|
+
And I am on the edit permissions page for hydrangea:fixture_mods_article1
|
10
|
+
When I press "Add Additional Permissions"
|
10
11
|
And I fill in "permission_actor_id" with "cucumber_user"
|
11
12
|
And I select "Read & Download" from "permission_level"
|
12
|
-
When I press "
|
13
|
+
When I press "Continue"
|
13
14
|
Then I should see "cucumber_user has been granted read permissions for hydrangea:fixture_mods_article1"
|
14
|
-
|
15
|
-
|
15
|
+
When I am on the edit permissions page for hydrangea:fixture_mods_article1
|
16
|
+
Then "Read & Download" should be selected from "cucumber_user" within "form#permissions_metadata"
|
@@ -10,7 +10,7 @@ Feature: Edit Permissions
|
|
10
10
|
|
11
11
|
Scenario: Viewing group & individual permissions
|
12
12
|
Given I am logged in as "archivist1@example.com"
|
13
|
-
Given I am on the edit
|
13
|
+
Given I am on the edit permissions page for hydrangea:fixture_mods_article1
|
14
14
|
Then the following should be selected within "form#permissions_metadata"
|
15
15
|
|Archivist | Edit & Upload |
|
16
16
|
|Researcher | No Access |
|
@@ -20,7 +20,7 @@ Feature: Edit Permissions
|
|
20
20
|
|
21
21
|
Scenario: Editing group permissions on article edit page
|
22
22
|
Given I am logged in as "archivist1@example.com"
|
23
|
-
|
23
|
+
When I am on the edit permissions page for hydrangea:fixture_mods_article1
|
24
24
|
And the following should be selected within "form#permissions_metadata"
|
25
25
|
|Archivist | Edit & Upload |
|
26
26
|
|researcher1 | Edit & Upload |
|
@@ -30,9 +30,10 @@ Feature: Edit Permissions
|
|
30
30
|
|Archivist | Edit & Upload |
|
31
31
|
|Admin_policy_object_editor | Discover |
|
32
32
|
|Patron | Edit |
|
33
|
-
And I press "
|
33
|
+
And I press "Continue"
|
34
34
|
Then I should see "The permissions have been updated."
|
35
|
-
|
35
|
+
When I am on the edit permissions page for hydrangea:fixture_mods_article1
|
36
|
+
Then the following should be selected within "form#permissions_metadata"
|
36
37
|
|Archivist | Edit & Upload |
|
37
38
|
|Admin_policy_object_editor | Discover |
|
38
39
|
|Patron | Edit |
|
@@ -40,14 +41,15 @@ Feature: Edit Permissions
|
|
40
41
|
|
41
42
|
Scenario: Editing group permissions on permissions index page
|
42
43
|
Given I am logged in as "archivist1@example.com"
|
43
|
-
And I am on the permissions page for hydrangea:fixture_mods_dataset1
|
44
|
+
And I am on the edit permissions page for hydrangea:fixture_mods_dataset1
|
44
45
|
When I select the following within "form#permissions_metadata"
|
45
46
|
|Archivist | Edit & Upload |
|
46
47
|
|Admin_policy_object_editor | Discover |
|
47
48
|
|Patron | Edit |
|
48
|
-
And I press "
|
49
|
+
And I press "Continue"
|
49
50
|
Then I should see "The permissions have been updated."
|
50
|
-
|
51
|
+
When I am on the edit permissions page for hydrangea:fixture_mods_dataset1
|
52
|
+
Then the following should be selected within "form#permissions_metadata"
|
51
53
|
|Archivist | Edit & Upload |
|
52
54
|
|Admin_policy_object_editor | Discover |
|
53
55
|
|Patron | Edit |
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "nokogiri"
|
3
|
+
require 'rest_client'
|
4
|
+
|
5
|
+
Then /^the page should be HTML5 valid$/ do
|
6
|
+
response_is_html_valid?(page.body).should be_true
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def response_is_html_valid?(resp)
|
12
|
+
begin
|
13
|
+
# http://validator.w3.org/docs/api.html says to sleep for at least 1 second between requests. Just making sure we don't get throttled.
|
14
|
+
sleep(1.0)
|
15
|
+
validator_response = RestClient.post("http://validator.w3.org/check",
|
16
|
+
:output => "soap12",
|
17
|
+
:doctype => "HTML5",
|
18
|
+
:fragment => resp)
|
19
|
+
rescue SocketError, RestClient::BadGateway #meaning we're either not connected to the internet or we were throttled by the validator.
|
20
|
+
puts "WARNING: No connection to W3C validator. Page may not be HTML5 valid!"
|
21
|
+
return true
|
22
|
+
end
|
23
|
+
|
24
|
+
xml = Nokogiri::XML(validator_response)
|
25
|
+
|
26
|
+
#removing namespaces because we really don't care
|
27
|
+
xml.remove_namespaces!
|
28
|
+
|
29
|
+
# "true" or "false"
|
30
|
+
valid = xml.xpath("//validity").text
|
31
|
+
error_list = xml.xpath("//errors/errorlist/error")
|
32
|
+
warning_list = xml.xpath("//warnings/warninglist/warning")
|
33
|
+
|
34
|
+
error_count = xml.xpath("//errors/errorcount").text
|
35
|
+
warning_count = xml.xpath("//warnings/warningcount").text
|
36
|
+
|
37
|
+
errors = []
|
38
|
+
warnings = []
|
39
|
+
error_list.each do |err|
|
40
|
+
errors << {:message => err.xpath("./message").text, :source => err.xpath("./source").text, :line => err.xpath("./line").text, :col => err.xpath("./col").text}
|
41
|
+
end
|
42
|
+
|
43
|
+
warning_list.each do |warn|
|
44
|
+
warnings << warn.xpath("./message").text
|
45
|
+
end
|
46
|
+
|
47
|
+
if valid == "true"
|
48
|
+
return true
|
49
|
+
else
|
50
|
+
text = "\n#{error_count} HTML5 Validation Error(s):\n"
|
51
|
+
errors.each_with_index do |error,i|
|
52
|
+
text << " #{i+1}) Line #{error[:line]}, Column #{error[:col]}: #{error[:message]}\n"
|
53
|
+
end
|
54
|
+
puts text unless errors == []
|
55
|
+
return false
|
56
|
+
end
|
57
|
+
end
|
@@ -58,7 +58,7 @@ end
|
|
58
58
|
Then /^I (should|should not) see a delete (field|contributor) button for "([^\"]*)"$/ do |bool,type,target|
|
59
59
|
if bool == "should"
|
60
60
|
# page.should have_selector("a, :class=>"destructive #{type}", :href=>path_to(target))
|
61
|
-
page.should have_xpath(".//a[@href=\"#{path_to(target)}\" and contains(@class, \"destructive\") and contains(@class, \"#{type}\")]")
|
61
|
+
page.should have_xpath(".//a[@href=\"#{path_to(target)}\" and contains(@class, \"destructive\") and contains(@class, \"destroy_#{type}\")]")
|
62
62
|
else
|
63
63
|
# page.should_not have_selector("a", :class=>"destructive #{type}", :href=>path_to(target))
|
64
64
|
page.should_not have_xpath(".//a[@href=\"#{path_to(target)}\" and contains(@class, \"destructive\") and contains(@class, \"#{type}\")]")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# @example
|
2
|
-
# I log in as "archivist1"
|
2
|
+
# I log in as "archivist1@example.com"
|
3
3
|
# @example
|
4
|
-
# I am logged in as "archivist1"
|
4
|
+
# I am logged in as "archivist1@example.com"
|
5
5
|
Given /^I (?:am )?log(?:ged)? in as "([^\"]*)"$/ do |email|
|
6
6
|
# Given %{a User exists with a Login of "#{login}"}
|
7
7
|
user = User.create(:email => email, :password => "password", :password_confirmation => "password")
|
@@ -21,8 +21,8 @@ Given /^I am logged in as "([^\"]*)" with "([^\"]*)" permissions$/ do |login,per
|
|
21
21
|
end
|
22
22
|
|
23
23
|
Given /^I am a superuser$/ do
|
24
|
-
Given %{I am logged in as "
|
25
|
-
bigwig_id = User.find_by_email("
|
24
|
+
Given %{I am logged in as "bigwig@example.com"}
|
25
|
+
bigwig_id = User.find_by_email("bigwig@example.com").id
|
26
26
|
superuser = Superuser.create(:id => 20, :user_id => bigwig_id)
|
27
27
|
visit superuser_path
|
28
28
|
end
|
@@ -61,7 +61,10 @@ module NavigationHelpers
|
|
61
61
|
|
62
62
|
when /the (\d+)(?:st|nd|rd|th) (person|organization|conference) entry in (.*)$/i
|
63
63
|
# contributor_id = "#{$2}_#{$1.to_i-1}"
|
64
|
-
asset_contributor_path($3, $2, $1.to_i-1)
|
64
|
+
asset_contributor_path($3, $2, $1.to_i-1, :content_type=>"mods_asset")
|
65
|
+
|
66
|
+
when /the edit (.*) page for (.*)$/i
|
67
|
+
edit_catalog_path($2,:wf_step=>$1)
|
65
68
|
else
|
66
69
|
begin
|
67
70
|
page_name =~ /the (.*) page/
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<foxml:digitalObject VERSION="1.1" PID="hydra:test_default_partials" xmlns:foxml="info:fedora/fedora-system:def/foxml#" 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">
|
3
|
+
<foxml:objectProperties>
|
4
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
|
5
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
|
6
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
|
7
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2011-07-14T12:34:56.666Z"/>
|
8
|
+
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-07-14T12:34:56.666Z"/>
|
9
|
+
</foxml:objectProperties>
|
10
|
+
|
11
|
+
<foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
12
|
+
<foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2011-07-14T12:34:56.666Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="406">
|
13
|
+
<foxml:xmlContent>
|
14
|
+
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:srw_dc="info:srw/schema/1/dc-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
15
|
+
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
16
|
+
<dc:identifier>hydra:test_default_partials</dc:identifier>
|
17
|
+
<dc:description>a hydra test object with an (active)fedora model that has no specialized view partials</dc:description>
|
18
|
+
</oai_dc:dc>
|
19
|
+
</foxml:xmlContent>
|
20
|
+
</foxml:datastreamVersion>
|
21
|
+
</foxml:datastream>
|
22
|
+
|
23
|
+
<foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
24
|
+
<foxml:datastreamVersion ID="RELS-EXT.0" LABEL="" CREATED="2011-07-14T12:34:56.666Z" MIMETYPE="text/xml" SIZE="302">
|
25
|
+
<foxml:xmlContent>
|
26
|
+
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rel="info:fedora/fedora-system:def/relations-external#" xmlns:hydra="http://projecthydra.org/ns/relations#">
|
27
|
+
<rdf:Description rdf:about="info:fedora/hydra:test_default_partials">
|
28
|
+
<hasModel xmlns="info:fedora/fedora-system:def/relations-external#" rdf:resource="info:fedora/afmodel:UsesDefaultPartials"></hasModel>
|
29
|
+
</rdf:Description>
|
30
|
+
</rdf:RDF>
|
31
|
+
</foxml:xmlContent>
|
32
|
+
</foxml:datastreamVersion>
|
33
|
+
</foxml:datastream>
|
34
|
+
|
35
|
+
<foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
36
|
+
<foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2011-07-14T12:34:56.666Z" MIMETYPE="text/xml" SIZE="276">
|
37
|
+
<foxml:xmlContent>
|
38
|
+
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.3" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd">
|
39
|
+
<mods:titleInfo>
|
40
|
+
<mods:title>test object for default partials</mods:title>
|
41
|
+
</mods:titleInfo>
|
42
|
+
<mods:abstract>a hydra test object with an (active)fedora model that has no specialized view partials</mods:abstract>
|
43
|
+
<mods:identifier type="local">hydra:test_default_partials</mods:identifier>
|
44
|
+
</mods:mods>
|
45
|
+
</foxml:xmlContent>
|
46
|
+
</foxml:datastreamVersion>
|
47
|
+
</foxml:datastream>
|
48
|
+
|
49
|
+
<foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
50
|
+
<foxml:datastreamVersion ID="rightsMetadata.0" LABEL="" CREATED="2011-07-14T12:34:56.666Z" MIMETYPE="text/xml" SIZE="302">
|
51
|
+
<foxml:xmlContent>
|
52
|
+
<rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" version="0.1">
|
53
|
+
<access type="discover">
|
54
|
+
<machine>
|
55
|
+
<group>public</group>
|
56
|
+
</machine>
|
57
|
+
</access>
|
58
|
+
<access type="read">
|
59
|
+
<human/>
|
60
|
+
<machine>
|
61
|
+
<group>researcher</group>
|
62
|
+
<group>public</group>
|
63
|
+
<group>patron</group>
|
64
|
+
<group>donor</group>
|
65
|
+
</machine>
|
66
|
+
</access>
|
67
|
+
<access type="edit">
|
68
|
+
<human/>
|
69
|
+
<machine>
|
70
|
+
<person>archivist1</person>
|
71
|
+
<group>archivist</group>
|
72
|
+
<group>admin_policy_object_editor</group>
|
73
|
+
</machine>
|
74
|
+
</access>
|
75
|
+
</rightsMetadata>
|
76
|
+
</foxml:xmlContent>
|
77
|
+
</foxml:datastreamVersion>
|
78
|
+
</foxml:datastream>
|
79
|
+
|
80
|
+
</foxml:digitalObject>
|
@@ -0,0 +1,138 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<foxml:digitalObject VERSION="1.1" PID="hydra:test_generic_content" xmlns:foxml="info:fedora/fedora-system:def/foxml#" 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">
|
3
|
+
<foxml:objectProperties>
|
4
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
|
5
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
|
6
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
|
7
|
+
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2011-07-14T01:28:47.221Z"/>
|
8
|
+
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-07-14T01:30:56.432Z"/>
|
9
|
+
</foxml:objectProperties>
|
10
|
+
<foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
11
|
+
<foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2011-07-14T01:28:47.221Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="341">
|
12
|
+
<foxml:xmlContent>
|
13
|
+
<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">
|
14
|
+
<dc:identifier>hydra:test_generic_content</dc:identifier>
|
15
|
+
<dc:description>A test object using the GenericContent (active)fedora model</dc:description>
|
16
|
+
</oai_dc:dc>
|
17
|
+
</foxml:xmlContent>
|
18
|
+
</foxml:datastreamVersion>
|
19
|
+
</foxml:datastream>
|
20
|
+
<foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
21
|
+
<foxml:datastreamVersion ID="descMetadata.1" LABEL="" CREATED="2011-07-14T01:30:13.169Z" MIMETYPE="text/xml" SIZE="1552">
|
22
|
+
<foxml:xmlContent>
|
23
|
+
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.3" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd">
|
24
|
+
<titleInfo lang="">
|
25
|
+
<title>generic content</title>
|
26
|
+
</titleInfo>
|
27
|
+
<name type="personal">
|
28
|
+
<namePart type="given">Orlob</namePart>
|
29
|
+
<namePart type="family">Gryphon</namePart>
|
30
|
+
<affiliation>Fantasy</affiliation>
|
31
|
+
<role>
|
32
|
+
<roleTerm authority="marcrelator" type="text"/>
|
33
|
+
</role>
|
34
|
+
<description>Mythical Creatures</description>
|
35
|
+
</name>
|
36
|
+
<typeOfResource/>
|
37
|
+
<genre authority="marcgt"/>
|
38
|
+
<language>
|
39
|
+
<languageTerm authority="iso639-2b" type="code"/>
|
40
|
+
</language>
|
41
|
+
<physicalDescription>
|
42
|
+
<extent/>
|
43
|
+
</physicalDescription>
|
44
|
+
<abstract>A test object using the GenericContent (active)fedora model</abstract>
|
45
|
+
<subject>
|
46
|
+
<topic>flying creatures</topic>
|
47
|
+
</subject>
|
48
|
+
<relatedItem type="host">
|
49
|
+
<titleInfo>
|
50
|
+
<title/>
|
51
|
+
</titleInfo>
|
52
|
+
<identifier type="issn"/>
|
53
|
+
<originInfo>
|
54
|
+
<publisher/>
|
55
|
+
<dateIssued/>
|
56
|
+
</originInfo>
|
57
|
+
<part>
|
58
|
+
<detail type="volume">
|
59
|
+
<number/>
|
60
|
+
</detail>
|
61
|
+
<detail type="number">
|
62
|
+
<number/>
|
63
|
+
</detail>
|
64
|
+
<extent unit="pages">
|
65
|
+
<start/>
|
66
|
+
<end/>
|
67
|
+
</extent>
|
68
|
+
<date/>
|
69
|
+
</part>
|
70
|
+
</relatedItem>
|
71
|
+
<location>
|
72
|
+
<url/>
|
73
|
+
</location>
|
74
|
+
</mods>
|
75
|
+
</foxml:xmlContent>
|
76
|
+
</foxml:datastreamVersion>
|
77
|
+
</foxml:datastream>
|
78
|
+
<foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
79
|
+
<foxml:datastreamVersion ID="RELS-EXT.0" LABEL="" CREATED="2011-07-14T01:28:49.031Z" MIMETYPE="text/xml" SIZE="277">
|
80
|
+
<foxml:xmlContent>
|
81
|
+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
82
|
+
<rdf:Description rdf:about="info:fedora/hydra:test_generic_content">
|
83
|
+
<hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/afmodel:GenericContent"/>
|
84
|
+
</rdf:Description>
|
85
|
+
</rdf:RDF>
|
86
|
+
</foxml:xmlContent>
|
87
|
+
</foxml:datastreamVersion>
|
88
|
+
</foxml:datastream>
|
89
|
+
<foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
90
|
+
<foxml:datastreamVersion ID="rightsMetadata.1" LABEL="" CREATED="2011-07-14T01:30:56.432Z" MIMETYPE="text/xml" SIZE="777">
|
91
|
+
<foxml:xmlContent>
|
92
|
+
<rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" version="0.1">
|
93
|
+
<copyright>
|
94
|
+
<human/>
|
95
|
+
<machine>
|
96
|
+
<uvalicense>no</uvalicense>
|
97
|
+
</machine>
|
98
|
+
</copyright>
|
99
|
+
<access type="discover">
|
100
|
+
<human/>
|
101
|
+
<machine/>
|
102
|
+
</access>
|
103
|
+
<access type="read">
|
104
|
+
<human/>
|
105
|
+
<machine>
|
106
|
+
<group>researcher</group>
|
107
|
+
<group>public</group>
|
108
|
+
<group>patron</group>
|
109
|
+
<group>donor</group>
|
110
|
+
</machine>
|
111
|
+
</access>
|
112
|
+
<access type="edit">
|
113
|
+
<human/>
|
114
|
+
<machine>
|
115
|
+
<person>archivist1</person>
|
116
|
+
<group>archivist</group>
|
117
|
+
<group>admin_policy_object_editor</group>
|
118
|
+
</machine>
|
119
|
+
</access>
|
120
|
+
<embargo>
|
121
|
+
<human/>
|
122
|
+
<machine/>
|
123
|
+
</embargo>
|
124
|
+
</rightsMetadata>
|
125
|
+
</foxml:xmlContent>
|
126
|
+
</foxml:datastreamVersion>
|
127
|
+
</foxml:datastream>
|
128
|
+
<foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
129
|
+
<foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2011-07-14T01:28:49.367Z" MIMETYPE="text/xml" SIZE="99">
|
130
|
+
<foxml:xmlContent>
|
131
|
+
<fields>
|
132
|
+
<collection>generic_content</collection>
|
133
|
+
<depositor>archivist1</depositor>
|
134
|
+
</fields>
|
135
|
+
</foxml:xmlContent>
|
136
|
+
</foxml:datastreamVersion>
|
137
|
+
</foxml:datastream>
|
138
|
+
</foxml:digitalObject>
|