curation_concerns 0.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +18 -0
- data/Gemfile +31 -0
- data/LICENSE.txt +15 -0
- data/README.md +46 -0
- data/RELEASING.md +2 -0
- data/Rakefile +26 -0
- data/VERSION +1 -0
- data/app/assets/images/default.png +0 -0
- data/app/assets/images/nope.png +0 -0
- data/app/assets/javascripts/.gitkeep +0 -0
- data/app/assets/javascripts/curation_concerns/.gitkeep +0 -0
- data/app/assets/javascripts/curation_concerns/application.js +18 -0
- data/app/assets/javascripts/curation_concerns/browse_everything_implement.js +7 -0
- data/app/assets/javascripts/curation_concerns/curation_concerns.js +28 -0
- data/app/assets/javascripts/curation_concerns/embargoes.js +17 -0
- data/app/assets/javascripts/curation_concerns/facet_mine.js +22 -0
- data/app/assets/javascripts/curation_concerns/help_modal.js +36 -0
- data/app/assets/javascripts/curation_concerns/link_groups.js.coffee +123 -0
- data/app/assets/javascripts/curation_concerns/link_users.js.coffee +126 -0
- data/app/assets/javascripts/curation_concerns/proxy_rights.js.coffee +95 -0
- data/app/assets/javascripts/curation_concerns/proxy_submission.js +23 -0
- data/app/assets/javascripts/curation_concerns/select_works.js.coffee +20 -0
- data/app/assets/javascripts/modernizr.js +3 -0
- data/app/assets/stylesheets/curation_concerns/_curation_concerns.scss +9 -0
- data/app/assets/stylesheets/curation_concerns/_global-variables.scss +5 -0
- data/app/assets/stylesheets/curation_concerns/_modules.scss +13 -0
- data/app/assets/stylesheets/curation_concerns/_positioning.scss +138 -0
- data/app/assets/stylesheets/curation_concerns/_theme.scss +46 -0
- data/app/assets/stylesheets/curation_concerns/_typography.scss +137 -0
- data/app/assets/stylesheets/curation_concerns/_variables_bootstrap.scss +7 -0
- data/app/assets/stylesheets/curation_concerns/downloads.scss +3 -0
- data/app/assets/stylesheets/curation_concerns/help_requests.scss +3 -0
- data/app/assets/stylesheets/curation_concerns/modules/accessibility.scss +50 -0
- data/app/assets/stylesheets/curation_concerns/modules/accordion.scss +33 -0
- data/app/assets/stylesheets/curation_concerns/modules/attributes.scss +31 -0
- data/app/assets/stylesheets/curation_concerns/modules/classify_work.scss +100 -0
- data/app/assets/stylesheets/curation_concerns/modules/embargoes.scss +15 -0
- data/app/assets/stylesheets/curation_concerns/modules/emphatic_action_area.scss +14 -0
- data/app/assets/stylesheets/curation_concerns/modules/forms.scss +116 -0
- data/app/assets/stylesheets/curation_concerns/modules/multi_value_fields.scss +52 -0
- data/app/assets/stylesheets/curation_concerns/modules/pagination.scss +4 -0
- data/app/assets/stylesheets/curation_concerns/modules/search_results.scss +55 -0
- data/app/assets/stylesheets/curation_concerns/modules/site_actions.scss +53 -0
- data/app/assets/stylesheets/curation_concerns/modules/site_search.scss +46 -0
- data/app/controllers/catalog_controller.rb +3 -0
- data/app/controllers/collections_controller.rb +3 -0
- data/app/controllers/concerns/curation_concerns/application_controller_behavior.rb +28 -0
- data/app/controllers/concerns/curation_concerns/catalog_controller.rb +321 -0
- data/app/controllers/concerns/curation_concerns/collections_controller_behavior.rb +76 -0
- data/app/controllers/concerns/curation_concerns/curation_concern_controller.rb +125 -0
- data/app/controllers/concerns/curation_concerns/download_behavior.rb +60 -0
- data/app/controllers/concerns/curation_concerns/embargoes_controller_behavior.rb +44 -0
- data/app/controllers/concerns/curation_concerns/generic_files_controller_behavior.rb +149 -0
- data/app/controllers/concerns/curation_concerns/leases_controller_behavior.rb +36 -0
- data/app/controllers/concerns/curation_concerns/manages_embargoes.rb +26 -0
- data/app/controllers/concerns/curation_concerns/parent_container.rb +33 -0
- data/app/controllers/concerns/curation_concerns/themed_layout_controller.rb +31 -0
- data/app/controllers/concerns/curation_concerns/without_namespace.rb +15 -0
- data/app/controllers/curation_concerns/application_controller.rb +7 -0
- data/app/controllers/curation_concerns/classify_concerns_controller.rb +35 -0
- data/app/controllers/curation_concerns/generic_files_controller.rb +13 -0
- data/app/controllers/curation_concerns/permissions_controller.rb +19 -0
- data/app/controllers/downloads_controller.rb +4 -0
- data/app/controllers/embargoes_controller.rb +5 -0
- data/app/controllers/leases_controller.rb +5 -0
- data/app/controllers/registrations_controller.rb +20 -0
- data/app/controllers/sessions_controller.rb +4 -0
- data/app/datastreams/curation_concerns/generic_work_rdf_properties.rb +57 -0
- data/app/datastreams/generic_work_metadata.rb +3 -0
- data/app/forms/curation_concerns/forms/collection_edit_form.rb +17 -0
- data/app/forms/curation_concerns/forms/generic_file_edit_form.rb +15 -0
- data/app/forms/curation_concerns/forms/generic_work_edit_form.rb +9 -0
- data/app/helpers/curation_concerns/ability_helper.rb +46 -0
- data/app/helpers/curation_concerns/attribute_helper.rb +67 -0
- data/app/helpers/curation_concerns/catalog_helper.rb +38 -0
- data/app/helpers/curation_concerns/collections_helper.rb +63 -0
- data/app/helpers/curation_concerns/embargo_helper.rb +17 -0
- data/app/helpers/curation_concerns/generic_file_helper.rb +19 -0
- data/app/helpers/curation_concerns/lease_helper.rb +18 -0
- data/app/helpers/curation_concerns/main_app_helpers.rb +13 -0
- data/app/helpers/curation_concerns/render_constraints_helper.rb +42 -0
- data/app/helpers/curation_concerns/search_paths_helper.rb +13 -0
- data/app/helpers/curation_concerns/thumbnail_helper.rb +11 -0
- data/app/helpers/curation_concerns/title_helper.rb +23 -0
- data/app/helpers/curation_concerns/url_helper.rb +29 -0
- data/app/presenters/curation_concerns/collection_presenter.rb +40 -0
- data/app/presenters/curation_concerns/generic_file_presenter.rb +14 -0
- data/app/presenters/curation_concerns/generic_work_presenter.rb +13 -0
- data/app/search_builders/curation_concerns/search_builder.rb +49 -0
- data/app/services/curation_concerns/curation_concern.rb +14 -0
- data/app/services/curation_concerns/embargo_service.rb +26 -0
- data/app/services/curation_concerns/lease_service.rb +23 -0
- data/app/views/catalog/_action_menu_partials/_collection.html.erb +27 -0
- data/app/views/catalog/_action_menu_partials/_default.html.erb +27 -0
- data/app/views/catalog/_document.html.erb +3 -0
- data/app/views/catalog/_document_list.html.erb +5 -0
- data/app/views/catalog/_home_text.html.erb +8 -0
- data/app/views/catalog/_index_default.html.erb +17 -0
- data/app/views/catalog/_index_header_list_default.html.erb +8 -0
- data/app/views/catalog/_navbar.html.erb +12 -0
- data/app/views/catalog/_show_partials/_default.html.erb +22 -0
- data/app/views/catalog/_show_partials/_default_details.html.erb +15 -0
- data/app/views/catalog/_show_partials/_facets.html.erb +52 -0
- data/app/views/catalog/index.html.erb +47 -0
- data/app/views/collections/_add_to_collection_modal.html.erb +15 -0
- data/app/views/collections/_batch_edits_actions.html.erb +3 -0
- data/app/views/collections/_button_for_creating_empty_collection.html.erb +3 -0
- data/app/views/collections/_collection.html.erb +1 -0
- data/app/views/collections/_dashboard_document_list.html.erb +6 -0
- data/app/views/collections/_document_list.html.erb +7 -0
- data/app/views/collections/_edit_actions.html.erb +5 -0
- data/app/views/collections/_edit_descriptions.html.erb +20 -0
- data/app/views/collections/_form.html.erb +26 -0
- data/app/views/collections/_form_additional_information.html.erb +6 -0
- data/app/views/collections/_form_for_select_collection.html.erb +34 -0
- data/app/views/collections/_form_permission.html.erb +36 -0
- data/app/views/collections/_form_representative_image.html.erb +13 -0
- data/app/views/collections/_form_required_information.html.erb +11 -0
- data/app/views/collections/_form_to_add_member.html.erb +21 -0
- data/app/views/collections/_identifier_and_action.html.erb +15 -0
- data/app/views/collections/_media_display.html.erb +1 -0
- data/app/views/collections/_paginate.html.erb +6 -0
- data/app/views/collections/_search_collection_dashboard_form.html.erb +10 -0
- data/app/views/collections/_show_actions.html.erb +8 -0
- data/app/views/collections/_show_descriptions.html.erb +10 -0
- data/app/views/collections/_show_fields.html.erb +0 -0
- data/app/views/collections/_single_item_action_fields.html.erb +6 -0
- data/app/views/collections/_sort_and_per_page.html.erb +29 -0
- data/app/views/collections/_view_type_group.html.erb +13 -0
- data/app/views/collections/edit.html.erb +17 -0
- data/app/views/collections/show.html.erb +24 -0
- data/app/views/curation_concerns/base/_attributes.html.erb +25 -0
- data/app/views/curation_concerns/base/_collections.html.erb +26 -0
- data/app/views/curation_concerns/base/_form.html.erb +25 -0
- data/app/views/curation_concerns/base/_form_additional_information.html.erb +7 -0
- data/app/views/curation_concerns/base/_form_content_license.html.erb +16 -0
- data/app/views/curation_concerns/base/_form_descriptive_fields.erb +11 -0
- data/app/views/curation_concerns/base/_form_editors.html.erb +15 -0
- data/app/views/curation_concerns/base/_form_files_and_links.html.erb +23 -0
- data/app/views/curation_concerns/base/_form_permission.html.erb +52 -0
- data/app/views/curation_concerns/base/_form_permission_embargo.html.erb +6 -0
- data/app/views/curation_concerns/base/_form_permission_lease.html.erb +6 -0
- data/app/views/curation_concerns/base/_form_permission_under_embargo.html.erb +16 -0
- data/app/views/curation_concerns/base/_form_permission_under_lease.html.erb +18 -0
- data/app/views/curation_concerns/base/_form_representative_image.html.erb +13 -0
- data/app/views/curation_concerns/base/_form_required_information.html.erb +11 -0
- data/app/views/curation_concerns/base/_form_supplementary_fields.html.erb +15 -0
- data/app/views/curation_concerns/base/_legally_binding_text.html.erb +33 -0
- data/app/views/curation_concerns/base/_related_files.html.erb +24 -0
- data/app/views/curation_concerns/base/_representative_media.html.erb +8 -0
- data/app/views/curation_concerns/base/edit.html.erb +13 -0
- data/app/views/curation_concerns/base/new.html.erb +12 -0
- data/app/views/curation_concerns/base/show.html.erb +21 -0
- data/app/views/curation_concerns/base/unauthorized.html.erb +3 -0
- data/app/views/curation_concerns/classify_concerns/new.html.erb +25 -0
- data/app/views/curation_concerns/collections/_form_additional_information.html.erb +6 -0
- data/app/views/curation_concerns/generic_files/_actions.html.erb +16 -0
- data/app/views/curation_concerns/generic_files/_form.html.erb +35 -0
- data/app/views/curation_concerns/generic_files/_generic_file.html.erb +12 -0
- data/app/views/curation_concerns/generic_files/_media_display.html.erb +19 -0
- data/app/views/curation_concerns/generic_files/edit.html.erb +5 -0
- data/app/views/curation_concerns/generic_files/jq_upload.json.jbuilder +8 -0
- data/app/views/curation_concerns/generic_files/show.html.erb +15 -0
- data/app/views/curation_concerns/permissions/confirm.html.erb +21 -0
- data/app/views/embargoes/_embargo_history.html.erb +7 -0
- data/app/views/embargoes/_list_active_embargoes.html.erb +16 -0
- data/app/views/embargoes/_list_deactivated_embargoes.html.erb +10 -0
- data/app/views/embargoes/_list_expired_active_embargoes.html.erb +44 -0
- data/app/views/embargoes/edit.html.erb +43 -0
- data/app/views/embargoes/index.html.erb +18 -0
- data/app/views/layouts/boilerplate.html.erb +22 -0
- data/app/views/layouts/curation_concerns/1_column.html.erb +11 -0
- data/app/views/layouts/curation_concerns/catalog.html.erb +37 -0
- data/app/views/layouts/curation_concerns.html.erb +22 -0
- data/app/views/leases/_lease_history.html.erb +7 -0
- data/app/views/leases/_list_active_leases.html.erb +16 -0
- data/app/views/leases/_list_deactivated_leases.html.erb +4 -0
- data/app/views/leases/_list_expired_active_leases.html.erb +38 -0
- data/app/views/leases/edit.html.erb +43 -0
- data/app/views/leases/index.html.erb +18 -0
- data/app/views/shared/_add_content.html.erb +32 -0
- data/app/views/shared/_brand_bar.html.erb +10 -0
- data/app/views/shared/_flash_message.html.erb +17 -0
- data/app/views/shared/_footer.html.erb +10 -0
- data/app/views/shared/_ga.html.erb +6 -0
- data/app/views/shared/_header.html.erb +12 -0
- data/app/views/shared/_my_actions.html.erb +21 -0
- data/app/views/shared/_site_actions.html.erb +7 -0
- data/app/views/shared/_site_search.html.erb +12 -0
- data/app/views/shared/_title_bar.html.erb +16 -0
- data/app/workers/visibility_copy_worker.rb +30 -0
- data/config/initializers/simple_form.rb +31 -0
- data/config/locales/curation_concerns.en.yml +96 -0
- data/config/routes.rb +4 -0
- data/curation_concerns-models/.gitignore +17 -0
- data/curation_concerns-models/Gemfile +4 -0
- data/curation_concerns-models/LICENSE.md +177 -0
- data/curation_concerns-models/README.md +42 -0
- data/curation_concerns-models/Rakefile +1 -0
- data/curation_concerns-models/app/actors/concerns/curation_concerns/manages_embargoes_actor.rb +99 -0
- data/curation_concerns-models/app/actors/curation_concerns/base_actor.rb +90 -0
- data/curation_concerns-models/app/actors/curation_concerns/generic_file_actor.rb +150 -0
- data/curation_concerns-models/app/actors/curation_concerns/work_actor_behavior.rb +88 -0
- data/curation_concerns-models/app/jobs/active_fedora_id_based_job.rb +22 -0
- data/curation_concerns-models/app/jobs/active_fedora_pid_based_job.rb +6 -0
- data/curation_concerns-models/app/jobs/audit_job.rb +58 -0
- data/curation_concerns-models/app/jobs/characterize_job.rb +11 -0
- data/curation_concerns-models/app/jobs/copy_permissions_job.rb +24 -0
- data/curation_concerns-models/app/jobs/create_derivatives_job.rb +15 -0
- data/curation_concerns-models/app/jobs/import_url_job.rb +56 -0
- data/curation_concerns-models/app/jobs/ingest_local_file_job.rb +48 -0
- data/curation_concerns-models/app/jobs/resolrize_job.rb +9 -0
- data/curation_concerns-models/app/models/checksum_audit_log.rb +21 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/ability.rb +34 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/basic_metadata.rb +87 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/collection_behavior.rb +47 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/belongs_to_works.rb +53 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/characterization.rb +89 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/content.rb +8 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/export.rb +343 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/full_text_indexing.rb +12 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/indexing.rb +14 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file/versions.rb +16 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file.rb +5 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_file_behavior.rb +44 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/generic_work_behavior.rb +38 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/has_representative.rb +14 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/human_readable_type.rb +23 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/permissions/readable.rb +19 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/permissions/writable.rb +75 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/permissions.rb +7 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/serializers.rb +15 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/solr_document_behavior.rb +135 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/user.rb +65 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/with_basic_metadata.rb +98 -0
- data/curation_concerns-models/app/models/concerns/curation_concerns/with_generic_files.rb +29 -0
- data/curation_concerns-models/app/models/curation_concerns/classify_concern.rb +47 -0
- data/curation_concerns-models/app/models/curation_concerns/quick_classification_query.rb +31 -0
- data/curation_concerns-models/app/models/datastreams/fits_datastream.rb +148 -0
- data/curation_concerns-models/app/models/version_committer.rb +2 -0
- data/curation_concerns-models/app/services/curation_concerns/characterization_service.rb +71 -0
- data/curation_concerns-models/app/services/curation_concerns/full_text_extraction_service.rb +38 -0
- data/curation_concerns-models/app/services/curation_concerns/generic_file_audit_service.rb +85 -0
- data/curation_concerns-models/app/services/curation_concerns/generic_file_indexing_service.rb +14 -0
- data/curation_concerns-models/app/services/curation_concerns/generic_work_indexing_service.rb +16 -0
- data/curation_concerns-models/app/services/curation_concerns/noid.rb +23 -0
- data/curation_concerns-models/app/services/curation_concerns/repository_audit_service.rb +9 -0
- data/curation_concerns-models/app/services/curation_concerns/versioning_service.rb +27 -0
- data/curation_concerns-models/config/locales/curation_concerns.en.yml +6 -0
- data/curation_concerns-models/curation_concerns-models.gemspec +34 -0
- data/curation_concerns-models/lib/curation_concerns/messages.rb +66 -0
- data/curation_concerns-models/lib/curation_concerns/models/engine.rb +61 -0
- data/curation_concerns-models/lib/curation_concerns/models/resque.rb +36 -0
- data/curation_concerns-models/lib/curation_concerns/models/utils.rb +22 -0
- data/curation_concerns-models/lib/curation_concerns/models/version.rb +5 -0
- data/curation_concerns-models/lib/curation_concerns/models.rb +32 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/abstract_migration_generator.rb +30 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/clamav_generator.rb +19 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/fulltext_generator.rb +28 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/install_generator.rb +70 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/app/models/collection.rb +4 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/app/models/generic_file.rb +4 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/clamav.rb +1 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/curation_concerns.rb +123 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/mime_types.rb +6 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/redis.yml +9 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/redis_config.rb +32 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/resque-pool.yml +1 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/resque_admin.rb +10 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/config/resque_config.rb +5 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/migrations/create_checksum_audit_logs.rb +19 -0
- data/curation_concerns-models/lib/generators/curation_concerns/models/templates/migrations/create_version_committers.rb +15 -0
- data/curation_concerns-models/lib/tasks/curation_concerns-models_tasks.rake +75 -0
- data/curation_concerns-models/lib/tasks/migrate.rake +13 -0
- data/curation_concerns-models/lib/tasks/resque.rake +13 -0
- data/curation_concerns-models/lib/tasks/solr_reindex.rake +8 -0
- data/curation_concerns.gemspec +46 -0
- data/lib/curation_concerns/configuration.rb +74 -0
- data/lib/curation_concerns/controller_resource.rb +10 -0
- data/lib/curation_concerns/engine.rb +20 -0
- data/lib/curation_concerns/rails/routes.rb +76 -0
- data/lib/curation_concerns/spec_support.rb +10 -0
- data/lib/curation_concerns/version.rb +3 -0
- data/lib/curation_concerns.rb +8 -0
- data/lib/generators/curation_concerns/install_generator.rb +103 -0
- data/lib/generators/curation_concerns/templates/curation_concerns.css.scss +3 -0
- data/lib/generators/curation_concerns/templates/curation_concerns.js +1 -0
- data/lib/generators/curation_concerns/templates/curation_concerns_config.rb +2 -0
- data/lib/generators/curation_concerns/templates/curation_concerns_helper.rb +4 -0
- data/lib/generators/curation_concerns/work/USAGE +19 -0
- data/lib/generators/curation_concerns/work/templates/README +13 -0
- data/lib/generators/curation_concerns/work/templates/actor.rb.erb +7 -0
- data/lib/generators/curation_concerns/work/templates/actor_spec.rb.erb +9 -0
- data/lib/generators/curation_concerns/work/templates/controller.rb.erb +7 -0
- data/lib/generators/curation_concerns/work/templates/controller_spec.rb.erb +9 -0
- data/lib/generators/curation_concerns/work/templates/model.rb.erb +7 -0
- data/lib/generators/curation_concerns/work/templates/model_spec.rb.erb +9 -0
- data/lib/generators/curation_concerns/work/work_generator.rb +78 -0
- data/solr_conf/conf/solrconfig.xml +223 -0
- data/spec/abilities/collection_abilities_spec.rb +48 -0
- data/spec/abilities/generic_file_abilities_spec.rb +62 -0
- data/spec/abilities/generic_work_abilities_spec.rb +58 -0
- data/spec/actors/curation_concerns/generic_file_actor_spec.rb +116 -0
- data/spec/actors/curation_concerns/manages_embargoes_actor_spec.rb +95 -0
- data/spec/actors/curation_concerns/work_actor_spec.rb +203 -0
- data/spec/controllers/catalog_controller_spec.rb +115 -0
- data/spec/controllers/curation_concerns/classify_concerns_controller_spec.rb +43 -0
- data/spec/controllers/curation_concerns/collections_controller_spec.rb +171 -0
- data/spec/controllers/curation_concerns/generic_files_controller_spec.rb +251 -0
- data/spec/controllers/curation_concerns/generic_works_controller_spec.rb +167 -0
- data/spec/controllers/curation_concerns/permissions_controller_spec.rb +29 -0
- data/spec/controllers/downloads_controller_spec.rb +51 -0
- data/spec/controllers/embargoes_controller_spec.rb +114 -0
- data/spec/controllers/leases_controller_spec.rb +94 -0
- data/spec/factories/collections.rb +15 -0
- data/spec/factories/create_curation_concern.rb +3 -0
- data/spec/factories/generic_files.rb +31 -0
- data/spec/factories/generic_works.rb +54 -0
- data/spec/factories/users.rb +28 -0
- data/spec/features/add_file_spec.rb +30 -0
- data/spec/features/collection_spec.rb +222 -0
- data/spec/features/create_work_spec.rb +43 -0
- data/spec/features/embargo_spec.rb +51 -0
- data/spec/features/lease_spec.rb +49 -0
- data/spec/features/update_file_spec.rb +32 -0
- data/spec/features/work_generator_spec.rb +58 -0
- data/spec/fixtures/Example.ogg +0 -0
- data/spec/fixtures/charter.docx +0 -0
- data/spec/fixtures/countdown.avi +0 -0
- data/spec/fixtures/curation_concerns_generic_stub.txt +1 -0
- data/spec/fixtures/files/image.png +0 -0
- data/spec/fixtures/image.jp2 +0 -0
- data/spec/fixtures/image.jpg +0 -0
- data/spec/fixtures/piano_note.wav +0 -0
- data/spec/fixtures/sample_mpeg4.mp4 +0 -0
- data/spec/fixtures/small_file.txt +1 -0
- data/spec/fixtures/spoken-text.m4a +0 -0
- data/spec/fixtures/test4.pdf +0 -0
- data/spec/fixtures/test5.mp3 +0 -0
- data/spec/fixtures/world.png +0 -0
- data/spec/forms/collection_edit_form_spec.rb +20 -0
- data/spec/forms/generic_file_edit_form_spec.rb +33 -0
- data/spec/helpers/catalog_helper_spec.rb +58 -0
- data/spec/helpers/configuration_helper_spec.rb +13 -0
- data/spec/helpers/curation_concerns/.keep +0 -0
- data/spec/helpers/curation_concerns/collections_helper_spec.rb +49 -0
- data/spec/helpers/render_constraints_helper_spec.rb +19 -0
- data/spec/helpers/thumbnail_helper_spec.rb +21 -0
- data/spec/helpers/url_helper_spec.rb +22 -0
- data/spec/jobs/active_fedora_id_based_job_spec.rb +14 -0
- data/spec/jobs/audit_job_spec.rb +53 -0
- data/spec/jobs/characterize_job_spec.rb +23 -0
- data/spec/jobs/copy_permissions_job_spec.rb +49 -0
- data/spec/jobs/create_derivatives_job_spec.rb +23 -0
- data/spec/jobs/curation_concerns_resque_queue_spec.rb +49 -0
- data/spec/jobs/import_url_job_spec.rb +45 -0
- data/spec/jobs/ingest_local_file_job_spec.rb +25 -0
- data/spec/lib/curation_concerns/messages_spec.rb +70 -0
- data/spec/lib/curation_concerns/readable_permissions_spec.rb +56 -0
- data/spec/lib/curation_concerns/writable_permissions_spec.rb +16 -0
- data/spec/matchers/metadata_field_matchers.rb +28 -0
- data/spec/matchers/response_matchers.rb +7 -0
- data/spec/matchers.rb +24 -0
- data/spec/models/checksum_audit_log_spec.rb +66 -0
- data/spec/models/curation_concerns/collection_behavior_spec.rb +107 -0
- data/spec/models/curation_concerns/generic_file/derivatives_spec.rb +88 -0
- data/spec/models/curation_concerns/generic_work_behavior_spec.rb +35 -0
- data/spec/models/fits_datastream_spec.rb +127 -0
- data/spec/models/generic_file_spec.rb +619 -0
- data/spec/models/generic_work_spec.rb +43 -0
- data/spec/models/user_spec.rb +23 -0
- data/spec/presenters/curation_concerns/collection_presenter_spec.rb +34 -0
- data/spec/presenters/curation_concerns/generic_file_presenter_spec.rb +16 -0
- data/spec/routing/curation_concerns/routes_spec.rb +36 -0
- data/spec/routing/route_spec.rb +86 -0
- data/spec/services/characterization_service_spec.rb +30 -0
- data/spec/services/embargo_service_spec.rb +38 -0
- data/spec/services/full_text_extraction_service_spec.rb +5 -0
- data/spec/services/generic_file_audit_service_spec.rb +71 -0
- data/spec/services/generic_file_indexing_service_spec.rb +57 -0
- data/spec/services/generic_work_indexing_service_spec.rb +18 -0
- data/spec/services/lease_service_spec.rb +53 -0
- data/spec/services/repository_audit_service_spec.rb +18 -0
- data/spec/services/versioning_service_spec.rb +32 -0
- data/spec/spec_helper.rb +94 -0
- data/spec/support/controllers/engine_helpers.rb +7 -0
- data/spec/support/curation_concerns/factory_helpers.rb +14 -0
- data/spec/support/features/fixture_file_upload.rb +14 -0
- data/spec/support/features/session_helpers.rb +41 -0
- data/spec/support/features.rb +19 -0
- data/spec/support/shared/shared_examples_has_dc_metadata.rb +17 -0
- data/spec/support/shared/shared_examples_is_embargoable.rb +8 -0
- data/spec/support/shared/shared_examples_with_access_rights.rb +63 -0
- data/spec/tasks/rake_spec.rb +24 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +55 -0
- data/spec/views/catalog/index.html.erb_spec.rb +59 -0
- data/spec/views/curation_concerns/base/_attributes.html.erb_spec.rb +25 -0
- data/spec/views/curation_concerns/base/show.html.erb_spec.rb +29 -0
- data/spec/views/curation_concerns/permissions/confirm.html.erb_spec.rb +33 -0
- data/spec/views/shared/_add_content.html.erb_spec.rb +42 -0
- data/spec/views/shared/_my_actions.html.erb_spec.rb +23 -0
- data/spec/workers/visibility_copy_worker_spec.rb +70 -0
- data/tasks/jetty.rake +15 -0
- data/tasks/release.rake +93 -0
- data/vendor/assets/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/assets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/assets/javascripts/handlebars.js +2278 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.autocomplete.js +602 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.core.js +356 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.effect-highlight.js +50 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.effect.js +1276 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.menu.js +610 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.position.js +498 -0
- data/vendor/assets/javascripts/jquery-ui-1.9.2/jquery.ui.widget.js +528 -0
- data/vendor/assets/javascripts/jquery.tokeninput.js +1061 -0
- data/vendor/assets/stylesheets/jquery-ui-lightness.css +474 -0
- data/vendor/assets/stylesheets/token-input-facebook.css +122 -0
- data/vendor/assets/stylesheets/token-input-mac.css +204 -0
- data/vendor/assets/stylesheets/token-input.css +127 -0
- metadata +888 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Javascript/JQuery method is used for the population of the contributor field
|
|
3
|
+
* when a proxy user is making a deposit on behalf of someone else. The method gets the selected
|
|
4
|
+
* person on behalf of whom the proxy person is making the deposit and places that person's name in
|
|
5
|
+
* a Contributor field and clicks the contributor Add button.
|
|
6
|
+
*/
|
|
7
|
+
function updateContributors(){
|
|
8
|
+
|
|
9
|
+
// Get the selected owner name from the owner control.
|
|
10
|
+
// If it is 'Myself', then pluck the name from the display name on the dropdown menu in the title bar of the page.
|
|
11
|
+
// If 'nothing' was selected, do nothing and return.
|
|
12
|
+
|
|
13
|
+
var ownerName = $("[id*='_owner'] option:selected").text();
|
|
14
|
+
if (ownerName == 'Myself') {
|
|
15
|
+
ownerName = $(".user-display-name").text().trim();
|
|
16
|
+
}
|
|
17
|
+
else if (ownerName === "") { return; }
|
|
18
|
+
|
|
19
|
+
// Put that name into the "Add" Contributor control and force a click of the Add button.
|
|
20
|
+
// Note that the last Contributor control is always the one into which a new user is entered.
|
|
21
|
+
$('input[id$=_contributor]').last().val(ownerName);
|
|
22
|
+
$("div[class*=_contributor] .add").click();
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
jQuery ->
|
|
2
|
+
$('.autocomplete').each( (index, el) ->
|
|
3
|
+
$targetElement = $(el)
|
|
4
|
+
$targetElement.tokenInput $targetElement.data("url"), {
|
|
5
|
+
theme: 'facebook'
|
|
6
|
+
prePopulate: $('.autocomplete').data('load')
|
|
7
|
+
jsonContainer: "docs"
|
|
8
|
+
propertyToSearch: "title"
|
|
9
|
+
preventDuplicates: true
|
|
10
|
+
tokenValue: "pid"
|
|
11
|
+
onResult: (results) ->
|
|
12
|
+
pidsToFilter = $targetElement.data('exclude')
|
|
13
|
+
$.each(results.docs, (index, value) ->
|
|
14
|
+
# Filter out anything listed in data-exclude. ie. the current object.
|
|
15
|
+
if (pidsToFilter.indexOf(value.pid) > -1)
|
|
16
|
+
results.docs.splice(index, 1)
|
|
17
|
+
)
|
|
18
|
+
return results
|
|
19
|
+
}
|
|
20
|
+
)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
|
2
|
+
// Build: http://modernizr.com/download/#-fontface-borderradius-rgba-textshadow-generatedcontent-cssgradients-inlinesvg-svg-touch-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
|
|
3
|
+
;window.Modernizr=function(a,b,c){function B(a){j.cssText=a}function C(a,b){return B(n.join(a+";")+(b||""))}function D(a,b){return typeof a===b}function E(a,b){return!!~(""+a).indexOf(b)}function F(a,b){for(var d in a){var e=a[d];if(!E(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function G(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:D(f,"function")?f.bind(d||b):f}return!1}function H(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return D(b,"string")||D(b,"undefined")?F(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),G(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z={}.hasOwnProperty,A;!D(z,"undefined")&&!D(z.call,"undefined")?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.rgba=function(){return B("background-color:rgba(150,255,150,.5)"),E(j.backgroundColor,"rgba")},s.borderradius=function(){return H("borderRadius")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return B((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),E(j.backgroundImage,"gradient")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg};for(var I in s)A(s,I)&&(x=I.toLowerCase(),e[x]=s[I](),v.push((e[x]?"":"no-")+x));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},B(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.testProp=function(a){return F([a])},e.testAllProps=H,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import 'bootstrap';
|
|
2
|
+
@import "bootstrap/variables";
|
|
3
|
+
@import 'curation_concerns/variables_bootstrap';
|
|
4
|
+
@import "curation_concerns/global-variables";
|
|
5
|
+
@import "curation_concerns/positioning";
|
|
6
|
+
@import "curation_concerns/modules";
|
|
7
|
+
@import "curation_concerns/theme";
|
|
8
|
+
@import "curation_concerns/typography";
|
|
9
|
+
@import 'hydra-editor/multi_value_fields';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import 'modules/accordion';
|
|
2
|
+
@import 'modules/accessibility';
|
|
3
|
+
@import 'modules/attributes';
|
|
4
|
+
@import 'modules/classify_work';
|
|
5
|
+
@import 'modules/emphatic_action_area';
|
|
6
|
+
@import 'modules/forms';
|
|
7
|
+
@import 'modules/multi_value_fields';
|
|
8
|
+
@import 'modules/search_results';
|
|
9
|
+
@import 'modules/site_actions';
|
|
10
|
+
@import 'modules/site_search';
|
|
11
|
+
@import 'modules/pagination';
|
|
12
|
+
@import 'modules/embargoes';
|
|
13
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding:0 1em 1em;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#brand-bar-wrapper, #title-bar-wrapper {
|
|
6
|
+
margin-left:-1em;
|
|
7
|
+
margin-right:-1em;
|
|
8
|
+
h2, h3 {
|
|
9
|
+
line-height: 40px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.form-actions > form.button_to {
|
|
14
|
+
// make sure a rails button_to form renders inline when it's in a bootstrap .form-actions line.
|
|
15
|
+
display: inline-block;
|
|
16
|
+
margin-bottom:0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#site-search{
|
|
20
|
+
form {
|
|
21
|
+
margin:1em 0;
|
|
22
|
+
text-align:left;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#site-actions {
|
|
27
|
+
padding-top:1em;
|
|
28
|
+
text-align:right;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#footer {
|
|
32
|
+
margin-top:2em;
|
|
33
|
+
margin-bottom:1em;
|
|
34
|
+
|
|
35
|
+
.footer-text {
|
|
36
|
+
margin-top:1em;
|
|
37
|
+
padding-top:1.5em;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.page-search {
|
|
42
|
+
padding-top:2em;
|
|
43
|
+
text-align:right;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
legend .pull-right {
|
|
47
|
+
margin-top:.2em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.unpadded {
|
|
51
|
+
padding:0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.related_files {
|
|
55
|
+
max-height: 400px;
|
|
56
|
+
overflow: auto;
|
|
57
|
+
|
|
58
|
+
.thumbnail {
|
|
59
|
+
display: inline;
|
|
60
|
+
border: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.with-headroom {
|
|
67
|
+
padding-top:3em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.with-footroom {
|
|
71
|
+
padding-bottom:3em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.with-top-padding {
|
|
75
|
+
padding-top:2em;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.with-side-padding {
|
|
79
|
+
padding-left:2em;
|
|
80
|
+
padding-right:2em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
dl.stacked {
|
|
84
|
+
dt {
|
|
85
|
+
clear:both;
|
|
86
|
+
float:left;
|
|
87
|
+
width:30%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
dd {
|
|
91
|
+
clear:right;
|
|
92
|
+
margin:0 0 0 30%;
|
|
93
|
+
width:40%;
|
|
94
|
+
word-wrap:break-word;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.main-header,
|
|
99
|
+
.page-actions {
|
|
100
|
+
margin-bottom: 30px;
|
|
101
|
+
margin-top: 20px;
|
|
102
|
+
padding-bottom: 9px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.main-header {
|
|
106
|
+
border-bottom: 1px solid $gray-lighter;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.page-actions {
|
|
110
|
+
text-align:right;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.search > .row > .main-header {
|
|
114
|
+
border-bottom: none;
|
|
115
|
+
margin-bottom: 24px;
|
|
116
|
+
padding-bottom: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.main-header > .navbar {
|
|
120
|
+
margin-bottom: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.search .sidebar > h3:first-child {
|
|
124
|
+
margin-top: -.4em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.search .welcome-text > h2:first-child {
|
|
128
|
+
margin-top: -.2em;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.search .call-to-action {
|
|
132
|
+
text-align: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
legend + .form-group {
|
|
136
|
+
margin-top: 0px;
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#brand-bar-wrapper {
|
|
2
|
+
background-color: $blue-dark;
|
|
3
|
+
background-image: linear-gradient(#0d407b,#07366c 85%,#001834);
|
|
4
|
+
border-bottom:1px solid #001834;
|
|
5
|
+
|
|
6
|
+
h2 a, h3 a {
|
|
7
|
+
color:#FFF;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.division {
|
|
11
|
+
float:right;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
#title-bar-wrapper {
|
|
16
|
+
background-color:$yellow;
|
|
17
|
+
background-image: linear-gradient(#f5e59e,#dcb439 98%,#9c7012);
|
|
18
|
+
border-top:1px solid #FFF;
|
|
19
|
+
margin-bottom:.3em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#site-title {
|
|
23
|
+
h1 {
|
|
24
|
+
text-shadow: #fff 0 0 1px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a,
|
|
28
|
+
a:hover,
|
|
29
|
+
a:visited {
|
|
30
|
+
color:$blue;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#main {
|
|
35
|
+
h1,h2,h3,h4,h5,h6 {
|
|
36
|
+
color:$blue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#footer {
|
|
41
|
+
color: $gray-light;
|
|
42
|
+
|
|
43
|
+
.footer-text {
|
|
44
|
+
border-top:1px solid $gray-lighter;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
@import 'global-variables';
|
|
2
|
+
|
|
3
|
+
#banner {
|
|
4
|
+
h1,h2,h3 {
|
|
5
|
+
font-weight:normal;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
a {
|
|
9
|
+
text-decoration:none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#brand-bar-wrapper {
|
|
14
|
+
font-family: $font-family-serif;
|
|
15
|
+
letter-spacing:.2em;
|
|
16
|
+
padding:.15em 0;
|
|
17
|
+
text-transform:uppercase;
|
|
18
|
+
|
|
19
|
+
h2, h3 {
|
|
20
|
+
font-size:.95em;
|
|
21
|
+
margin:0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.division {
|
|
25
|
+
text-align:right;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
i {
|
|
29
|
+
letter-spacing:0;
|
|
30
|
+
padding:0 .2em;
|
|
31
|
+
text-transform:none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#site-title h1 {
|
|
36
|
+
font-family: $font-family-serif;
|
|
37
|
+
font-size:2.4em;
|
|
38
|
+
line-height:1.2em;
|
|
39
|
+
text-align:center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#main,
|
|
43
|
+
.modal-header {
|
|
44
|
+
h1,h2,h3,h4,h5,h6 {
|
|
45
|
+
font-family:$headings-font-family;
|
|
46
|
+
font-weight:normal;
|
|
47
|
+
text-rendering: optimizeLegibility;
|
|
48
|
+
}
|
|
49
|
+
h1 {
|
|
50
|
+
.human_readable_type {
|
|
51
|
+
font-size:.66em;
|
|
52
|
+
padding-left:1em;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
legend {
|
|
58
|
+
font-family: $headings-font-family;
|
|
59
|
+
line-height: 40px;
|
|
60
|
+
|
|
61
|
+
a {
|
|
62
|
+
font-family: $font-family-sans-serif;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.table-heading {
|
|
67
|
+
text-align:left;
|
|
68
|
+
|
|
69
|
+
h1,h2,h3,h4,h5,h6 {
|
|
70
|
+
padding-top:1em;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nested-field-heading {
|
|
75
|
+
font-family: $font-family-sans-serif;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight:normal;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.redacted {
|
|
81
|
+
font-family:'BLOKKNeue-Regular';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
#footer {
|
|
85
|
+
text-align:center;
|
|
86
|
+
|
|
87
|
+
p {
|
|
88
|
+
margin-bottom:.3em;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.accessible-hidden {
|
|
93
|
+
border: 0;
|
|
94
|
+
clip: rect(0 0 0 0);
|
|
95
|
+
height: 1px;
|
|
96
|
+
margin: -1px;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
padding: 0;
|
|
99
|
+
position: absolute;
|
|
100
|
+
width: 1px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.centered {
|
|
104
|
+
text-align:center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.doi {
|
|
108
|
+
font-size:200%;
|
|
109
|
+
margin:1em 0;
|
|
110
|
+
text-align:center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.inline-item-actions {
|
|
114
|
+
padding:0 .5em;
|
|
115
|
+
|
|
116
|
+
a {
|
|
117
|
+
margin-right:.5em;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.wide-text {
|
|
122
|
+
@media (min-width: 60em){
|
|
123
|
+
-webkit-column-count:2;
|
|
124
|
+
-webkit-column-gap:2em;
|
|
125
|
+
-moz-column-count:2;
|
|
126
|
+
-moz-column-gap:2em;
|
|
127
|
+
column-count:2;
|
|
128
|
+
column-gap:2em;
|
|
129
|
+
p {
|
|
130
|
+
column-break-inside:avoid;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.center {
|
|
136
|
+
text-align:center;
|
|
137
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$font-size-base: 14px;
|
|
2
|
+
$font-size-h1: floor(($font-size-base * 2.15)) !default; // ~30px
|
|
3
|
+
$font-size-h2: floor(($font-size-base * 1.7)) !default; // ~24px
|
|
4
|
+
$font-size-h3: ceil(($font-size-base * 1.53)) !default; // ~201px
|
|
5
|
+
$font-size-h4: ceil(($font-size-base * 1.21)) !default; // ~17px
|
|
6
|
+
$font-size-h5: $font-size-base !default;
|
|
7
|
+
$font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Helper classes from http://html5boilerplate.com/
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Hide from both screenreaders and browsers: h5bp.com/u
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.hidden {
|
|
10
|
+
display: none !important;
|
|
11
|
+
visibility: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.visuallyhidden {
|
|
19
|
+
border: 0;
|
|
20
|
+
clip: rect(0 0 0 0);
|
|
21
|
+
height: 1px;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
padding: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 1px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Extends the .visuallyhidden class to allow the element to be focusable
|
|
31
|
+
* when navigated to via the keyboard: h5bp.com/p
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
.visuallyhidden.focusable:active,
|
|
35
|
+
.visuallyhidden.focusable:focus {
|
|
36
|
+
clip: auto;
|
|
37
|
+
height: auto;
|
|
38
|
+
margin: 0;
|
|
39
|
+
overflow: visible;
|
|
40
|
+
position: static;
|
|
41
|
+
width: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* Hide visually and from screenreaders, but maintain layout
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
.invisible {
|
|
49
|
+
visibility: hidden;
|
|
50
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.accordion {
|
|
2
|
+
.accordion-toggle {
|
|
3
|
+
color:$blue
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.accordion-toggle:hover {
|
|
7
|
+
text-decoration:none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.js .accordion {
|
|
12
|
+
.accordion-toggle:before {
|
|
13
|
+
content:"";
|
|
14
|
+
display:inline-block;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
margin:0 .4em .25em -.2em;
|
|
18
|
+
border-style:solid;
|
|
19
|
+
border-color:$blue transparent transparent transparent;
|
|
20
|
+
border-width:.3em .3em 0 .3em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.accordion-toggle.collapsed:before {
|
|
24
|
+
margin:0 .5em .2em 0;
|
|
25
|
+
border-color:transparent transparent transparent $blue;
|
|
26
|
+
border-width:.3em 0 .3em .3em;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* If form elements are present in an accordion they won't be wrapped in a row */
|
|
31
|
+
.accordion-inner .form-group {
|
|
32
|
+
margin-bottom:1.5em;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.attribute-list {
|
|
2
|
+
clear:both;
|
|
3
|
+
float:left;
|
|
4
|
+
list-style-type:none;
|
|
5
|
+
margin-top:0;
|
|
6
|
+
width:100%;
|
|
7
|
+
|
|
8
|
+
dt,
|
|
9
|
+
.label {
|
|
10
|
+
float:left;
|
|
11
|
+
clear:both;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
dd,
|
|
15
|
+
.value {
|
|
16
|
+
float:left;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.attribute a .secondary {
|
|
21
|
+
font-size: .8em;
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.table .tabular {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
.attribute {
|
|
29
|
+
list-style-type: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@import 'curation_concerns/global-variables';
|
|
2
|
+
|
|
3
|
+
/* Aligning content types by leveraging text-align:justify
|
|
4
|
+
http://www.barrelny.com/blog/text-align-justify-and-rwd/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.classify-work {
|
|
8
|
+
list-style-type:none;
|
|
9
|
+
text-align: justify;
|
|
10
|
+
font-size: 0.1px;
|
|
11
|
+
margin:0 0 2em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* 2 Column */
|
|
15
|
+
.classify-work > .work-type {
|
|
16
|
+
border:1px solid #EEE;
|
|
17
|
+
box-sizing:border-box;
|
|
18
|
+
display:inline-block;
|
|
19
|
+
font-size: $font-size-base;
|
|
20
|
+
padding:.5em;
|
|
21
|
+
position:relative;
|
|
22
|
+
text-align:center;
|
|
23
|
+
margin:1em 4%;
|
|
24
|
+
width:40%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* 3 Column */
|
|
28
|
+
@media (min-width: 600px){
|
|
29
|
+
.classify-work > .work-type {
|
|
30
|
+
margin:1em 2%;
|
|
31
|
+
width:29%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* 4 Column */
|
|
36
|
+
@media (min-width: 1000px){
|
|
37
|
+
.classify-work > .work-type {
|
|
38
|
+
margin:1em 2%;
|
|
39
|
+
width:21%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* 5 Column */
|
|
44
|
+
@media (min-width: 1200px){
|
|
45
|
+
.classify-work > .work-type {
|
|
46
|
+
margin:1em 1%;
|
|
47
|
+
width:18%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.classify-work > .placeholder {
|
|
52
|
+
border-color:transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.classify-work > .upcoming {
|
|
56
|
+
color:#ACACAC;
|
|
57
|
+
color:rgba(51, 51, 51, 0.5);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.classify-work > .upcoming:before {
|
|
61
|
+
background-color:#FFF;
|
|
62
|
+
background-color:rgba(255, 255, 255, 0.8);
|
|
63
|
+
color:#F00;
|
|
64
|
+
content:"Coming Soon";
|
|
65
|
+
font-size:1.5em;
|
|
66
|
+
left:0;
|
|
67
|
+
position:absolute;
|
|
68
|
+
text-align:center;
|
|
69
|
+
text-shadow:0 0 2px #CCC, 0 0 1em #FFF;
|
|
70
|
+
top:40%;
|
|
71
|
+
width:100%;
|
|
72
|
+
z-index:1;
|
|
73
|
+
|
|
74
|
+
-webkit-transform: rotate(-30deg);
|
|
75
|
+
-moz-transform: rotate(-30deg);
|
|
76
|
+
-ms-transform: rotate(-30deg);
|
|
77
|
+
-o-transform: rotate(-30deg);
|
|
78
|
+
transform: rotate(-30deg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#main .upcoming .title {
|
|
82
|
+
color:#8096AE;
|
|
83
|
+
color:rgba(0, 43, 91, 0.5);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.classify-work .title {
|
|
87
|
+
margin-top:0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.classify-work .short-description {
|
|
91
|
+
font-size:1em;
|
|
92
|
+
height:4.29em; /* Leave space for three lines */
|
|
93
|
+
line-height:1.43;
|
|
94
|
+
text-align:left;
|
|
95
|
+
margin-bottom:0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.classify-work .add-button {
|
|
99
|
+
margin:.5em 0;
|
|
100
|
+
}
|