hydra-head 4.1.3 → 5.0.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metadata +28 -617
- data/.gitignore +0 -73
- data/.gitmodules +0 -4
- data/Gemfile +0 -14
- data/HISTORY.textile +0 -99
- data/INSTALL_PREREQ.textile +0 -3
- data/LICENSE +0 -14
- data/README.textile +0 -129
- data/Rakefile +0 -5
- data/app/assets/images/hydra/powered_by_hydra.png +0 -0
- data/app/assets/images/hydra/search-button.png +0 -0
- data/app/assets/javascripts/date-picker/booking/index.html +0 -368
- data/app/assets/javascripts/date-picker/calendarHTML.txt +0 -84
- data/app/assets/javascripts/date-picker/css/datepicker.css +0 -511
- data/app/assets/javascripts/date-picker/css/demo.css +0 -229
- data/app/assets/javascripts/date-picker/index.html +0 -798
- data/app/assets/javascripts/date-picker/js/datepicker.js +0 -2898
- data/app/assets/javascripts/date-picker/js/datepicker.packed.js +0 -1
- data/app/assets/javascripts/date-picker/js/lang/ar.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/cs.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/da.js +0 -10
- data/app/assets/javascripts/date-picker/js/lang/de.js +0 -10
- data/app/assets/javascripts/date-picker/js/lang/en.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/eo.js +0 -13
- data/app/assets/javascripts/date-picker/js/lang/es.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/et.js +0 -23
- data/app/assets/javascripts/date-picker/js/lang/fi.js +0 -7
- data/app/assets/javascripts/date-picker/js/lang/fr.js +0 -69
- data/app/assets/javascripts/date-picker/js/lang/he.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/hu.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/id.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/it.js +0 -11
- data/app/assets/javascripts/date-picker/js/lang/kr.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/lt.js +0 -8
- data/app/assets/javascripts/date-picker/js/lang/lv.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/nl.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/no.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/pl.js +0 -10
- data/app/assets/javascripts/date-picker/js/lang/pt-br.js +0 -11
- data/app/assets/javascripts/date-picker/js/lang/pt.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/ru.js +0 -11
- data/app/assets/javascripts/date-picker/js/lang/se.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/si.js +0 -9
- data/app/assets/javascripts/date-picker/js/lang/tr.js +0 -9
- data/app/assets/javascripts/date-picker/language/index.html +0 -240
- data/app/assets/javascripts/date-picker/media/Thumbs.db +0 -0
- data/app/assets/javascripts/date-picker/media/backstripes.gif +0 -0
- data/app/assets/javascripts/date-picker/media/bg_header.jpg +0 -0
- data/app/assets/javascripts/date-picker/media/bullet1.gif +0 -0
- data/app/assets/javascripts/date-picker/media/bullet2.gif +0 -0
- data/app/assets/javascripts/date-picker/media/cal-grey.gif +0 -0
- data/app/assets/javascripts/date-picker/media/cal.gif +0 -0
- data/app/assets/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif +0 -0
- data/app/assets/javascripts/hydra/hydra-head.js +0 -195
- data/app/assets/javascripts/hydra/mediashelf.datepicker.js +0 -39
- data/app/assets/javascripts/hydra/mediashelf.placeholder.js +0 -67
- data/app/assets/javascripts/jquery.form.js +0 -1076
- data/app/assets/javascripts/jquery.ui.datepicker.js +0 -1793
- data/app/assets/javascripts/spin.min.js +0 -2
- data/app/assets/stylesheets/hydra/html_refactor.css +0 -79
- data/app/assets/stylesheets/hydra/hydrangea-split-button.css +0 -18
- data/app/assets/stylesheets/hydra/hydrangea.css +0 -288
- data/app/assets/stylesheets/hydra/ie-styles.css +0 -149
- data/app/assets/stylesheets/hydra/styles.css +0 -946
- data/app/assets/stylesheets/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/app/assets/stylesheets/redmond/jquery-ui-1.8.5.custom.css +0 -572
- data/app/controllers/downloads_controller.rb +0 -20
- data/app/controllers/hydra/application_controller.rb +0 -5
- data/app/controllers/hydra/assets_controller.rb +0 -12
- data/app/controllers/hydra/contributors_controller.rb +0 -115
- data/app/controllers/hydra/file_assets_controller.rb +0 -3
- data/app/controllers/hydra/permissions_controller.rb +0 -117
- data/app/controllers/user_sessions_controller.rb +0 -13
- data/app/helpers/application_helper.rb +0 -3
- data/app/helpers/article_metadata_helper.rb +0 -4
- data/app/helpers/blacklight_helper.rb +0 -4
- data/app/helpers/downloads_helper.rb +0 -4
- data/app/helpers/facets_helper.rb +0 -4
- data/app/helpers/generic_content_objects_helper.rb +0 -4
- data/app/helpers/hydra/application_helper_behavior.rb +0 -8
- data/app/helpers/hydra/article_metadata_helper_behavior.rb +0 -95
- data/app/helpers/hydra/blacklight_helper_behavior.rb +0 -128
- data/app/helpers/hydra/downloads_helper_behavior.rb +0 -24
- data/app/helpers/hydra/facets_helper_behavior.rb +0 -34
- data/app/helpers/hydra/generic_content_objects_helper_behavior.rb +0 -17
- data/app/helpers/hydra/hydra_assets_helper_behavior.rb +0 -76
- data/app/helpers/hydra/hydra_fedora_metadata_helper_behavior.rb +0 -379
- data/app/helpers/hydra/hydra_helper_behavior.rb +0 -195
- data/app/helpers/hydra/hydra_uploader_helper_behavior.rb +0 -23
- data/app/helpers/hydra/inline_editable_metadata_helper_behavior.rb +0 -21
- data/app/helpers/hydra/javascript_includes_helper_behavior.rb +0 -94
- data/app/helpers/hydra/personalization_helper_behavior.rb +0 -49
- data/app/helpers/hydra/release_process_helper_behavior.rb +0 -37
- data/app/helpers/hydra_assets_helper.rb +0 -4
- data/app/helpers/hydra_fedora_metadata_helper.rb +0 -4
- data/app/helpers/hydra_helper.rb +0 -4
- data/app/helpers/hydra_uploader_helper.rb +0 -4
- data/app/helpers/inline_editable_metadata_helper.rb +0 -4
- data/app/helpers/javascript_includes_helper.rb +0 -4
- data/app/helpers/personalization_helper.rb +0 -4
- data/app/helpers/release_process_helper.rb +0 -4
- data/app/models/file_asset.rb +0 -5
- data/app/models/generic_content.rb +0 -26
- data/app/models/generic_image.rb +0 -67
- data/app/models/hydra/datastream/properties.rb +0 -24
- data/app/models/mods_asset.rb +0 -24
- data/app/models/superuser.rb +0 -14
- data/app/models/user_attribute.rb +0 -37
- data/app/models/uses_default_partials.rb +0 -23
- data/app/views/_add_assets_links.html.erb +0 -14
- data/app/views/_flash_msg.html.erb +0 -5
- data/app/views/_user_util_links.html.erb +0 -31
- data/app/views/catalog/_citation.html.erb +0 -11
- data/app/views/catalog/_constraints_element.html.erb +0 -34
- data/app/views/catalog/_delete_partials/_default.html.erb +0 -22
- data/app/views/catalog/_document_list.html.erb +0 -11
- data/app/views/catalog/_edit_partials/_default.html.erb +0 -57
- data/app/views/catalog/_edit_partials/_default_details.html.erb +0 -13
- data/app/views/catalog/_facets.html.erb +0 -37
- data/app/views/catalog/_home.html.erb +0 -6
- data/app/views/catalog/_home_text.html.erb +0 -4
- data/app/views/catalog/_index_partials/_default.html.erb +0 -20
- data/app/views/catalog/_index_partials/_default_details.html.erb +0 -14
- data/app/views/catalog/_index_partials/_default_group.html.erb +0 -15
- data/app/views/catalog/_opensearch_response_metadata.html.erb +0 -2
- data/app/views/catalog/_show_partials/_default.html.erb +0 -21
- data/app/views/catalog/_show_partials/_default_details.html.erb +0 -15
- data/app/views/catalog/_show_partials/_facets.html.erb +0 -52
- data/app/views/catalog/_sms_form.html.erb +0 -21
- data/app/views/catalog/_sort_and_per_page.html.erb +0 -23
- data/app/views/catalog/_uva_tabs.html.erb +0 -10
- data/app/views/catalog/about.html.erb +0 -0
- data/app/views/catalog/show.html.erb +0 -40
- data/app/views/contributors/_add_contributor_split_button.html.erb +0 -10
- data/app/views/contributors/_edit_conference.html.erb +0 -29
- data/app/views/contributors/_edit_organization.html.erb +0 -29
- data/app/views/contributors/_edit_person.html.erb +0 -39
- data/app/views/contributors/_index.html.erb +0 -11
- data/app/views/contributors/_new.html.erb +0 -10
- data/app/views/contributors/_show_conference.html.erb +0 -12
- data/app/views/contributors/_show_organization.html.erb +0 -21
- data/app/views/contributors/_show_person.html.erb +0 -17
- data/app/views/contributors/new.html.erb +0 -14
- data/app/views/downloads/index.html.erb +0 -1
- data/app/views/generic_content_objects/_contributor_form.html.erb +0 -11
- data/app/views/generic_content_objects/_description_form.html.erb +0 -7
- data/app/views/generic_content_objects/_edit_description.html.erb +0 -23
- data/app/views/generic_content_objects/_new.html.erb +0 -0
- data/app/views/generic_content_objects/_show_description.html.erb +0 -41
- data/app/views/generic_contents/_edit.html.erb +0 -10
- data/app/views/generic_contents/_index.html.erb +0 -21
- data/app/views/generic_contents/_show.html.erb +0 -6
- data/app/views/generic_contents/_show_content.html.erb +0 -7
- data/app/views/generic_images/_edit.html.erb +0 -36
- data/app/views/generic_images/_index.html.erb +0 -24
- data/app/views/generic_images/_show.html.erb +0 -13
- data/app/views/generic_images/_show_all.html.erb +0 -14
- data/app/views/generic_images/_show_content.html.erb +0 -7
- data/app/views/hydra/file_assets/_asset_saved_flash.html.erb +0 -2
- data/app/views/hydra/file_assets/_deletable_result.html.erb +0 -5
- data/app/views/hydra/file_assets/_file_assets_form.html.erb +0 -11
- data/app/views/hydra/file_assets/_index.html.erb +0 -29
- data/app/views/hydra/file_assets/_new.html.erb +0 -6
- data/app/views/hydra/file_assets/_result.html.erb +0 -11
- data/app/views/hydra/file_assets/index.html.erb +0 -5
- data/app/views/hydra/permissions/_edit_person_permissions.html.erb +0 -30
- data/app/views/hydra/permissions/_index.html.erb +0 -46
- data/app/views/hydra/permissions/_new.html.erb +0 -14
- data/app/views/hydra/permissions/_permissions_form.html.erb +0 -23
- data/app/views/hydra/permissions/index.html.erb +0 -1
- data/app/views/hydra/permissions/new.html.erb +0 -1
- data/app/views/layouts/hydra-head.html.erb +0 -47
- data/app/views/mods_assets/_additional_info_form.html.erb +0 -44
- data/app/views/mods_assets/_contributor_form.html.erb +0 -14
- data/app/views/mods_assets/_edit.html.erb +0 -10
- data/app/views/mods_assets/_edit_description.html.erb +0 -73
- data/app/views/mods_assets/_edit_journal.html.erb +0 -57
- data/app/views/mods_assets/_index.html.erb +0 -1
- data/app/views/mods_assets/_index_list.html.erb +0 -37
- data/app/views/mods_assets/_index_table.html.erb +0 -7
- data/app/views/mods_assets/_progress_box.html.erb +0 -82
- data/app/views/mods_assets/_publication_form.html.erb +0 -13
- data/app/views/mods_assets/_show.html.erb +0 -39
- data/app/views/mods_assets/_show_additional_info.html.erb +0 -17
- data/app/views/mods_assets/_show_contributors.html.erb +0 -7
- data/app/views/mods_assets/_show_description.html.erb +0 -35
- data/app/views/mods_assets/_show_file_assets.html.erb +0 -22
- data/app/views/mods_assets/_show_journal.html.erb +0 -42
- data/app/views/mods_assets/_show_permissions.html.erb +0 -15
- data/app/views/mods_assets/_show_publication.html.erb +0 -8
- data/app/views/shared/_delete_asset_confirmation.html.erb +0 -17
- data/app/views/user_sessions/_login_form.html.erb +0 -10
- data/app/views/user_sessions/logged_out.html.erb +0 -1
- data/config/fedora.yml +0 -15
- data/config/jetty.yml +0 -6
- data/config/locales/hydra.en.yml +0 -7
- data/config/role_map_cucumber.yml +0 -10
- data/config/role_map_development.yml +0 -12
- data/config/role_map_production.yml +0 -2
- data/config/role_map_test.yml +0 -14
- data/config/routes.rb +0 -12
- data/config/solr.yml +0 -9
- data/config/solr_mappings.yml +0 -22
- data/db/migrate/20101105214243_add_user_attributes_table.rb +0 -15
- data/db/migrate/20101108192527_create_superusers.rb +0 -12
- data/fedora_conf/conf/development/fedora.fcfg +0 -1021
- data/fedora_conf/conf/test/fedora.fcfg +0 -1021
- data/hydra-head.gemspec +0 -41
- data/init.rb +0 -4
- data/install.rb +0 -1
- data/lib/application_helper.rb +0 -3
- data/lib/generators/hydra/assets_generator.rb +0 -50
- data/lib/generators/hydra/cucumber_support_generator.rb +0 -29
- data/lib/generators/hydra/head_generator.rb +0 -165
- data/lib/generators/hydra/hyhead_fixtures_generator.rb +0 -27
- data/lib/generators/hydra/templates/catalog_controller.rb +0 -162
- data/lib/generators/hydra/templates/config/fedora.yml +0 -14
- data/lib/generators/hydra/templates/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +0 -44
- data/lib/generators/hydra/templates/config/role_map_cucumber.yml +0 -10
- data/lib/generators/hydra/templates/config/role_map_development.yml +0 -12
- data/lib/generators/hydra/templates/config/role_map_production.yml +0 -2
- data/lib/generators/hydra/templates/config/role_map_test.yml +0 -15
- data/lib/generators/hydra/templates/config/solr.yml +0 -10
- data/lib/generators/hydra/templates/config/solr_mappings.yml +0 -22
- data/lib/generators/hydra/templates/fedora_conf/conf/development/fedora.fcfg +0 -1021
- data/lib/generators/hydra/templates/fedora_conf/conf/test/fedora.fcfg +0 -1021
- data/lib/generators/hydra/templates/migrations/create_superusers.rb +0 -12
- data/lib/generators/hydra/templates/solr_conf/conf/schema.xml +0 -124
- data/lib/generators/hydra/templates/solr_conf/conf/solrconfig.xml +0 -394
- data/lib/generators/hydra/templates/solr_conf/solr.xml +0 -35
- data/lib/hydra-head.rb +0 -29
- data/lib/hydra-head/controller.rb +0 -29
- data/lib/hydra-head/engine.rb +0 -29
- data/lib/hydra-head/routes.rb +0 -90
- data/lib/hydra-head/version.rb +0 -4
- data/lib/hydra.rb +0 -52
- data/lib/hydra/assets.rb +0 -7
- data/lib/hydra/assets_controller_helper.rb +0 -122
- data/lib/hydra/catalog.rb +0 -11
- data/lib/hydra/controller.rb +0 -26
- data/lib/hydra/controller/assets_controller_behavior.rb +0 -143
- data/lib/hydra/controller/catalog_controller_behavior.rb +0 -56
- data/lib/hydra/controller/controller_behavior.rb +0 -59
- data/lib/hydra/controller/file_assets_behavior.rb +0 -144
- data/lib/hydra/controller/repository_controller_behavior.rb +0 -119
- data/lib/hydra/controller/upload_behavior.rb +0 -139
- data/lib/hydra/file_assets.rb +0 -11
- data/lib/hydra/file_assets_helper.rb +0 -12
- data/lib/hydra/generic_content.rb +0 -130
- data/lib/hydra/generic_image.rb +0 -112
- data/lib/hydra/generic_user_attributes.rb +0 -41
- data/lib/hydra/global_configurable.rb +0 -46
- data/lib/hydra/model_methods.rb +0 -104
- data/lib/hydra/model_mixins.rb +0 -8
- data/lib/hydra/model_mixins/common_metadata.rb +0 -25
- data/lib/hydra/model_mixins/solr_document_extension.rb +0 -24
- data/lib/hydra/models/file_asset.rb +0 -78
- data/lib/hydra/repository_controller.rb +0 -28
- data/lib/hydra/rights_metadata.rb +0 -194
- data/lib/hydra/solr.rb +0 -9
- data/lib/hydra/submission_workflow.rb +0 -138
- data/lib/hydra/superuser_attributes.rb +0 -19
- data/lib/hydra/ui.rb +0 -6
- data/lib/hydra/ui/controller.rb +0 -46
- data/lib/hydra/workflow.rb +0 -5
- data/lib/hydra/workflow/controller.rb +0 -3
- data/lib/mediashelf/active_fedora_helper.rb +0 -73
- data/lib/prev_next_links.rb +0 -33
- data/lib/railties/active-fedora.rake +0 -1
- data/lib/railties/hydra-fixtures.rake +0 -50
- data/lib/railties/hydra_jetty.rake +0 -53
- data/lib/user_attributes_loader.rb +0 -26
- data/solr/conf/schema.xml +0 -116
- data/solr/conf/solrconfig.xml +0 -311
- data/solr/solr.xml +0 -35
- data/solr_conf/conf/schema.xml +0 -124
- data/solr_conf/conf/solrconfig.xml +0 -394
- data/solr_conf/solr.xml +0 -35
- data/tasks/active-fedora.rake +0 -1
- data/tasks/hydra-head-fixtures.rake +0 -58
- data/tasks/hydra-head.rake +0 -209
- data/tasks/hydra_jetty.rake +0 -53
- data/tasks/hyhead_rspec.rake +0 -57
- data/tasks/replicator.rake +0 -27
- data/tasks/solrizer-fedora.rake +0 -53
- data/tasks/solrizer.rake +0 -13
- data/test_support/etc/Gemfile +0 -46
- data/test_support/etc/common_metadata_asset.rb +0 -18
- data/test_support/features/absent_model_edit.feature +0 -27
- data/test_support/features/absent_model_search_result.feature +0 -18
- data/test_support/features/absent_model_show.feature +0 -27
- data/test_support/features/button_add_assets.feature +0 -22
- data/test_support/features/button_add_generic_content.feature +0 -11
- data/test_support/features/button_add_image.feature +0 -11
- data/test_support/features/button_add_mods_asset.feature +0 -11
- data/test_support/features/button_delete_asset.feature +0 -13
- data/test_support/features/contributor_add.feature +0 -44
- data/test_support/features/default_partials_edit.feature +0 -27
- data/test_support/features/default_partials_search_result.feature +0 -22
- data/test_support/features/default_partials_show.feature +0 -24
- data/test_support/features/file_upload.feature +0 -80
- data/test_support/features/generic_content_create.feature +0 -7
- data/test_support/features/generic_content_edit.feature +0 -21
- data/test_support/features/generic_content_search_result.feature +0 -22
- data/test_support/features/generic_content_show.feature +0 -20
- data/test_support/features/generic_image_create.feature +0 -7
- data/test_support/features/generic_image_edit.feature +0 -21
- data/test_support/features/generic_image_search_result.feature +0 -22
- data/test_support/features/generic_image_show.feature +0 -20
- data/test_support/features/home_page.feature +0 -9
- data/test_support/features/html_validity.feature +0 -43
- data/test_support/features/mods_asset_contributors_edit.feature +0 -88
- data/test_support/features/mods_asset_create.feature +0 -17
- data/test_support/features/mods_asset_edit.feature +0 -65
- data/test_support/features/mods_asset_edit_without_permission.feature +0 -15
- data/test_support/features/mods_asset_search_result.feature +0 -24
- data/test_support/features/mods_asset_show.feature +0 -90
- data/test_support/features/nonexistent_object_show.feature +0 -9
- data/test_support/features/permissions_add.feature +0 -16
- data/test_support/features/permissions_edit.feature +0 -65
- data/test_support/features/step_definitions/catalog_index_steps.rb +0 -14
- data/test_support/features/step_definitions/create_asset_steps.rb +0 -3
- data/test_support/features/step_definitions/edit_metadata_steps.rb +0 -72
- data/test_support/features/step_definitions/file_list_steps.rb +0 -36
- data/test_support/features/step_definitions/html_validity_steps.rb +0 -64
- data/test_support/features/step_definitions/hydra_metadata_steps.rb +0 -3
- data/test_support/features/step_definitions/hydra_steps.rb +0 -8
- data/test_support/features/step_definitions/inline_editable_edit_steps.rb +0 -77
- data/test_support/features/step_definitions/search_steps.rb +0 -88
- data/test_support/features/step_definitions/searching_steps.rb +0 -22
- data/test_support/features/step_definitions/show_document_steps.rb +0 -89
- data/test_support/features/step_definitions/user_steps.rb +0 -42
- data/test_support/features/step_definitions/web_steps.rb +0 -223
- data/test_support/features/support/env.rb +0 -57
- data/test_support/features/support/paths.rb +0 -85
- data/test_support/features/switch_users.feature +0 -14
- data/test_support/features/view_catalog_index.feature +0 -18
- data/test_support/fixtures/empty_file.txt +0 -0
- data/test_support/fixtures/hydra_test_default_partials.foxml.xml +0 -80
- data/test_support/fixtures/hydra_test_generic_content.foxml.xml +0 -138
- data/test_support/fixtures/hydra_test_generic_image.foxml.xml +0 -395
- data/test_support/fixtures/hydra_test_no_model.foxml.xml +0 -79
- data/test_support/fixtures/hydrangea_fixture_archivist_only_mods_article.foxml.xml +0 -1212
- data/test_support/fixtures/hydrangea_fixture_file_asset1.foxml.xml +0 -4946
- data/test_support/fixtures/hydrangea_fixture_mods_article1.foxml.xml +0 -234
- data/test_support/fixtures/hydrangea_fixture_mods_article2.foxml.xml +0 -177
- data/test_support/fixtures/hydrangea_fixture_mods_article3.foxml.xml +0 -170
- data/test_support/fixtures/hydrangea_fixture_mods_dataset1.foxml.xml +0 -187
- data/test_support/fixtures/hydrangea_fixture_uploaded_svg1.foxml.xml +0 -676
- data/test_support/fixtures/hydrus_admin_class1.foxml.xml +0 -176
- data/test_support/fixtures/image.jp2 +0 -0
- data/test_support/fixtures/libra-oa_1.foxml.xml +0 -2324
- data/test_support/fixtures/libra-oa_2.foxml.xml +0 -2422
- data/test_support/fixtures/libra-oa_7.foxml.xml +0 -1735
- data/test_support/fixtures/small_file.txt +0 -1
- data/test_support/spec/controllers/catalog_controller_spec.rb +0 -138
- data/test_support/spec/controllers/catalog_controller_viewing_context_spec.rb +0 -67
- data/test_support/spec/controllers/catalog_valid_html_spec.rb +0 -123
- data/test_support/spec/controllers/contributors_controller_spec.rb +0 -67
- data/test_support/spec/controllers/file_assets_controller_spec.rb +0 -194
- data/test_support/spec/controllers/hydra-assets_controller_spec.rb +0 -151
- data/test_support/spec/controllers/hydra_controller_spec.rb +0 -43
- data/test_support/spec/controllers/hydra_ui_controller_spec.rb +0 -21
- data/test_support/spec/controllers/permissions_controller_spec.rb +0 -39
- data/test_support/spec/controllers/user_sessions_controller_spec.rb +0 -35
- data/test_support/spec/factories.rb +0 -11
- data/test_support/spec/helpers/access_controls_enforcement_spec.rb +0 -119
- data/test_support/spec/helpers/access_controls_evaluation_spec.rb +0 -26
- data/test_support/spec/helpers/assets_controller_helper_spec.rb +0 -63
- data/test_support/spec/helpers/blacklight_helper_spec.rb +0 -60
- data/test_support/spec/helpers/file_assets_helper_spec.rb +0 -116
- data/test_support/spec/helpers/generic_content_objects_helper_spec.rb +0 -17
- data/test_support/spec/helpers/hydra-repository_controller_spec.rb +0 -54
- data/test_support/spec/helpers/hydra_assets_helper_spec.rb +0 -143
- data/test_support/spec/helpers/hydra_fedora_metadata_helper_spec.rb +0 -255
- data/test_support/spec/helpers/hydra_helper_spec.rb +0 -105
- data/test_support/spec/helpers/hydra_model_methods_spec.rb +0 -88
- data/test_support/spec/helpers/hydra_uploader_helper_spec.rb +0 -26
- data/test_support/spec/helpers/javascript_includes_helper_spec.rb +0 -51
- data/test_support/spec/integration/file_asset_spec.rb +0 -68
- data/test_support/spec/lib/catalog_spec.rb +0 -23
- data/test_support/spec/lib/global_configurable_spec.rb +0 -98
- data/test_support/spec/lib/hydra_submission_workflow_spec.rb +0 -141
- data/test_support/spec/lib/model_methods_spec.rb +0 -29
- data/test_support/spec/models/file_asset_spec.rb +0 -25
- data/test_support/spec/models/generic_content_spec.rb +0 -39
- data/test_support/spec/models/generic_image_spec.rb +0 -75
- data/test_support/spec/models/mods_asset_spec.rb +0 -20
- data/test_support/spec/models/solr_document_spec.rb +0 -17
- data/test_support/spec/models/user_spec.rb +0 -94
- data/test_support/spec/rcov.opts +0 -3
- data/test_support/spec/spec.opts +0 -4
- data/test_support/spec/spec_helper.rb +0 -63
- data/test_support/spec/support/matchers/helper_matcher.rb +0 -14
- data/test_support/spec/support/matchers/solr_matchers.rb +0 -60
- data/test_support/spec/unit/hydra-head-engine_spec.rb +0 -8
- data/test_support/spec/unit/hydra-head_spec.rb +0 -8
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Feature: GenericContent Edit View
|
|
2
|
-
I want to see appropriate information for editing GenericContent objects
|
|
3
|
-
|
|
4
|
-
Scenario: In Edit View for GenericContent object
|
|
5
|
-
When I am on the edit document page for hydra:test_generic_content
|
|
6
|
-
Then I should see "A test object using the GenericContent (active)fedora model"
|
|
7
|
-
|
|
8
|
-
Scenario: html5 valid - unauthenticated
|
|
9
|
-
When I am on the edit document page for hydra:test_generic_content
|
|
10
|
-
Then the page should be HTML5 valid
|
|
11
|
-
|
|
12
|
-
Scenario: html5 valid - authenticated (read)
|
|
13
|
-
Given I am logged in as "public@nopermissions.com"
|
|
14
|
-
When I am on the edit document page for hydra:test_generic_content
|
|
15
|
-
Then the page should be HTML5 valid
|
|
16
|
-
|
|
17
|
-
Scenario: html5 valid - authenticated (edit)
|
|
18
|
-
Given I am logged in as "archivist1@example.com"
|
|
19
|
-
When I am on the edit document page for hydra:test_generic_content
|
|
20
|
-
Then the page should be HTML5 valid
|
|
21
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Feature: GenericContent Search Results
|
|
2
|
-
I want to see appropriate information for GenericContent objects in a search result
|
|
3
|
-
|
|
4
|
-
Scenario: Have a GenericContent Search Result
|
|
5
|
-
Given I am on the home page
|
|
6
|
-
And I fill in "q" with "generic content"
|
|
7
|
-
When I press "search"
|
|
8
|
-
Then I should see a link to "the show document page for hydra:test_generic_content"
|
|
9
|
-
|
|
10
|
-
Scenario: html5 valid - unauthenticated
|
|
11
|
-
Given I am on the home page
|
|
12
|
-
And I fill in "q" with "generic content"
|
|
13
|
-
When I press "search"
|
|
14
|
-
Then the page should be HTML5 valid
|
|
15
|
-
|
|
16
|
-
Scenario: html5 valid - authenticated
|
|
17
|
-
Given I am logged in as "archivist1@example.com"
|
|
18
|
-
And I am on the home page
|
|
19
|
-
And I fill in "q" with "generic content"
|
|
20
|
-
When I press "search"
|
|
21
|
-
Then the page should be HTML5 valid
|
|
22
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Feature: GenericContent Show View
|
|
2
|
-
I want to see appropriate information for GenericContent objects in the show view
|
|
3
|
-
|
|
4
|
-
Scenario: In Show View for GenericContent Object
|
|
5
|
-
When I am on the show document page for hydra:test_generic_content
|
|
6
|
-
Then I should see "A test object using the GenericContent (active)fedora model"
|
|
7
|
-
|
|
8
|
-
Scenario: html5 valid - unauthenticated
|
|
9
|
-
When I am on the show document page for hydra:test_generic_content
|
|
10
|
-
Then the page should be HTML5 valid
|
|
11
|
-
|
|
12
|
-
Scenario: html5 valid - authenticated (read)
|
|
13
|
-
Given I am logged in as "public@nopermissions.com"
|
|
14
|
-
When I am on the show document page for hydra:test_generic_content
|
|
15
|
-
Then the page should be HTML5 valid
|
|
16
|
-
|
|
17
|
-
Scenario: html5 valid - authenticated (edit)
|
|
18
|
-
Given I am logged in as "archivist1@example.com"
|
|
19
|
-
When I am on the show document page for hydra:test_generic_content
|
|
20
|
-
Then the page should be HTML5 valid
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Feature: GenericImage Edit View
|
|
2
|
-
I want to see appropriate information for editing GenericImage objects
|
|
3
|
-
|
|
4
|
-
Scenario: In Edit View for GenericImage Object
|
|
5
|
-
When I am on the edit document page for hydra:test_generic_image
|
|
6
|
-
Then I should see "A test object using the GenericImage (active)fedora model"
|
|
7
|
-
|
|
8
|
-
Scenario: html5 valid - unauthenticated
|
|
9
|
-
When I am on the edit document page for hydra:test_generic_image
|
|
10
|
-
Then the page should be HTML5 valid
|
|
11
|
-
|
|
12
|
-
Scenario: html5 valid - authenticated (read)
|
|
13
|
-
Given I am logged in as "public@nopermissions.com"
|
|
14
|
-
When I am on the edit document page for hydra:test_generic_image
|
|
15
|
-
Then the page should be HTML5 valid
|
|
16
|
-
|
|
17
|
-
Scenario: html5 valid - authenticated (edit)
|
|
18
|
-
Given I am logged in as "archivist1@example.com"
|
|
19
|
-
When I am on the edit document page for hydra:test_generic_image
|
|
20
|
-
Then the page should be HTML5 valid
|
|
21
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Feature: GenericImage Search Results
|
|
2
|
-
I want to see appropriate information for GenericImage objects in a search result
|
|
3
|
-
|
|
4
|
-
Scenario: Have a GenericImage Search Result
|
|
5
|
-
Given I am on the home page
|
|
6
|
-
And I fill in "q" with "generic image"
|
|
7
|
-
When I press "search"
|
|
8
|
-
Then I should see a link to "the show document page for hydra:test_generic_image"
|
|
9
|
-
|
|
10
|
-
Scenario: html5 valid - unauthenticated
|
|
11
|
-
Given I am on the home page
|
|
12
|
-
And I fill in "q" with "generic image"
|
|
13
|
-
When I press "search"
|
|
14
|
-
Then the page should be HTML5 valid
|
|
15
|
-
|
|
16
|
-
Scenario: html5 valid - authenticated
|
|
17
|
-
Given I am logged in as "archivist1@example.com"
|
|
18
|
-
And I am on the home page
|
|
19
|
-
And I fill in "q" with "generic image"
|
|
20
|
-
When I press "search"
|
|
21
|
-
Then the page should be HTML5 valid
|
|
22
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Feature: GenericImage Show View
|
|
2
|
-
I want to see appropriate information for GenericImage objects in the show view
|
|
3
|
-
|
|
4
|
-
Scenario: In Show View for GenericImage Object
|
|
5
|
-
When I am on the show document page for hydra:test_generic_image
|
|
6
|
-
Then I should see "A test object using the GenericImage (active)fedora model"
|
|
7
|
-
|
|
8
|
-
Scenario: html5 valid - unauthenticated
|
|
9
|
-
When I am on the show document page for hydra:test_generic_image
|
|
10
|
-
Then the page should be HTML5 valid
|
|
11
|
-
|
|
12
|
-
Scenario: html5 valid - authenticated (read)
|
|
13
|
-
Given I am logged in as "public@nopermissions.com"
|
|
14
|
-
When I am on the show document page for hydra:test_generic_image
|
|
15
|
-
Then the page should be HTML5 valid
|
|
16
|
-
|
|
17
|
-
Scenario: html5 valid - authenticated (edit)
|
|
18
|
-
Given I am logged in as "archivist1@example.com"
|
|
19
|
-
When I am on the show document page for hydra:test_generic_image
|
|
20
|
-
Then the page should be HTML5 valid
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
Feature: HTML validity
|
|
2
|
-
In order to verify that the application in HTML5 valid
|
|
3
|
-
As a user
|
|
4
|
-
I want to the pages to conform to the W3C HTML5 validation
|
|
5
|
-
|
|
6
|
-
Scenario: Home page (unauthenticated)
|
|
7
|
-
When I am on the home page
|
|
8
|
-
Then the page should be HTML5 valid
|
|
9
|
-
|
|
10
|
-
Scenario: Home page (authenticated)
|
|
11
|
-
Given I am logged in as "archivist1@example.com"
|
|
12
|
-
When I am on the home page
|
|
13
|
-
Then the page should be HTML5 valid
|
|
14
|
-
|
|
15
|
-
Scenario: Search Results (unauthenticated)
|
|
16
|
-
Given I am on the home page
|
|
17
|
-
When I follow "Article"
|
|
18
|
-
Then I should see "TITLE OF HOST JOURNAL"
|
|
19
|
-
And the page should be HTML5 valid
|
|
20
|
-
|
|
21
|
-
Scenario: Search Results (authenticated)
|
|
22
|
-
Given I am logged in as "archivist1@example.com"
|
|
23
|
-
When I am on the home page
|
|
24
|
-
And I follow "TOPIC 1"
|
|
25
|
-
Then I should see "TITLE OF HOST JOURNAL"
|
|
26
|
-
And the page should be HTML5 valid
|
|
27
|
-
|
|
28
|
-
Scenario: Record view browse (unauthenticated)
|
|
29
|
-
Given I am on the show document page for hydrangea:fixture_mods_article2
|
|
30
|
-
Then I should see "TITLE OF HOST JOURNAL"
|
|
31
|
-
And the page should be HTML5 valid
|
|
32
|
-
|
|
33
|
-
Scenario: Record view browse (authenticated)
|
|
34
|
-
Given I am logged in as "archivist1@example.com"
|
|
35
|
-
When I am on the show document page for hydrangea:fixture_mods_article2
|
|
36
|
-
Then I should see "TITLE OF HOST JOURNAL"
|
|
37
|
-
And the page should be HTML5 valid
|
|
38
|
-
|
|
39
|
-
Scenario: Record view edit (authenticated)
|
|
40
|
-
Given I am logged in as "archivist1@example.com"
|
|
41
|
-
When I am on the edit publication page for hydrangea:fixture_mods_article1
|
|
42
|
-
Then the "journal_0_title_info_main_title" field should contain "TITLE OF HOST JOURNAL"
|
|
43
|
-
And the page should be HTML5 valid
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
@contributors
|
|
2
|
-
Feature: Edit Article Contributors
|
|
3
|
-
As a person with edit permissions
|
|
4
|
-
In order to manage the contributor entries (names) in a MODS document
|
|
5
|
-
I want to see and edit the contributors associated with an article
|
|
6
|
-
|
|
7
|
-
Scenario: Viewing contributors in edit mode
|
|
8
|
-
Given I am logged in as "archivist1@example.com"
|
|
9
|
-
And I am on the edit document page for hydrangea:fixture_mods_article1
|
|
10
|
-
Then the "First Name" field should contain "GIVEN NAMES"
|
|
11
|
-
And the "Last Name" field should contain "FAMILY NAME"
|
|
12
|
-
# And I should see "Author" within "select[rel=person_0_role_text]"
|
|
13
|
-
# And the "role" field for "the 1st person" entry should contain "Author"
|
|
14
|
-
And the "Institution" field should contain "FACULTY, UNIVERSITY"
|
|
15
|
-
# And I should see a delete contributor button for "the 1st person entry in hydrangea:fixture_mods_article1" # first person entry is not deletable
|
|
16
|
-
|
|
17
|
-
# Then the "First Name" field for "person_1" should contain "Henrietta"
|
|
18
|
-
# And the "Last Name" field for "person_1" should contain "Lacks"
|
|
19
|
-
# And the "Role" field for "person_1" should contain "Contributor"
|
|
20
|
-
# And the "Institution" field for "person_1" should contain "Baltimore"
|
|
21
|
-
Then the "First Name" field within "#person_1" should contain "Henrietta"
|
|
22
|
-
And the "Last Name" field within "#person_1" should contain "Lacks"
|
|
23
|
-
# And I should see "Contributor" within "select[rel=person_1_role_text]" # Author roles are implicit
|
|
24
|
-
And the "Institution" field within "#person_1" should contain "Baltimore"
|
|
25
|
-
And I should see a delete contributor button for "the 2nd person entry in hydrangea:fixture_mods_article1"
|
|
26
|
-
|
|
27
|
-
@local
|
|
28
|
-
Scenario: Viewing contributors in edit mode
|
|
29
|
-
Given I am logged in as "archivist1@example.com"
|
|
30
|
-
And I am on the edit document page for libra-oa:1
|
|
31
|
-
Then the "First Name" field should contain "Mary"
|
|
32
|
-
And the "Last Name" field should contain "Gibson"
|
|
33
|
-
And the "Institution" field should contain "University of Virginia"
|
|
34
|
-
|
|
35
|
-
Scenario: Viewing contributors in browse mode
|
|
36
|
-
Given I am logged in as "archivist1@example.com"
|
|
37
|
-
And I am on the show document page for hydrangea:fixture_mods_article1
|
|
38
|
-
Then I should see "GIVEN NAMES" within "#contributors_list"
|
|
39
|
-
And I should see "FAMILY NAME" within "#contributors_list"
|
|
40
|
-
# And I should see "Creator" within "#contributor_role" # Authors role is implicit
|
|
41
|
-
# And the "role" field for "the 1st person" entry should contain "Author"
|
|
42
|
-
And I should see "FACULTY, UNIVERSITY" within "#contributors_list"
|
|
43
|
-
And I should not see a delete contributor button for "the 1st person entry in hydrangea:fixture_mods_article1"
|
|
44
|
-
|
|
45
|
-
# Then the "First Name" field for "person_1" should contain "Henrietta"
|
|
46
|
-
# And the "Last Name" field for "person_1" should contain "Lacks"
|
|
47
|
-
# And the "Role" field for "person_1" should contain "Contributor"
|
|
48
|
-
# And the "Institution" field for "person_1" should contain "Baltimore"
|
|
49
|
-
Then I should see "Henrietta"
|
|
50
|
-
And I should see "Lacks"
|
|
51
|
-
# And I should see "Contributor" within "#person_1 #contributor_role" # Authors role is implicit
|
|
52
|
-
And I should see "Baltimore"
|
|
53
|
-
And I should not see a delete contributor button for "the 2nd person entry in hydrangea:fixture_mods_article1"
|
|
54
|
-
|
|
55
|
-
# The following 6 lines are commented out due to the organization being removed from the contributors forms in the Mods Asset Workflow document
|
|
56
|
-
#Then the "organization_0_namePart" field should contain "NSF"
|
|
57
|
-
#And I should see "Funder" within "#organization_0"
|
|
58
|
-
#And I should not see a delete contributor button for "the 1st organization entry in hydrangea:fixture_mods_article1"
|
|
59
|
-
|
|
60
|
-
#Then I should see "some conference"
|
|
61
|
-
#And I should see "Host" within "#conference_0"
|
|
62
|
-
#And I should not see a delete contributor button for "the 1st conference entry in hydrangea:fixture_mods_article1"
|
|
63
|
-
|
|
64
|
-
@local
|
|
65
|
-
Scenario: Viewing contributors in browse mode
|
|
66
|
-
Given I am logged in as "archivist1@example.com"
|
|
67
|
-
And I am on the show document page for libra-oa:1
|
|
68
|
-
Then I should see "Mary Gibson" within "#contributors_list"
|
|
69
|
-
And I should see "Author" within ".contributor_role"
|
|
70
|
-
And I should see "University of Virginia" within "#contributors_list"
|
|
71
|
-
And I should not see a delete contributor button for "the 1st person entry in libra-oa:1"
|
|
72
|
-
|
|
73
|
-
Scenario: Deleting contributors
|
|
74
|
-
Given I am logged in as "archivist1@example.com"
|
|
75
|
-
When I am on the edit contributor page for libra-oa:1
|
|
76
|
-
And I press "Add Another Author"
|
|
77
|
-
When I fill in "person_1_computing_id" with "012345"
|
|
78
|
-
And I fill in "person_1_first_name" with "Jane"
|
|
79
|
-
And I fill in "person_1_last_name" with "Dough"
|
|
80
|
-
Then the "person_1_last_name" field within "#person_1" should contain "Dough"
|
|
81
|
-
And I fill in "person_1_description" with "Pizza Chef"
|
|
82
|
-
And I fill in "person_1_institution" with "Academy for Aspiring Young Pizza Chefs"
|
|
83
|
-
When I press "Continue"
|
|
84
|
-
And I am on the edit contributor page for libra-oa:1
|
|
85
|
-
Then the "person_1_last_name" field within "#person_1" should contain "Dough"
|
|
86
|
-
When I follow "Delete"
|
|
87
|
-
And I press "Continue"
|
|
88
|
-
Then I should not see "Dough"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@new @dataset
|
|
2
|
-
Feature: ModsAsset Create View
|
|
3
|
-
As a Depositor
|
|
4
|
-
I want to see appropriate information for creating ModsAsset objects
|
|
5
|
-
In order to submit a new MODS Asset
|
|
6
|
-
|
|
7
|
-
Scenario: Create Workflow for New ModsAsset Object
|
|
8
|
-
Given I am logged in as "archivist1@example.com"
|
|
9
|
-
When I create a new mods_asset
|
|
10
|
-
Then I should see "Created a Mods Asset"
|
|
11
|
-
And I should see "Now it's ready to be edited."
|
|
12
|
-
And the "person_0_first_name" field should contain ""
|
|
13
|
-
|
|
14
|
-
Scenario: html5 valid
|
|
15
|
-
Given I am logged in as "archivist1@example.com"
|
|
16
|
-
When I create a new mods_asset
|
|
17
|
-
Then the page should be HTML5 valid
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@edit @articles
|
|
2
|
-
Feature: Edit a ModsAsset object
|
|
3
|
-
As a Depositor
|
|
4
|
-
I want to see appropriate information for editing ModsAsset objects
|
|
5
|
-
|
|
6
|
-
Scenario: Edit Page for Mods Asset
|
|
7
|
-
Given I am logged in as "archivist1@example.com"
|
|
8
|
-
And I am on the edit document page for hydrangea:fixture_mods_article1
|
|
9
|
-
Then the "person_0_first_name" field should contain "GIVEN NAMES"
|
|
10
|
-
And I should see a "Continue" button
|
|
11
|
-
|
|
12
|
-
Scenario: Visit Document Edit Page and see the file assets
|
|
13
|
-
Given I am logged in as "archivist1@example.com"
|
|
14
|
-
And I am on the edit files page for libra-oa:1
|
|
15
|
-
And I select "1" from "number_of_files"
|
|
16
|
-
And I press "Continue"
|
|
17
|
-
# Then the "title_info_main_title" field should contain "The Smallest Victims of the "
|
|
18
|
-
Then I should see "gibson.pdf" within "tr.file_asset"
|
|
19
|
-
And I should see a "Delete" button
|
|
20
|
-
|
|
21
|
-
Scenario: Viewing browse/edit buttons
|
|
22
|
-
Given I am logged in as "archivist1@example.com"
|
|
23
|
-
When I am on the edit document page for hydrangea:fixture_mods_article1
|
|
24
|
-
Then I should see a "div" tag with a "class" attribute of "edit-browse"
|
|
25
|
-
|
|
26
|
-
Scenario: Entering a non-valid embargo date
|
|
27
|
-
Given I am logged in as "archivist1@example.com"
|
|
28
|
-
When I am on the edit additional_info page for hydrangea:fixture_mods_article1
|
|
29
|
-
And I fill in "embargo_embargo_release_date" with "25-25-25"
|
|
30
|
-
And I press "Continue"
|
|
31
|
-
Then I should see "You must enter a valid release date."
|
|
32
|
-
|
|
33
|
-
Scenario: Entering different date formats for embargo
|
|
34
|
-
Given I am logged in as "archivist1@example.com"
|
|
35
|
-
When I am on the edit additional_info page for hydrangea:fixture_mods_article1
|
|
36
|
-
And I fill in "embargo_embargo_release_date" with "2010-11-01"
|
|
37
|
-
When I press "Continue"
|
|
38
|
-
And I am on the edit additional_info page for hydrangea:fixture_mods_article1
|
|
39
|
-
Then the "embargo_embargo_release_date" field within "#release_date_field" should contain "2010-11-01"
|
|
40
|
-
When I fill in "embargo_embargo_release_date" with "November 1st 2010"
|
|
41
|
-
And I press "Continue"
|
|
42
|
-
When I am on the edit additional_info page for hydrangea:fixture_mods_article1
|
|
43
|
-
Then the "embargo_embargo_release_date" field within "#release_date_field" should contain "2010-11-01"
|
|
44
|
-
# The last 2 lines are just clean up.
|
|
45
|
-
Then I fill in "embargo_embargo_release_date" with ""
|
|
46
|
-
And I press "Continue"
|
|
47
|
-
|
|
48
|
-
Scenario: Save and Finish
|
|
49
|
-
Given I am logged in as "archivist1@example.com"
|
|
50
|
-
When I am on the edit additional_info page for hydrangea:fixture_mods_article1
|
|
51
|
-
When I press "Save and Finish"
|
|
52
|
-
Then I should see "Switch to edit view"
|
|
53
|
-
And I should see "Your changes have been saved"
|
|
54
|
-
|
|
55
|
-
Scenario: html5 valid
|
|
56
|
-
Given I am logged in as "archivist1@example.com"
|
|
57
|
-
When I am on the edit document page for hydrangea:fixture_mods_article1
|
|
58
|
-
Then the page should be HTML5 valid
|
|
59
|
-
|
|
60
|
-
# the mockups for Libra did not have a delete confirmation
|
|
61
|
-
@overwritten
|
|
62
|
-
Scenario: Delete Confirmation on Edit Page
|
|
63
|
-
Given I am logged in as "archivist1@example.com"
|
|
64
|
-
When I am on the edit document page for hydrangea:fixture_mods_article1
|
|
65
|
-
Then I should see a "div" tag with a "class" attribute of "delete-asset"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@pending @articles
|
|
2
|
-
Feature: Edit an article without permission
|
|
3
|
-
As a logged-in user
|
|
4
|
-
attempt to edit an article
|
|
5
|
-
without sufficient permissions
|
|
6
|
-
|
|
7
|
-
Scenario: Visit Document Edit Page
|
|
8
|
-
Given I am logged in as "archivist1@example.com"
|
|
9
|
-
When I am on the edit document page for hydrangea:fixture_mods_article2
|
|
10
|
-
Then I should see a "div" tag with a "class" attribute of "notice"
|
|
11
|
-
|
|
12
|
-
Scenario: Authenticated but not Authorized to Edit
|
|
13
|
-
Given I am logged in as "archivist1@example.com"
|
|
14
|
-
When I am on the edit document page for hydrangea:fixture_mods_article2
|
|
15
|
-
Then the page should be HTML5 valid
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@catalog @articles
|
|
2
|
-
Feature: ModsAsset Search Result
|
|
3
|
-
As a user
|
|
4
|
-
I want to see appropriate information for ModsAsset objects in a search result
|
|
5
|
-
|
|
6
|
-
Scenario: Search Results have ModsAsset info
|
|
7
|
-
Given I am on the home page
|
|
8
|
-
And I fill in "q" with "1234-5678"
|
|
9
|
-
When I press "search"
|
|
10
|
-
Then I should see a link to "the show document page for hydrangea:fixture_mods_article3"
|
|
11
|
-
And I should see "Test Article"
|
|
12
|
-
And I should see "Aug. 1, 1998"
|
|
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
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
@show @articles
|
|
2
|
-
Feature: ModsAsset Show View
|
|
3
|
-
I want to see appropriate information for ModsAsset objects in the show view
|
|
4
|
-
|
|
5
|
-
@overwritten
|
|
6
|
-
Scenario: Public visit Publicly Viewable Document
|
|
7
|
-
Given I am on the show document page for hydrangea:fixture_mods_article1
|
|
8
|
-
Then I should see "ARTICLE TITLE"
|
|
9
|
-
And I should see "GIVEN NAMES"
|
|
10
|
-
And I should see "FAMILY NAME"
|
|
11
|
-
And I should see "FACULTY, UNIVERSITY"
|
|
12
|
-
And I should see "TOPIC 1"
|
|
13
|
-
And I should see "TOPIC 2"
|
|
14
|
-
And I should see "CONTROLLED TERM"
|
|
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"
|
|
29
|
-
|
|
30
|
-
Scenario: Public visit Document Show Page for a private document
|
|
31
|
-
Given I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
|
32
|
-
Then I should be on the login page
|
|
33
|
-
And I should see "You do not have sufficient access privileges to read this document, which has been marked private" within ".alert"
|
|
34
|
-
|
|
35
|
-
@overwritten
|
|
36
|
-
Scenario: Superuser visits Document Show Page for a private document
|
|
37
|
-
Given I am a superuser
|
|
38
|
-
And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
|
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"
|
|
46
|
-
|
|
47
|
-
@overwritten
|
|
48
|
-
Scenario: Archivist visits Show Page for Restricted Document
|
|
49
|
-
Given I am logged in as "archivist1@example.com"
|
|
50
|
-
And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
|
|
51
|
-
Then I should see "Article for Archivist Eyes Only"
|
|
52
|
-
And I should see "Sally"
|
|
53
|
-
And I should see "Whocontributes"
|
|
54
|
-
And I should see "University of Contributions"
|
|
55
|
-
And I should see "contributing"
|
|
56
|
-
And I should see "exclusiveness"
|
|
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
|
|
90
|
-
|