hydra-head 4.1.3 → 5.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/app/models/file_asset.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# GenericContent: EXAMPLE Model that conforms to the Hydra genericContent and genericMetadata cModels
|
2
|
-
require 'deprecation'
|
3
|
-
class GenericContent < ActiveFedora::Base
|
4
|
-
extend Deprecation
|
5
|
-
|
6
|
-
# Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
|
7
|
-
# FIXME: should this have "include Hydra::ModelMixins::CommonMetadata" instead?
|
8
|
-
has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
|
9
|
-
|
10
|
-
# Uses the GenericContent mixin to conform to the Hydra genericContent cModel
|
11
|
-
include Hydra::GenericContent
|
12
|
-
|
13
|
-
has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsGenericContent
|
14
|
-
|
15
|
-
# A place to put extra metadata values, e.g. the user id of the object depositor (for permissions)
|
16
|
-
has_metadata :name => "properties", :type => Hydra::Datastream::Properties
|
17
|
-
|
18
|
-
# adds helpful methods for basic hydra objects.
|
19
|
-
# FIXME: redundate with GenericContent include above??
|
20
|
-
include Hydra::ModelMethods
|
21
|
-
|
22
|
-
def initialize( attrs={} )
|
23
|
-
Deprecation.warn(GenericContent, "GenericContent is deprecated and will be removed in hydra-head 5.x")
|
24
|
-
super
|
25
|
-
end
|
26
|
-
end
|
data/app/models/generic_image.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
# GenericImage:
|
2
|
-
# EXAMPLE Model that conforms to the Hydra genericImage, genericMetadata and genericContent cModels
|
3
|
-
#
|
4
|
-
# Default content datastreams: content, original (optional), max, thumbnail, screen
|
5
|
-
#
|
6
|
-
# Sample Usages:
|
7
|
-
# From file:
|
8
|
-
# my_image = File.new("#{Rails.root}/spec/fixtures/image.tiff")
|
9
|
-
# gi = GenericImage.new
|
10
|
-
# gi.content=my_image
|
11
|
-
# gi.save
|
12
|
-
#
|
13
|
-
# From url:
|
14
|
-
# my_image = "http://example.com/path/to/some/image.jpeg"
|
15
|
-
# gi = HydraImage.new
|
16
|
-
# gi.content=my_image
|
17
|
-
#
|
18
|
-
# From binary string:
|
19
|
-
# my_image = File.open("#{Rails.root}/spec/fixtures/image.tiff")
|
20
|
-
# my_blob = my_image.read
|
21
|
-
# gi = HydraImage.new
|
22
|
-
# gi.content={ :blob=> my_blob, :extension => ".tiff" }
|
23
|
-
#
|
24
|
-
# To create the derived images:
|
25
|
-
# gi.derive_all # creates max, screen and thumbnail from content datastream
|
26
|
-
# gi.derive_max
|
27
|
-
# gi.derive_screen
|
28
|
-
# gi.derive_thumbnail
|
29
|
-
#
|
30
|
-
# To get the content of a default datastream:
|
31
|
-
# max = gi.max
|
32
|
-
# screen = gi.screen
|
33
|
-
# thumbnail = gi.thumbnail
|
34
|
-
#
|
35
|
-
# To determine if a particular datastream exists for an image:
|
36
|
-
# gi.has_content?
|
37
|
-
# gi.has_original?
|
38
|
-
# gi.has_max?
|
39
|
-
# gi.has_screen?
|
40
|
-
# gi.has_thumbnail?
|
41
|
-
require 'hydra'
|
42
|
-
require 'deprecation'
|
43
|
-
|
44
|
-
class GenericImage < ActiveFedora::Base
|
45
|
-
extend Deprecation
|
46
|
-
|
47
|
-
# Uses the GenericImage mixin to conform to the Hydra genericImage cModel (auto-includes on GenericContent behaviors)
|
48
|
-
include Hydra::GenericImage
|
49
|
-
|
50
|
-
# adds helpful methods for basic hydra objects
|
51
|
-
include Hydra::ModelMethods
|
52
|
-
|
53
|
-
# Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
|
54
|
-
# FIXME: should this have "include Hydra::ModelMixins::CommonMetadata" instead?
|
55
|
-
has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
|
56
|
-
|
57
|
-
has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsImage
|
58
|
-
|
59
|
-
# A place to put extra metadata values, e.g. the user id of the object depositor (for permissions)
|
60
|
-
has_metadata :name => "properties", :type => Hydra::Datastream::Properties
|
61
|
-
|
62
|
-
def initialize( attrs={} )
|
63
|
-
Deprecation.warn(GenericImage, "GenericImage is deprecated and will be removed in hydra-head 5.x")
|
64
|
-
super
|
65
|
-
end
|
66
|
-
|
67
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# properties datastream: catch-all for info that didn't have another home. Particularly depositor.
|
2
|
-
module Hydra::Datastream
|
3
|
-
class Properties < ActiveFedora::NokogiriDatastream
|
4
|
-
set_terminology do |t|
|
5
|
-
t.root(:path=>"fields", :xmlns => '', :namespace_prefix => nil)
|
6
|
-
|
7
|
-
# This is where we put the user id of the object depositor -- impacts permissions/access controls
|
8
|
-
t.depositor :xmlns => '', :namespace_prefix => nil
|
9
|
-
|
10
|
-
# @deprecated Collection should be tracked in RELS-EXT RDF. collection term will be removed no later than release 6.x
|
11
|
-
t.collection :xmlns => '', :namespace_prefix => nil
|
12
|
-
# @deprecated Title should be tracked in descMetadata. title term will be removed no later than release 6.x
|
13
|
-
t.title :xmlns => '', :namespace_prefix => nil
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.xml_template
|
17
|
-
builder = Nokogiri::XML::Builder.new do |xml|
|
18
|
-
xml.fields
|
19
|
-
end
|
20
|
-
|
21
|
-
builder.doc
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
data/app/models/mods_asset.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# An EXAMPLE Basic Model for Assets that conform to Hydra commonMetadata cModel and have basic MODS metadata (currently "Article" is the MODS exemplar)
|
2
|
-
class ModsAsset < ActiveFedora::Base
|
3
|
-
|
4
|
-
# declares a rightsMetadata datastream with type Hydra::Datastream::RightsMetadata
|
5
|
-
# basically, it is another expression of
|
6
|
-
# has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
|
7
|
-
include Hydra::ModelMixins::CommonMetadata
|
8
|
-
|
9
|
-
## Convenience methods for manipulating the rights metadata datastream
|
10
|
-
include Hydra::ModelMixins::RightsMetadata
|
11
|
-
|
12
|
-
# declares a descMetadata datastream with type Hydra::Datastream::ModsArticle
|
13
|
-
# basically, it is another expression of
|
14
|
-
# has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsArticle
|
15
|
-
include Hydra::ModelMixins::ModsObject
|
16
|
-
|
17
|
-
# adds helpful methods for basic hydra objects
|
18
|
-
include Hydra::ModelMethods
|
19
|
-
|
20
|
-
# adds file_objects methods
|
21
|
-
include ActiveFedora::FileManagement
|
22
|
-
|
23
|
-
|
24
|
-
end
|
data/app/models/superuser.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# @deprecated - we are moving away from this approach; this code will be removed no later than release 6.x
|
2
|
-
# To make a superuser record, look up the ID (not the login) of a previously created user,
|
3
|
-
# and then insert that id into the superusers table
|
4
|
-
require 'deprecation'
|
5
|
-
class Superuser < ActiveRecord::Base
|
6
|
-
extend Deprecation
|
7
|
-
belongs_to :user
|
8
|
-
|
9
|
-
def initialize
|
10
|
-
Deprecation.warn(Superuser, "Superuser is deprecated and will be removed from HydraHead in release 5 or 6; we are moving away from this approach.")
|
11
|
-
super
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# @deprecated - from the original implementation of UVA's Libra. This type of behavior should be application-specific. This will be removed no later than release 6.x
|
2
|
-
require 'deprecation'
|
3
|
-
class UserAttribute < ActiveRecord::Base
|
4
|
-
belongs_to :user
|
5
|
-
extend Deprecation
|
6
|
-
|
7
|
-
self.deprecation_horizon = 'hydra-head 5.x'
|
8
|
-
def initialize
|
9
|
-
Deprecation.warn(UserAttribute, "UserAttribute is deprecated and will be removed from HydraHead in release 5 or 6; this behavior should be implemented at the app level.")
|
10
|
-
super
|
11
|
-
end
|
12
|
-
|
13
|
-
|
14
|
-
# Finds the user_attributes based on login
|
15
|
-
# @param [sting] login the login of the user
|
16
|
-
# @return the user attribute object or nil
|
17
|
-
def self.find_by_login(login)
|
18
|
-
Deprecation.warn(UserAttribute, "UserAttribute.find_by_login is deprecated and will be removed from HydraHead in release 5 or 6; this behavior should be implemented at the app level.")
|
19
|
-
user = User.find_by_login(login)
|
20
|
-
if user
|
21
|
-
UserAttribute.find_by_user_id(user.id)
|
22
|
-
else
|
23
|
-
nil
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
# Concatenates first and last name
|
28
|
-
# @return [string] the first_name + last_name
|
29
|
-
def full_name
|
30
|
-
fn = first_name.nil? ? "" : first_name
|
31
|
-
ln = last_name.nil? ? "" : last_name
|
32
|
-
[fn, ln].join(" ").strip
|
33
|
-
end
|
34
|
-
|
35
|
-
deprecation_deprecate :full_name
|
36
|
-
|
37
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# TODO: Move TO test_support
|
2
|
-
# this model exists largely to exercise the default partials for models that don't have their own
|
3
|
-
# that is, if an (active)fedora object uses the ModsAsset model, then hydra-head will use partials in views/mods_assets to display those objects
|
4
|
-
# however, if an (active)fedora object uses a model without its own partials in the views folder, then hydra-head will use views/catalog/xxx to display those objects.
|
5
|
-
# a Fedora object for the Hypatia SET hydra content type
|
6
|
-
class UsesDefaultPartials < ActiveFedora::Base
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
ActiveSupport::Deprecation.warn("UsesDefaultPartials is for testing only. It will be moved into test_support")
|
10
|
-
super
|
11
|
-
end
|
12
|
-
|
13
|
-
has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsGenericContent
|
14
|
-
|
15
|
-
# declares a rightsMetadata datastream with type Hydra::Datastream::RightsMetadata
|
16
|
-
# basically, it is another expression of
|
17
|
-
# has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
|
18
|
-
include Hydra::ModelMixins::CommonMetadata
|
19
|
-
|
20
|
-
# adds helpful methods for basic hydra objects.
|
21
|
-
include Hydra::ModelMethods
|
22
|
-
|
23
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div id="select-item-box">
|
2
|
-
<a class="add-new-asset" href="#">Add a New Asset</a>
|
3
|
-
<ul id="select-item-list">
|
4
|
-
<li>
|
5
|
-
<%= link_to 'Add a Basic MODS Asset', new_hydra_asset_path(:content_type => 'mods_asset'), :class => 'create_asset' %>
|
6
|
-
</li>
|
7
|
-
<li>
|
8
|
-
<%= link_to 'Add an Image', new_hydra_asset_path(:content_type => 'generic_image'), :class => 'create_asset' %>
|
9
|
-
</li>
|
10
|
-
<li>
|
11
|
-
<%= link_to 'Add Generic Content', new_hydra_asset_path(:content_type => 'generic_content'), :class => 'create_asset' %>
|
12
|
-
</li>
|
13
|
-
</ul>
|
14
|
-
</div>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<% if current_user %>
|
2
|
-
|
3
|
-
<%= render :partial=>"/add_assets_links" %>
|
4
|
-
|
5
|
-
<% if Deprecation.silence(Hydra::SuperuserAttributes) { current_user.can_be_superuser? } %>
|
6
|
-
<% if Deprecation.silence(Hydra::SuperuserAttributes) { current_user.is_being_superuser?(session) } %>
|
7
|
-
<%= link_to "Stop being superuser", superuser_path %>
|
8
|
-
<% else %>
|
9
|
-
<%= link_to "Become superuser", superuser_path %>
|
10
|
-
<% end %>
|
11
|
-
<% end %>
|
12
|
-
<%= link_to "Log Out", destroy_user_session_path %>
|
13
|
-
[
|
14
|
-
<%= link_to current_user.to_s, edit_user_registration_path %>
|
15
|
-
]
|
16
|
-
|
|
17
|
-
<%= link_to 'Your Bookmarks', bookmarks_path %>
|
18
|
-
|
|
19
|
-
<%= link_to "Saved Searches", saved_searches_path %>
|
20
|
-
<% else %>
|
21
|
-
|
22
|
-
<%= render :partial=>"/add_assets_links" %>
|
23
|
-
|
24
|
-
<%= link_to 'Login', new_user_session_path %>
|
25
|
-
|
26
|
-
<% end %>
|
27
|
-
|
28
|
-
|
|
29
|
-
<%= link_to "Selected Items", folder_index_path %> (<span id="folder_number"><%= "#{session[:folder_document_ids] ? session[:folder_document_ids].length : 0}" %></span>)
|
30
|
-
|
|
31
|
-
<%= link_to "Search History", search_history_path %>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<h1><%= document_show_html_title %></h1>
|
2
|
-
|
3
|
-
<% if @document.respond_to?(:export_as_mla_citation_txt) %>
|
4
|
-
<h4>MLA</h4>
|
5
|
-
<%= @document.send(:export_as_mla_citation_txt) %><br/><br/>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<% if @document.respond_to?(:export_as_apa_citation_txt) %>
|
9
|
-
<h4>APA</h4>
|
10
|
-
<%= @document.send(:export_as_apa_citation_txt) %>
|
11
|
-
<% end %>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%# This view is overridden to change the alt attribute to be a title in the link_to below in order to conform to the HTML5 validity standard. This should ultimately be fixed in Blacklight. -%>
|
2
|
-
<%- # local params:
|
3
|
-
# label
|
4
|
-
# value
|
5
|
-
# options =>
|
6
|
-
# :remove => url for a remove constraint link
|
7
|
-
# :classes => array of classes to add to container span
|
8
|
-
options ||= {}
|
9
|
-
options[:escape_label] = true unless options.has_key?(:escape_label)
|
10
|
-
options[:escape_value] = true unless options.has_key?(:escape_value)
|
11
|
-
-%>
|
12
|
-
|
13
|
-
<span class="appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
|
14
|
-
<%- unless label.blank? -%>
|
15
|
-
<span class="filterName"><%= options[:escape_label] ? h(label) : label %></span>
|
16
|
-
<%- end -%>
|
17
|
-
<%- unless value.blank? -%>
|
18
|
-
<span class="filterValue"><%= options[:escape_value] ? h(value) : value %></span>
|
19
|
-
<%- end -%>
|
20
|
-
<%- unless options[:remove].blank? -%>
|
21
|
-
<% accessible_remove_label =
|
22
|
-
if label.blank?
|
23
|
-
"Remove constraint #{options[:escape_value] ? h(value) : value}"
|
24
|
-
else
|
25
|
-
"Remove constraint #{options[:escape_value] ? h(value) : value}: #{options[:escape_value] ? h(value) : value}"
|
26
|
-
end
|
27
|
-
%>
|
28
|
-
<%= link_to(accessible_remove_label,
|
29
|
-
options[:remove],
|
30
|
-
:class=>'btnRemove imgReplace',
|
31
|
-
:title=>'remove'
|
32
|
-
) %>
|
33
|
-
<%- end -%>
|
34
|
-
</span>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<%# default partial to delete display solr document fields in catalog show view -%>
|
2
|
-
|
3
|
-
<div class="document_viewer" id="cover_container">
|
4
|
-
<div id="delete_dialog">
|
5
|
-
<div id="delete_dialog_container">
|
6
|
-
|
7
|
-
|
8
|
-
<div>
|
9
|
-
<span>Permanently delete <%= @document['id'] %> and its assets from the repository?</span><br/>
|
10
|
-
<div id="deletable_assets"></div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div>
|
14
|
-
<%= button_to("Delete", hydra_asset_path(@document['id']), :confirm => 'Are you sure?', :method => :delete )%>
|
15
|
-
<%= button_to("Withdraw", withdraw_path(:id => @document['id']) ) %>
|
16
|
-
<%= button_to("Cancel", :action=>:edit, :controller => :catalog, :id => @document['id'] ) %>
|
17
|
-
|
18
|
-
</div>
|
19
|
-
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<% # container for all documents in index view -%>
|
2
|
-
<div id="documents">
|
3
|
-
<% facet_name = grouping_facet %>
|
4
|
-
<%- if facet_name -%>
|
5
|
-
<%- @response.docs.group_by {|d| d[facet_name]}.each do |grouping| -%>
|
6
|
-
<%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => grouping[1].map { |x| SolrDocument.new(x) }, :facet_name => facet_name, :facet_value => grouping[0].to_s} %>
|
7
|
-
<%- end -%>
|
8
|
-
<%- else -%>
|
9
|
-
<%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => @response.docs.map { |x| SolrDocument.new(x) }, :facet_name => nil, :facet_value => nil} %>
|
10
|
-
<%- end -%>
|
11
|
-
</div>
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<%# default partial to display solr document fields in catalog show view -%>
|
2
|
-
|
3
|
-
<%- stylesheet_links << "../plugin_assets/hydra-head/javascripts/date-picker/css/datepicker" %>
|
4
|
-
<%- stylesheet_links << ["../plugin_assets/hydra-head/javascripts/select_to_ui_slider/css/ui.slider.extras.css"] %>
|
5
|
-
<%- stylesheet_links << ["../plugin_assets/hydra-head/stylesheets/slider.css"] %>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<% @fedora_object = ActiveFedora::Base.find(params[:id])
|
10
|
-
@datastreams = @fedora_object.datastreams
|
11
|
-
%>
|
12
|
-
|
13
|
-
<div class="document_viewer" id="cover_container">
|
14
|
-
<dl>
|
15
|
-
<dt>pid:</dt>
|
16
|
-
<dd><%= @fedora_object.pid %></dd>
|
17
|
-
</dl>
|
18
|
-
<dl>
|
19
|
-
<dt>label:</dt>
|
20
|
-
<dd><%= @fedora_object.label %></dd>
|
21
|
-
<dt>state:</dt>
|
22
|
-
<dd><%= @fedora_object.state %></dd>
|
23
|
-
<dt>owner id:</dt>
|
24
|
-
<dd><%= @fedora_object.inner_object.ownerId %></dd>
|
25
|
-
</dl>
|
26
|
-
<dl>
|
27
|
-
<dt>created:</dt>
|
28
|
-
<dd><%= @fedora_object.create_date %></dd>
|
29
|
-
<dt>last modified:</dt>
|
30
|
-
<dd><%= @fedora_object.modified_date %></dd>
|
31
|
-
</dl>
|
32
|
-
<dl>
|
33
|
-
<dt>datastreams:</dt>
|
34
|
-
<dd>
|
35
|
-
<ul>
|
36
|
-
<% @datastreams.keys.sort!.each do |dsid| %>
|
37
|
-
<li><a href="#<%=dsid%>" class="inline"><%=dsid%></a>
|
38
|
-
<div style='display:none'>
|
39
|
-
<div id='<%=dsid%>'>
|
40
|
-
<h1><%=dsid%></h1>
|
41
|
-
<dl>
|
42
|
-
<%= ("<dt>label:</dt><dd>" + @datastreams[dsid].dsLabel + "</dd>").html_safe unless @datastreams[dsid].dsLabel.blank? %>
|
43
|
-
<%= ("<dt>last modified:</dt><dd>" + @datastreams[dsid].lastModifiedDate + "</dd>").html_safe unless @datastreams[dsid].lastModifiedDate.blank? %>
|
44
|
-
<%= ("<dt>mimetype:</dt><dd>" + @datastreams[dsid].mimeType + "</dd>").html_safe unless @datastreams[dsid].mimeType.blank? %>
|
45
|
-
<%= ("<dt>control group:</dt><dd>" + @datastreams[dsid].controlGroup + "</dd>").html_safe unless @datastreams[dsid].controlGroup.blank? %>
|
46
|
-
</dl>
|
47
|
-
</div>
|
48
|
-
</div></li>
|
49
|
-
<% end %>
|
50
|
-
</ul>
|
51
|
-
</dd>
|
52
|
-
</dl>
|
53
|
-
|
54
|
-
<%= render :partial => "hydra/permissions/index", :locals => {:document => document, :asset_id=>params[:id]}%>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
|