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/lib/hydra/solr.rb
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
require "hydra"
|
2
|
-
# will move to lib/hydra/workflow/submission_workflow in release 5.x
|
3
|
-
module Hydra::SubmissionWorkflow
|
4
|
-
|
5
|
-
# When in this module is incuded in a controller (e.g. responds to :before_filter) add the validate_worflow_step method to the before filter chain.
|
6
|
-
def self.included(base)
|
7
|
-
base.before_filter :validate_workflow_step if base.respond_to?(:before_filter)
|
8
|
-
end
|
9
|
-
|
10
|
-
# To be used in a before_filter. This will call a method with the #{af_model}_#{action_param}_validation. If that method returns false then we will redirect back. The controller method doing the validation should set an appropriate flash message.
|
11
|
-
def validate_workflow_step
|
12
|
-
unless model_config.nil?
|
13
|
-
# we may want to use the workflow name instead of or in addition to the action in the validation naming convention.
|
14
|
-
validation_method = "#{get_af_model_from_params}_#{params[:action]}_validation".to_sym
|
15
|
-
if self.respond_to?(validation_method) and self.send(validation_method) === false
|
16
|
-
redirect_to :back
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Returns the name field for the next step in the configuration for the current model given the current step.
|
22
|
-
def next_step_in_workflow(current_step)
|
23
|
-
unless model_config.nil?
|
24
|
-
if current_step.blank?
|
25
|
-
# The first edit step won't have a wf_step param so we will need to pass it off to the 2nd step.
|
26
|
-
return next_step_in_workflow(first_step_in_workflow)
|
27
|
-
else
|
28
|
-
model_config.each_with_index do |step,i|
|
29
|
-
return model_config[i+1][:name] if step[:name] == current_step.to_s and step != model_config.last
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
nil
|
34
|
-
end
|
35
|
-
|
36
|
-
# Convenience method to return the first step of a models workflow.
|
37
|
-
def first_step_in_workflow
|
38
|
-
model_config.first[:name] unless model_config.nil?
|
39
|
-
end
|
40
|
-
|
41
|
-
# Convenience method to return the last step of a models workflow.
|
42
|
-
def last_step_in_workflow
|
43
|
-
model_config.last[:name] unless model_config.nil?
|
44
|
-
end
|
45
|
-
|
46
|
-
def next_step(id)
|
47
|
-
return_params = {:wf_step=>next_step_in_workflow(params[:wf_step])}
|
48
|
-
if params[:new_asset]
|
49
|
-
return_params[:new_asset] = true
|
50
|
-
end
|
51
|
-
if params[:wf_step] == last_step_in_workflow or params.has_key?(:finish)
|
52
|
-
return_params[:viewing_context] = "browse"
|
53
|
-
return_params[:action] = "show"
|
54
|
-
return_params.delete(:wf_step)
|
55
|
-
return catalog_path(id, return_params)
|
56
|
-
end
|
57
|
-
return edit_catalog_path(id,return_params)
|
58
|
-
end
|
59
|
-
|
60
|
-
# Convenience method to return the partial for any given step by name.
|
61
|
-
def workflow_partial_for_step(step)
|
62
|
-
find_workflow_step_by_name(step)[:edit_partial]
|
63
|
-
end
|
64
|
-
|
65
|
-
# Convenience method to return an entire workflow step by name.
|
66
|
-
def find_workflow_step_by_name(name)
|
67
|
-
model_config.find{|config| config[:name] == name.to_s} unless model_config.nil?
|
68
|
-
end
|
69
|
-
|
70
|
-
# Returns an array of display partials for steps previous to the given step.
|
71
|
-
def previous_show_partials(current_step)
|
72
|
-
previous_partials = []
|
73
|
-
# if there is no step then we are on the first step of the workflow and don't need to display anything.
|
74
|
-
return previous_partials if current_step.blank?
|
75
|
-
unless model_config.nil?
|
76
|
-
model_config.each do |config|
|
77
|
-
break if config[:name] == current_step.to_s
|
78
|
-
previous_partials << config[:show_partial]
|
79
|
-
end
|
80
|
-
end
|
81
|
-
previous_partials
|
82
|
-
end
|
83
|
-
|
84
|
-
# Returns an array of all edit partials for the current content type.
|
85
|
-
def all_edit_partials
|
86
|
-
edit_partials = []
|
87
|
-
unless model_config.nil?
|
88
|
-
model_config.each do |config|
|
89
|
-
edit_partials << config[:edit_partial]
|
90
|
-
end
|
91
|
-
end
|
92
|
-
edit_partials
|
93
|
-
end
|
94
|
-
|
95
|
-
# Will return the entire workflow configuration for the current model.
|
96
|
-
# We determing model first by seeing the @document object is a SolrDocument. If it is we will determing from the has_model_s field.
|
97
|
-
# Otherwise we will attemtp to determine by the parameters (content_type directly passed or the id of an object).
|
98
|
-
def model_config
|
99
|
-
# If we can get it directly from solr get it there.
|
100
|
-
if !@document.nil? and @document.is_a?(SolrDocument)
|
101
|
-
_model = get_af_model_from_solr
|
102
|
-
return workflow_config[_model] if !_model.nil? and workflow_config.has_key?(_model)
|
103
|
-
|
104
|
-
# If we can get the model from the params get it there.
|
105
|
-
elsif params.has_key?(:content_type) or params.has_key?(:id)
|
106
|
-
_model = get_af_model_from_params
|
107
|
-
return workflow_config[_model] if workflow_config.has_key?(_model) and !_model.nil?
|
108
|
-
else
|
109
|
-
return nil
|
110
|
-
end
|
111
|
-
nil
|
112
|
-
end
|
113
|
-
|
114
|
-
# Reutrns a symbolized model name determined by parameters.
|
115
|
-
def get_af_model_from_params
|
116
|
-
if params.has_key?(:content_type)
|
117
|
-
return params[:content_type].pluralize.to_sym
|
118
|
-
else
|
119
|
-
begin
|
120
|
-
af = ActiveFedora::Base.load_instance_from_solr(params[:id])
|
121
|
-
return "#{ActiveFedora::ContentModel.known_models_for( af ).first}".underscore.pluralize.to_sym
|
122
|
-
rescue Exception => e #TODO this should be ActiveFedora::ObjectNotFoundError
|
123
|
-
nil
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
# Convenience method to return the model from the @document objects has_model_s field.
|
129
|
-
def get_af_model_from_solr
|
130
|
-
@document[:has_model_s].first.gsub("info:fedora/afmodel:","").underscore.pluralize.to_sym
|
131
|
-
end
|
132
|
-
|
133
|
-
# The configuration hash. This should probably live somewhere else and get read in so it can be properly configured at the application level. But for now it's here.
|
134
|
-
def workflow_config
|
135
|
-
Hydra.config[:submission_workflow]
|
136
|
-
end
|
137
|
-
|
138
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# @deprecated no longer doing permissions this way. Will be removed no later than release 6.x
|
2
|
-
require 'deprecation'
|
3
|
-
module Hydra::SuperuserAttributes
|
4
|
-
extend Deprecation
|
5
|
-
|
6
|
-
self.deprecation_horizon = 'hydra-head 5.x'
|
7
|
-
|
8
|
-
def can_be_superuser?
|
9
|
-
Superuser.find_by_user_id(self.id) ? true : false
|
10
|
-
end
|
11
|
-
deprecation_deprecate :can_be_superuser?
|
12
|
-
|
13
|
-
def is_being_superuser?(session=nil)
|
14
|
-
return false if session.nil?
|
15
|
-
session[:superuser_mode] ? true : false
|
16
|
-
end
|
17
|
-
deprecation_deprecate :is_being_superuser?
|
18
|
-
|
19
|
-
end
|
data/lib/hydra/ui.rb
DELETED
data/lib/hydra/ui/controller.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# Basic view helpers & before_filters to support the default Hydra UI
|
2
|
-
# This mixin is *not required* in order for a Hydra Controller to function. It is required if you want to use the default UI and javascript.
|
3
|
-
module Hydra::UI::Controller
|
4
|
-
|
5
|
-
def self.included(base)
|
6
|
-
base.helper :hydra_fedora_metadata
|
7
|
-
base.helper :generic_content_objects
|
8
|
-
base.helper :hydra_uploader
|
9
|
-
base.helper :article_metadata
|
10
|
-
base.before_filter :store_bounce
|
11
|
-
base.before_filter :set_x_ua_compat
|
12
|
-
base.before_filter :load_css
|
13
|
-
base.before_filter :load_js
|
14
|
-
base.before_filter :check_scripts
|
15
|
-
end
|
16
|
-
|
17
|
-
protected
|
18
|
-
def store_bounce
|
19
|
-
session[:bounce]=params[:bounce]
|
20
|
-
end
|
21
|
-
|
22
|
-
def check_scripts
|
23
|
-
session[:scripts] ||= (params[:combined] and params[:combined] == "true")
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# These are all setting view stuff in the style of Rails2 Blacklight.
|
28
|
-
# Current versions of Blacklight have pushed this stuff back out of the controllers and into views.
|
29
|
-
#
|
30
|
-
def set_x_ua_compat
|
31
|
-
# Always force latest IE rendering engine & Chrome Frame through header information.
|
32
|
-
response.headers["X-UA-Compatible"] = "IE=edge,chrome=1"
|
33
|
-
end
|
34
|
-
|
35
|
-
def load_css
|
36
|
-
end
|
37
|
-
|
38
|
-
def load_js
|
39
|
-
# This JS file implementes Blacklight's JavaScript framework and simply assigns all of the Blacklight provided JS functionality to empty functions.
|
40
|
-
# We can use this file in the future, however we will want to implement a jQuery plugin architecture as we actually add in JS functionality.
|
41
|
-
javascript_includes << ["hydra/hydra-head"]
|
42
|
-
javascript_includes << ['jquery.form.js']
|
43
|
-
javascript_includes << ['spin.min.js' ]
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
data/lib/hydra/workflow.rb
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# @deprecated Leftover from Hydrangea; will be removed in release 5.x
|
2
|
-
#
|
3
|
-
# Stanford SolrHelper is a controller layer mixin. It is in the controller scope: request params, session etc.
|
4
|
-
#
|
5
|
-
# NOTE: Be careful when creating variables here as they may be overriding something that already exists.
|
6
|
-
# The ActionController docs: http://api.rubyonrails.org/classes/ActionController/Base.html
|
7
|
-
#
|
8
|
-
# Override these methods in your own controller for customizations:
|
9
|
-
#
|
10
|
-
# class HomeController < ActionController::Base
|
11
|
-
#
|
12
|
-
# include Stanford::SolrHelper
|
13
|
-
#
|
14
|
-
# def solr_search_params
|
15
|
-
# super.merge :per_page=>10
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# end
|
19
|
-
#
|
20
|
-
require 'active_fedora/version'
|
21
|
-
module MediaShelf
|
22
|
-
module ActiveFedoraHelper
|
23
|
-
def self.included(base)
|
24
|
-
ActiveSupport::Deprecation.warn("ActiveFedoraHelper is deprecated for removal")
|
25
|
-
end
|
26
|
-
|
27
|
-
def retrieve_af_model(class_name, opts={})
|
28
|
-
if !class_name.nil?
|
29
|
-
klass = Module.const_get(class_name.camelcase)
|
30
|
-
else
|
31
|
-
klass = nil
|
32
|
-
end
|
33
|
-
#klass.included_modules.include?(ActiveFedora::Model)
|
34
|
-
if klass.is_a?(Class) && klass.superclass == ActiveFedora::Base
|
35
|
-
return klass
|
36
|
-
else
|
37
|
-
return opts.fetch(:default, false)
|
38
|
-
end
|
39
|
-
rescue NameError
|
40
|
-
return false
|
41
|
-
end
|
42
|
-
|
43
|
-
def load_af_instance_from_solr(doc)
|
44
|
-
pid = doc[:id] ? doc[:id] : doc[:id.to_s]
|
45
|
-
pid ? ActiveFedora::Base.load_instance_from_solr(pid,doc) : nil
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
|
50
|
-
def require_solr
|
51
|
-
ActiveFedora::SolrService.register(ActiveFedora.solr_config[:url])
|
52
|
-
end
|
53
|
-
|
54
|
-
#underscores are escaped w/ + signs, which are unescaped by rails to spaces
|
55
|
-
def unescape_keys(attrs)
|
56
|
-
h=Hash.new
|
57
|
-
attrs.each do |k,v|
|
58
|
-
h[k.gsub(/ /, '_')]=v
|
59
|
-
|
60
|
-
end
|
61
|
-
h
|
62
|
-
end
|
63
|
-
def escape_keys(attrs)
|
64
|
-
h=Hash.new
|
65
|
-
attrs.each do |k,v|
|
66
|
-
h[k.gsub(/_/, '+')]=v
|
67
|
-
|
68
|
-
end
|
69
|
-
h
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
73
|
-
end
|
data/lib/prev_next_links.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# @deprecated no longer used. Will be removed no later than release 6.x
|
2
|
-
# Custom pagination renderer
|
3
|
-
# Call using will_paginate(@results, :renderer => 'PrevNextLinks')
|
4
|
-
require 'deprecation'
|
5
|
-
class PrevNextLinks < WillPaginate::LinkRenderer
|
6
|
-
extend Deprecation
|
7
|
-
|
8
|
-
self.deprecation_horizon = 'hydra-head 5.x'
|
9
|
-
|
10
|
-
def initialize(app)
|
11
|
-
Deprecation.warn(PrevNextLinks, "PrevNextLinks has been deprecated; it will be removed from HydraHead no later than release 6.")
|
12
|
-
@app = app
|
13
|
-
end
|
14
|
-
|
15
|
-
def to_html
|
16
|
-
links = []
|
17
|
-
links << page_link_or_span(@collection.previous_page, 'disabled prev_page', @options[:previous_label])
|
18
|
-
if @collection.size < 1
|
19
|
-
links << "<b>0 - 0</b> of <b>0</b>"
|
20
|
-
else
|
21
|
-
links << %{<b>%d - %d</b> of <b>%d</b>} % [
|
22
|
-
@collection.start + 1,
|
23
|
-
@collection.start + @collection.length,
|
24
|
-
@collection.total
|
25
|
-
]
|
26
|
-
end
|
27
|
-
links << page_link_or_span(@collection.next_page, 'disabled next_page', @options[:next_label])
|
28
|
-
html = links.join(@options[:separator])
|
29
|
-
@options[:container] ? @template.content_tag(:div, html, html_attributes) : html
|
30
|
-
end
|
31
|
-
deprecation_deprecate :to_html
|
32
|
-
|
33
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
require "active-fedora" # This causes active-fedora's rake tasks to be loaded
|
@@ -1,50 +0,0 @@
|
|
1
|
-
namespace :hydra do
|
2
|
-
|
3
|
-
desc "Init Hydra configuration"
|
4
|
-
task :init => [:environment] do
|
5
|
-
# We need to just start rails so that all the models are loaded
|
6
|
-
end
|
7
|
-
|
8
|
-
desc "Load hydra-head models"
|
9
|
-
task :load_models do
|
10
|
-
require "hydra"
|
11
|
-
Dir.glob(File.join(File.expand_path(File.dirname(__FILE__)), "..",'app','models', '*.rb')).each do |model|
|
12
|
-
load model
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
namespace :fixtures do
|
17
|
-
task :load do
|
18
|
-
ENV["dir"] ||= File.join("spec", "fixtures")
|
19
|
-
loader = ActiveFedora::FixtureLoader.new(ENV['dir'])
|
20
|
-
Dir.glob("#{ENV['dir']}/*.foxml.xml").each do |fixture_path|
|
21
|
-
pid = File.basename(fixture_path, ".foxml.xml").sub("_",":")
|
22
|
-
begin
|
23
|
-
foo = loader.reload(pid)
|
24
|
-
puts "Updated #{pid}"
|
25
|
-
rescue Errno::ECONNREFUSED => e
|
26
|
-
puts "Can't connect to Fedora! Are you sure jetty is running? (#{ActiveFedora::Base.connection_for_pid(pid).inspect})"
|
27
|
-
rescue Exception => e
|
28
|
-
puts("Received a Fedora error while loading #{pid}\n#{e}")
|
29
|
-
logger.error("Received a Fedora error while loading #{pid}\n#{e}")
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
desc "Remove default Hydra fixtures"
|
35
|
-
task :delete do
|
36
|
-
ENV["dir"] ||= File.join("spec", "fixtures")
|
37
|
-
loader = ActiveFedora::FixtureLoader.new(ENV['dir'])
|
38
|
-
Dir.glob("#{ENV['dir']}/*.foxml.xml").each do |fixture_path|
|
39
|
-
ENV["pid"] = File.basename(fixture_path, ".foxml.xml").sub("_",":")
|
40
|
-
Rake::Task["repo:delete"].reenable
|
41
|
-
Rake::Task["repo:delete"].invoke
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
desc "Refresh default Hydra fixtures"
|
46
|
-
task :refresh => [:delete, :load]
|
47
|
-
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
@@ -1,53 +0,0 @@
|
|
1
|
-
namespace :jetty do
|
2
|
-
desc "Apply all configs to Testing Server (relies on hydra:jetty:config tasks unless you override it)"
|
3
|
-
task :config do
|
4
|
-
Rake::Task["hydra:jetty:config"].invoke
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
namespace :hydra do
|
9
|
-
namespace :jetty do
|
10
|
-
desc "Copies the default Solr & Fedora configs into the bundled Hydra Testing Server"
|
11
|
-
task :config do
|
12
|
-
Rake::Task["hydra:jetty:config_fedora"].invoke
|
13
|
-
Rake::Task["hydra:jetty:config_solr"].invoke
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Copies the contents of solr_conf into the Solr development-core and test-core of Testing Server"
|
17
|
-
task :config_solr do
|
18
|
-
FileList['solr_conf/conf/*'].each do |f|
|
19
|
-
cp("#{f}", 'jetty/solr/development-core/conf/', :verbose => true)
|
20
|
-
cp("#{f}", 'jetty/solr/test-core/conf/', :verbose => true)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
desc "Copies a custom fedora config for the bundled Hydra Testing Server"
|
25
|
-
task :config_fedora do
|
26
|
-
# load a custom fedora.fcfg -
|
27
|
-
if defined?(Rails.root)
|
28
|
-
app_root = Rails.root
|
29
|
-
else
|
30
|
-
app_root = File.join(File.dirname(__FILE__),"..")
|
31
|
-
end
|
32
|
-
|
33
|
-
fcfg = File.join(app_root,"fedora_conf","conf","development","fedora.fcfg")
|
34
|
-
if File.exists?(fcfg)
|
35
|
-
puts "copying over development/fedora.fcfg"
|
36
|
-
cp("#{fcfg}", 'jetty/fedora/default/server/config/', :verbose => true)
|
37
|
-
else
|
38
|
-
puts "#{fcfg} file not found -- skipping fedora config"
|
39
|
-
end
|
40
|
-
fcfg = File.join(app_root,"fedora_conf","conf","test","fedora.fcfg")
|
41
|
-
if File.exists?(fcfg)
|
42
|
-
puts "copying over test/fedora.fcfg"
|
43
|
-
cp("#{fcfg}", 'jetty/fedora/test/server/config/', :verbose => true)
|
44
|
-
else
|
45
|
-
puts "#{fcfg} file not found -- skipping fedora config"
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
desc "Copies the default SOLR config files and starts up the fedora instance."
|
50
|
-
task :load => [:config, 'jetty:start']
|
51
|
-
|
52
|
-
end
|
53
|
-
end
|