hyrax 3.0.0.pre.rc2 → 3.0.0.pre.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -5
- data/.dassie/.env +4 -0
- data/.dassie/.gitignore +27 -0
- data/.dassie/Gemfile +57 -0
- data/.dassie/README.md +3 -0
- data/.dassie/Rakefile +6 -0
- data/.dassie/app/actors/hyrax/actors/generic_work_actor.rb +8 -0
- data/.dassie/app/actors/hyrax/actors/namespaced_works/nested_work_actor.rb +8 -0
- data/.dassie/app/assets/config/manifest.js +3 -0
- data/.dassie/app/assets/images/.keep +0 -0
- data/.dassie/app/assets/images/unauthorized.png +0 -0
- data/.dassie/app/assets/images/us_404.svg +91 -0
- data/.dassie/app/assets/javascripts/application.js +26 -0
- data/.dassie/app/assets/javascripts/blacklight_gallery.js +1 -0
- data/.dassie/app/assets/javascripts/cable.js +13 -0
- data/.dassie/app/assets/javascripts/channels/.keep +0 -0
- data/.dassie/app/assets/javascripts/openseadragon.js +2 -0
- data/.dassie/app/assets/stylesheets/application.css +16 -0
- data/.dassie/app/assets/stylesheets/hyrax.scss +17 -0
- data/.dassie/app/assets/stylesheets/openseadragon.css +3 -0
- data/.dassie/app/channels/application_cable/channel.rb +4 -0
- data/.dassie/app/channels/application_cable/connection.rb +4 -0
- data/.dassie/app/controllers/application_controller.rb +14 -0
- data/.dassie/app/controllers/catalog_controller.rb +300 -0
- data/.dassie/app/controllers/concerns/.keep +0 -0
- data/.dassie/app/controllers/hyrax/generic_works_controller.rb +14 -0
- data/.dassie/app/controllers/hyrax/monographs_controller.rb +17 -0
- data/.dassie/app/controllers/hyrax/namespaced_works/nested_works_controller.rb +14 -0
- data/.dassie/app/forms/hyrax/generic_work_form.rb +9 -0
- data/.dassie/app/forms/hyrax/namespaced_works/nested_work_form.rb +9 -0
- data/.dassie/app/forms/monograph_form.rb +20 -0
- data/.dassie/app/helpers/application_helper.rb +2 -0
- data/.dassie/app/helpers/hyrax_helper.rb +6 -0
- data/.dassie/app/indexers/generic_work_indexer.rb +18 -0
- data/.dassie/app/indexers/monograph_indexer.rb +16 -0
- data/.dassie/app/indexers/namespaced_works/nested_work_indexer.rb +18 -0
- data/.dassie/app/jobs/application_job.rb +2 -0
- data/.dassie/app/mailers/application_mailer.rb +4 -0
- data/.dassie/app/models/ability.rb +21 -0
- data/.dassie/app/models/application_record.rb +3 -0
- data/.dassie/app/models/collection.rb +8 -0
- data/.dassie/app/models/concerns/.keep +0 -0
- data/.dassie/app/models/file_set.rb +5 -0
- data/.dassie/app/models/generic_work.rb +14 -0
- data/.dassie/app/models/monograph.rb +8 -0
- data/.dassie/app/models/namespaced_works/nested_work.rb +16 -0
- data/.dassie/app/models/qa.rb +5 -0
- data/.dassie/app/models/qa/local_authority.rb +2 -0
- data/.dassie/app/models/qa/local_authority_entry.rb +3 -0
- data/.dassie/app/models/search_builder.rb +16 -0
- data/.dassie/app/models/solr_document.rb +28 -0
- data/.dassie/app/models/time_span.rb +22 -0
- data/.dassie/app/models/user.rb +26 -0
- data/.dassie/app/presenters/hyrax/generic_work_presenter.rb +6 -0
- data/.dassie/app/presenters/hyrax/namespaced_works/nested_work_presenter.rb +6 -0
- data/.dassie/app/views/hyrax/generic_works/_generic_work.html.erb +2 -0
- data/.dassie/app/views/hyrax/monographs/_monograph.html.erb +2 -0
- data/.dassie/app/views/hyrax/namespaced_works/nested_works/_nested_work.html.erb +2 -0
- data/.dassie/app/views/layouts/application.html.erb +15 -0
- data/.dassie/app/views/layouts/mailer.html.erb +13 -0
- data/.dassie/app/views/layouts/mailer.text.erb +1 -0
- data/.dassie/bin/bundle +3 -0
- data/.dassie/bin/rails +9 -0
- data/.dassie/bin/rake +9 -0
- data/.dassie/bin/setup +36 -0
- data/.dassie/bin/spring +17 -0
- data/.dassie/bin/update +31 -0
- data/.dassie/bin/yarn +11 -0
- data/.dassie/config.ru +5 -0
- data/.dassie/config/analytics.yml +6 -0
- data/.dassie/config/application.rb +22 -0
- data/.dassie/config/arkivo.yml +6 -0
- data/.dassie/config/authorities/licenses.yml +46 -0
- data/.dassie/config/authorities/resource_types.yml +41 -0
- data/.dassie/config/authorities/rights_statements.yml +37 -0
- data/.dassie/config/blacklight.yml +9 -0
- data/.dassie/config/boot.rb +4 -0
- data/.dassie/config/browse_everything_providers.yml +2 -0
- data/.dassie/config/cable.yml +10 -0
- data/.dassie/config/credentials.yml.enc +1 -0
- data/.dassie/config/environment.rb +5 -0
- data/.dassie/config/environments/development.rb +69 -0
- data/.dassie/config/environments/production.rb +94 -0
- data/.dassie/config/environments/test.rb +51 -0
- data/.dassie/config/fedora.yml +15 -0
- data/.dassie/config/initializers/arkivo_constraint.rb +12 -0
- data/.dassie/config/initializers/assets.rb +2 -0
- data/.dassie/config/initializers/clamav.rb +2 -0
- data/.dassie/config/initializers/cookies_serializer.rb +1 -0
- data/.dassie/config/initializers/devise.rb +13 -0
- data/.dassie/config/initializers/filter_parameter_logging.rb +1 -0
- data/.dassie/config/initializers/hydra_config.rb +6 -0
- data/.dassie/config/initializers/hyrax.rb +48 -0
- data/.dassie/config/initializers/mailboxer.rb +21 -0
- data/.dassie/config/initializers/mime_types.rb +4 -0
- data/.dassie/config/initializers/mini_magick.rb +6 -0
- data/.dassie/config/initializers/redis_config.rb +4 -0
- data/.dassie/config/initializers/riiif.rb +27 -0
- data/.dassie/config/initializers/simple_form.rb +28 -0
- data/.dassie/config/initializers/simple_form_bootstrap.rb +143 -0
- data/.dassie/config/initializers/wrap_parameters.rb +3 -0
- data/.dassie/config/locales/blacklight.en.yml +3 -0
- data/.dassie/config/locales/devise.en.yml +65 -0
- data/.dassie/config/locales/generic_work.de.yml +8 -0
- data/.dassie/config/locales/generic_work.en.yml +8 -0
- data/.dassie/config/locales/generic_work.es.yml +10 -0
- data/.dassie/config/locales/generic_work.fr.yml +8 -0
- data/.dassie/config/locales/generic_work.it.yml +8 -0
- data/.dassie/config/locales/generic_work.pt-BR.yml +8 -0
- data/.dassie/config/locales/generic_work.zh.yml +10 -0
- data/.dassie/config/locales/hyrax.de.yml +58 -0
- data/.dassie/config/locales/hyrax.en.yml +58 -0
- data/.dassie/config/locales/hyrax.es.yml +58 -0
- data/.dassie/config/locales/hyrax.fr.yml +58 -0
- data/.dassie/config/locales/hyrax.it.yml +58 -0
- data/.dassie/config/locales/hyrax.pt-BR.yml +58 -0
- data/.dassie/config/locales/hyrax.zh.yml +58 -0
- data/.dassie/config/locales/namespaced_works/nested_work.de.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.en.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.es.yml +10 -0
- data/.dassie/config/locales/namespaced_works/nested_work.fr.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.it.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.pt-BR.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.zh.yml +10 -0
- data/.dassie/config/metadata/monograph.yaml +55 -0
- data/.dassie/config/metadata/sample_metadata.yaml +3 -0
- data/.dassie/config/puma.rb +6 -0
- data/.dassie/config/redis.yml +9 -0
- data/.dassie/config/role_map.yml +24 -0
- data/.dassie/config/routes.rb +35 -0
- data/.dassie/config/solr.yml +7 -0
- data/.dassie/config/spring.rb +6 -0
- data/.dassie/config/storage.yml +7 -0
- data/.dassie/config/tinymce.yml +12 -0
- data/.dassie/config/uv/uv-config.json +3 -0
- data/.dassie/config/uv/uv.html +87 -0
- data/.dassie/config/valkyrie_index.yml +12 -0
- data/.dassie/config/workflows/default_workflow.json +21 -0
- data/.dassie/config/workflows/mediated_deposit_workflow.json +76 -0
- data/.dassie/config/zotero.yml +6 -0
- data/.dassie/db/migrate/20200821212749_create_searches.blacklight.rb +17 -0
- data/.dassie/db/migrate/20200821212750_create_bookmarks.blacklight.rb +19 -0
- data/.dassie/db/migrate/20200821212751_add_polymorphic_type_to_bookmarks.blacklight.rb +9 -0
- data/.dassie/db/migrate/20200821212803_devise_create_users.rb +44 -0
- data/.dassie/db/migrate/20200821212806_add_devise_guests_to_users.rb +15 -0
- data/.dassie/db/migrate/20200821212828_create_version_committers.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212829_create_checksum_audit_logs.hyrax.rb +19 -0
- data/.dassie/db/migrate/20200821212830_create_single_use_links.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212831_add_social_to_users.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212832_add_ldap_attrs_to_user.hyrax.rb +27 -0
- data/.dassie/db/migrate/20200821212833_add_avatars_to_users.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212834_create_trophies.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212835_add_linkedin_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212836_create_tinymce_assets.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212837_create_content_blocks.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212838_create_featured_works.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212839_add_external_key_to_content_blocks.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212840_create_proxy_deposit_rights.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212841_create_proxy_deposit_requests.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212842_create_file_view_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212843_create_file_download_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212844_add_orcid_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212845_create_user_stats.hyrax.rb +19 -0
- data/.dassie/db/migrate/20200821212846_create_work_view_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212847_add_works_to_user_stats.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212848_change_trophy_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212849_change_proxy_deposit_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212850_change_audit_log_generic_file_id_to_file_set_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212851_change_proxy_deposit_request_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212852_create_uploaded_files.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212853_create_features.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212854_create_operations.hyrax.rb +23 -0
- data/.dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212856_add_arkivo_to_users.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212857_create_sipity.hyrax.rb +163 -0
- data/.dassie/db/migrate/20200821212858_create_sipity_workflow_methods.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212859_create_permission_template.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212860_create_permission_template_access.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212861_add_release_to_permission_templates.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212862_add_permission_template_to_sipity_workflow.hyrax.rb +26 -0
- data/.dassie/db/migrate/20200821212863_tidy_up_because_of_bad_exception.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212864_add_allows_access_grant_to_workflow.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212865_change_checksum_audit_log.hyrax.rb +18 -0
- data/.dassie/db/migrate/20200821212866_create_job_io_wrappers.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212867_create_collection_types.hyrax.rb +17 -0
- data/.dassie/db/migrate/20200821212868_update_collection_type_column_names.hyrax.rb +9 -0
- data/.dassie/db/migrate/20200821212869_update_collection_type_column_options.hyrax.rb +17 -0
- data/.dassie/db/migrate/20200821212870_create_collection_branding_infos.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212871_create_collection_type_participants.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212872_rename_admin_set_id_to_source_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212873_add_preferred_locale_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212874_add_collection_type_sharing_options.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212875_add_unique_constraint_to_permission_template_accesses.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212876_add_branding_to_collection_type.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212877_add_badge_color_to_collection_types.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212878_update_single_use_links_column_names.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212879_change_sipity_entity_specific_responsibility.hyrax.rb +9 -0
- data/.dassie/db/migrate/20200821212880_create_mailboxer.mailboxer_engine.rb +65 -0
- data/.dassie/db/migrate/20200821212881_add_conversation_optout.mailboxer_engine.rb +15 -0
- data/.dassie/db/migrate/20200821212882_add_missing_indices.mailboxer_engine.rb +20 -0
- data/.dassie/db/migrate/20200821212883_add_delivery_tracking_info_to_mailboxer_receipts.mailboxer_engine.rb +8 -0
- data/.dassie/db/migrate/20200821212884_create_qa_local_authorities.rb +10 -0
- data/.dassie/db/migrate/20200821212885_create_qa_local_authority_entries.rb +12 -0
- data/.dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb +17 -0
- data/.dassie/db/migrate/20200821212903_rename_minter_state_random_to_rand.noid_rails_engine.rb +8 -0
- data/.dassie/db/schema.rb +563 -0
- data/.dassie/db/seeds.rb +14 -0
- data/.dassie/lib/assets/.keep +0 -0
- data/.dassie/lib/tasks/.keep +0 -0
- data/.dassie/log/.keep +0 -0
- data/.dassie/package.json +17 -0
- data/.dassie/public/404.html +67 -0
- data/.dassie/public/422.html +67 -0
- data/.dassie/public/500.html +66 -0
- data/.dassie/public/apple-touch-icon-precomposed.png +0 -0
- data/.dassie/public/apple-touch-icon.png +0 -0
- data/.dassie/public/favicon.ico +0 -0
- data/.dassie/public/robots.txt +1 -0
- data/.dassie/solr/conf/_rest_managed.json +3 -0
- data/.dassie/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/.dassie/solr/conf/schema.xml +367 -0
- data/.dassie/solr/conf/scripts.conf +24 -0
- data/.dassie/solr/conf/solrconfig.xml +208 -0
- data/.dassie/solr/conf/stopwords.txt +58 -0
- data/.dassie/solr/conf/stopwords_en.txt +58 -0
- data/.dassie/solr/conf/xslt/example.xsl +132 -0
- data/.dassie/solr/conf/xslt/example_atom.xsl +67 -0
- data/.dassie/solr/conf/xslt/example_rss.xsl +66 -0
- data/.dassie/solr/conf/xslt/luke.xsl +337 -0
- data/.dassie/solr/sample_solr_documents.yml +2692 -0
- data/.dassie/storage/.keep +0 -0
- data/.dassie/values.stage.yaml +7 -0
- data/.dassie/values.yaml +15 -0
- data/.dassie/vendor/.keep +0 -0
- data/.dockerignore +11 -0
- data/.env +26 -0
- data/.github/CODE_OF_CONDUCT.md +4 -4
- data/.github/CONTRIBUTING.md +1 -1
- data/.github/SUPPORT.md +13 -1
- data/.gitignore +1 -1
- data/.regen +1 -1
- data/.rubocop.yml +1 -0
- data/.rubocop_fixme.yml +4 -0
- data/CODE_OF_CONDUCT.md +4 -4
- data/CONTAINERS.md +148 -0
- data/CONTRIBUTING.md +1 -1
- data/Dockerfile +75 -0
- data/Gemfile +26 -35
- data/README.md +61 -288
- data/app/actors/hyrax/actors/attach_members_actor.rb +7 -5
- data/app/actors/hyrax/actors/base_actor.rb +0 -1
- data/app/actors/hyrax/actors/create_with_files_ordered_members_actor.rb +28 -28
- data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +2 -3
- data/app/actors/hyrax/actors/create_with_remote_files_ordered_members_actor.rb +23 -28
- data/app/actors/hyrax/actors/default_admin_set_actor.rb +20 -21
- data/app/actors/hyrax/actors/file_actor.rb +32 -32
- data/app/actors/hyrax/actors/file_set_actor.rb +4 -15
- data/app/actors/hyrax/actors/initialize_workflow_actor.rb +8 -0
- data/app/actors/hyrax/actors/transfer_request_actor.rb +5 -0
- data/app/assets/javascripts/hyrax.js +1 -0
- data/app/assets/javascripts/hyrax/skip_to_content.js +15 -0
- data/app/assets/stylesheets/hyrax/_usage-stats.scss +1 -1
- data/app/authorities/qa/authorities/collections.rb +18 -8
- data/app/authorities/qa/authorities/find_works.rb +20 -5
- data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +15 -6
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +62 -31
- data/app/controllers/hyrax/dashboard/collections_controller.rb +22 -12
- data/app/controllers/hyrax/dashboard/works_controller.rb +3 -4
- data/app/controllers/hyrax/file_sets_controller.rb +19 -10
- data/app/controllers/hyrax/homepage_controller.rb +11 -11
- data/app/controllers/hyrax/my/collections_controller.rb +5 -6
- data/app/controllers/hyrax/my/highlights_controller.rb +2 -3
- data/app/controllers/hyrax/my/shares_controller.rb +2 -3
- data/app/controllers/hyrax/my/works_controller.rb +1 -6
- data/app/controllers/hyrax/my_controller.rb +10 -2
- data/app/controllers/hyrax/permissions_controller.rb +1 -0
- data/app/controllers/hyrax/single_use_links_viewer_controller.rb +11 -5
- data/app/controllers/hyrax/users_controller.rb +5 -10
- data/app/forms/hyrax/forms/failed_submission_form_wrapper.rb +136 -0
- data/app/forms/hyrax/forms/resource_form.rb +8 -4
- data/app/helpers/hyrax/collections_helper.rb +1 -1
- data/app/helpers/hyrax/dashboard_helper_behavior.rb +7 -2
- data/app/helpers/hyrax/embargo_helper.rb +5 -1
- data/app/helpers/hyrax/hyrax_helper_behavior.rb +10 -5
- data/app/helpers/hyrax/lease_helper.rb +5 -1
- data/app/indexers/hyrax/pcdm_collection_indexer.rb +21 -0
- data/app/indexers/hyrax/resource_indexer.rb +3 -1
- data/app/indexers/hyrax/valkyrie_collection_indexer.rb +3 -12
- data/app/indexers/hyrax/valkyrie_indexer.rb +45 -17
- data/app/indexers/hyrax/valkyrie_work_indexer.rb +16 -0
- data/app/jobs/attach_files_to_work_job.rb +3 -41
- data/app/jobs/embargo_expiry_job.rb +15 -0
- data/app/jobs/event_job.rb +14 -7
- data/app/jobs/hyrax/application_job.rb +6 -1
- data/app/jobs/import_url_job.rb +11 -5
- data/app/jobs/inherit_permissions_job.rb +6 -25
- data/app/jobs/lease_expiry_job.rb +15 -0
- data/app/models/admin_set.rb +1 -1
- data/app/models/concerns/hyrax/ability.rb +192 -21
- data/app/models/concerns/hyrax/ability/admin_set_ability.rb +0 -5
- data/app/models/concerns/hyrax/collection_behavior.rb +7 -13
- data/app/models/concerns/hyrax/permissions/writable.rb +2 -2
- data/app/models/concerns/hyrax/solr_document/characterization.rb +35 -2
- data/app/models/concerns/hyrax/solr_document_behavior.rb +37 -5
- data/app/models/hyrax/change_set.rb +5 -1
- data/app/models/hyrax/collection_type.rb +59 -22
- data/app/models/hyrax/event.rb +5 -7
- data/app/models/hyrax/file_metadata.rb +15 -4
- data/app/models/hyrax/pcdm_collection.rb +13 -0
- data/app/models/hyrax/uploaded_file.rb +9 -2
- data/app/models/hyrax/{active_job_proxy.rb → valkyrie_global_id_proxy.rb} +6 -5
- data/app/models/hyrax/virus_scanner.rb +2 -1
- data/app/models/hyrax/work.rb +1 -1
- data/app/models/sipity.rb +6 -0
- data/app/models/sipity/entity.rb +1 -1
- data/app/models/sipity/workflow.rb +23 -3
- data/app/presenters/hyrax/admin/repository_object_presenter.rb +7 -2
- data/app/presenters/hyrax/collection_presenter.rb +1 -1
- data/app/presenters/hyrax/file_set_presenter.rb +3 -0
- data/app/presenters/hyrax/iiif_manifest_presenter.rb +3 -3
- data/app/presenters/hyrax/permission_badge.rb +1 -1
- data/app/presenters/hyrax/presenter_factory.rb +0 -2
- data/app/presenters/hyrax/select_collection_type_presenter.rb +16 -3
- data/app/presenters/hyrax/select_type_presenter.rb +3 -2
- data/app/presenters/hyrax/stats_usage_presenter.rb +0 -1
- data/app/presenters/hyrax/work_show_presenter.rb +1 -1
- data/app/renderers/hyrax/renderers/attribute_renderer.rb +16 -6
- data/app/search_builders/hyrax/README.md +3 -3
- data/app/search_builders/hyrax/admin_admin_set_member_search_builder.rb +8 -2
- data/app/search_builders/hyrax/collection_member_search_builder.rb +21 -7
- data/app/search_builders/hyrax/dashboard/managed_search_filters.rb +1 -1
- data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +1 -1
- data/app/search_builders/hyrax/embargo_search_builder.rb +0 -1
- data/app/search_builders/hyrax/filter_by_type.rb +3 -1
- data/app/search_builders/hyrax/lease_search_builder.rb +0 -1
- data/app/search_builders/hyrax/nested_collections_parent_search_builder.rb +12 -2
- data/app/search_builders/hyrax/search_builder.rb +1 -4
- data/app/search_builders/hyrax/search_filters.rb +0 -2
- data/app/services/hyrax/access_control_list.rb +33 -2
- data/app/services/hyrax/adapters/nesting_index_adapter.rb +26 -7
- data/app/services/hyrax/admin_set_member_service.rb +18 -4
- data/{lib/hyrax/callbacks/registry.rb → app/services/hyrax/callbacks.rb} +23 -0
- data/app/services/hyrax/change_content_depositor_service.rb +4 -1
- data/app/services/hyrax/collection_member_service.rb +5 -1
- data/app/services/hyrax/collection_types/permissions_service.rb +0 -2
- data/app/services/hyrax/collections/collection_member_service.rb +44 -64
- data/app/services/hyrax/collections/managed_collections_service.rb +15 -2
- data/app/services/hyrax/collections/migration_service.rb +9 -3
- data/app/services/hyrax/collections/nested_collection_persistence_service.rb +1 -1
- data/app/services/hyrax/collections/nested_collection_query_service.rb +39 -19
- data/app/services/hyrax/collections/permissions_service.rb +0 -1
- data/app/services/hyrax/collections_service.rb +12 -12
- data/app/services/hyrax/custom_queries/find_collections_by_type.rb +1 -1
- data/app/services/hyrax/custom_queries/navigators/child_collections_navigator.rb +14 -3
- data/app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb +14 -3
- data/app/services/hyrax/custom_queries/navigators/child_works_navigator.rb +10 -3
- data/app/services/hyrax/custom_queries/navigators/collection_members.rb +1 -0
- data/app/services/hyrax/custom_queries/navigators/find_files.rb +3 -0
- data/app/services/hyrax/database_migrator.rb +13 -10
- data/app/services/hyrax/default_middleware_stack.rb +0 -6
- data/app/services/hyrax/ensure_well_formed_admin_set_service.rb +27 -0
- data/app/services/hyrax/file_set_fixity_check_service.rb +16 -17
- data/app/services/hyrax/file_set_type_service.rb +55 -0
- data/app/services/hyrax/graph_exporter.rb +64 -8
- data/app/services/hyrax/list_source_exporter.rb +16 -34
- data/app/services/hyrax/listeners.rb +22 -0
- data/app/services/hyrax/listeners/proxy_deposit_listener.rb +20 -0
- data/app/services/hyrax/listeners/workflow_listener.rb +36 -0
- data/app/services/hyrax/multiple_membership_checker.rb +2 -1
- data/app/services/hyrax/quick_classification_query.rb +2 -3
- data/app/services/hyrax/resource_visibility_propagator.rb +1 -1
- data/app/services/hyrax/search_service.rb +108 -0
- data/app/services/hyrax/simple_schema_loader.rb +3 -1
- data/app/services/hyrax/statistics/depositors/summary.rb +0 -1
- data/app/services/hyrax/statistics/system_stats.rb +0 -1
- data/app/services/hyrax/thumbnail_path_service.rb +6 -1
- data/app/services/hyrax/time_service.rb +10 -0
- data/app/services/hyrax/versioning_service.rb +4 -28
- data/app/services/hyrax/work_uploads_handler.rb +166 -0
- data/app/services/hyrax/workflow/action_taken_service.rb +14 -1
- data/app/services/hyrax/workflow/grant_edit_to_depositor.rb +3 -1
- data/app/services/hyrax/workflow/permission_generator.rb +14 -9
- data/app/services/hyrax/workflow/workflow_action_service.rb +1 -1
- data/app/services/hyrax/workflow/workflow_factory.rb +12 -10
- data/app/services/hyrax/working_directory.rb +0 -1
- data/app/services/hyrax/works/managed_works_service.rb +14 -2
- data/app/views/_controls.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/base/_member.html.erb +1 -1
- data/app/views/hyrax/base/_representative_media.html.erb +1 -1
- data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +1 -1
- data/app/views/hyrax/base/show.html.erb +2 -2
- data/app/views/hyrax/batch_select/_add_button.html.erb +1 -1
- data/app/views/hyrax/collections/_default_group.html.erb +2 -0
- data/app/views/hyrax/collections/show.html.erb +1 -1
- data/app/views/hyrax/dashboard/works/_default_group.html.erb +2 -0
- data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +1 -1
- data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +2 -1
- data/app/views/hyrax/my/works/_default_group.html.erb +2 -0
- data/app/views/layouts/hyrax.html.erb +0 -15
- data/bin/db-migrate-seed.sh +9 -0
- data/bin/db-wait.sh +14 -0
- data/bin/hyrax-entrypoint.sh +15 -0
- data/chart/fcrepo/.gitignore +2 -0
- data/chart/fcrepo/.helmignore +23 -0
- data/chart/fcrepo/Chart.yaml +11 -0
- data/chart/fcrepo/README.md +50 -0
- data/chart/fcrepo/templates/NOTES.txt +21 -0
- data/chart/fcrepo/templates/_helpers.tpl +68 -0
- data/chart/fcrepo/templates/configmap-env.yaml +19 -0
- data/chart/fcrepo/templates/deployment.yaml +109 -0
- data/chart/fcrepo/templates/ingress.yaml +41 -0
- data/chart/fcrepo/templates/pvc.yaml +20 -0
- data/chart/fcrepo/templates/secret.yaml +12 -0
- data/chart/fcrepo/templates/service.yaml +15 -0
- data/chart/fcrepo/templates/serviceaccount.yaml +12 -0
- data/chart/fcrepo/templates/tests/test-connection.yaml +15 -0
- data/chart/fcrepo/values.yaml +79 -0
- data/chart/hyrax/.gitignore +2 -0
- data/chart/hyrax/.helmignore +23 -0
- data/chart/hyrax/Chart.yaml +27 -0
- data/chart/hyrax/README.md +69 -0
- data/chart/hyrax/templates/NOTES.txt +21 -0
- data/chart/hyrax/templates/_helpers.tpl +92 -0
- data/chart/hyrax/templates/configmap-env.yaml +32 -0
- data/chart/hyrax/templates/deployment.yaml +79 -0
- data/chart/hyrax/templates/fcrepo-secret.yaml +13 -0
- data/chart/hyrax/templates/hpa.yaml +28 -0
- data/chart/hyrax/templates/ingress.yaml +41 -0
- data/chart/hyrax/templates/secrets.yaml +12 -0
- data/chart/hyrax/templates/service.yaml +15 -0
- data/chart/hyrax/templates/serviceaccount.yaml +12 -0
- data/chart/hyrax/templates/tests/test-connection.yaml +15 -0
- data/chart/hyrax/values.yaml +97 -0
- data/config/initializers/indexing_adapter_initializer.rb +7 -12
- data/config/initializers/listeners.rb +2 -0
- data/config/locales/hyrax.en.yml +1 -1
- data/config/metadata/basic_metadata.yaml +13 -0
- data/db/seeds.rb +20 -0
- data/docker-compose.yml +132 -0
- data/documentation/developing-your-hyrax-based-app.md +271 -0
- data/documentation/legacyREADME.md +336 -0
- data/documentation/note-about-versions.md +15 -0
- data/hyrax.gemspec +7 -8
- data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +4 -6
- data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +1 -1
- data/lib/generators/hyrax/templates/db/seeds.rb +16 -14
- data/lib/generators/hyrax/templates/uv.html +1 -1
- data/lib/generators/hyrax/work_resource/templates/controller.rb.erb +0 -5
- data/lib/generators/hyrax/work_resource/templates/form.rb.erb +1 -1
- data/lib/generators/hyrax/work_resource/templates/work.html.erb_spec.rb.erb +3 -2
- data/lib/hyrax.rb +17 -0
- data/lib/hyrax/configuration.rb +340 -200
- data/lib/hyrax/event_store.rb +5 -0
- data/lib/hyrax/form_fields.rb +1 -1
- data/lib/hyrax/indexer.rb +19 -3
- data/lib/hyrax/publisher.rb +71 -2
- data/lib/hyrax/resource_sync/change_list_writer.rb +1 -1
- data/lib/hyrax/resource_sync/resource_list_writer.rb +1 -1
- data/lib/hyrax/schema.rb +2 -2
- data/lib/hyrax/specs/capybara.rb +98 -0
- data/lib/hyrax/specs/clamav.rb +15 -0
- data/lib/hyrax/specs/disable_animations_in_test_environment.rb +53 -0
- data/lib/hyrax/specs/engine_routes.rb +11 -0
- data/lib/hyrax/specs/shared_specs/change_set.rb +11 -0
- data/lib/hyrax/specs/shared_specs/factories/strategies/json_strategy.rb +13 -0
- data/lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb +0 -11
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +6 -0
- data/lib/hyrax/specs/shared_specs/indexers.rb +22 -5
- data/lib/hyrax/specs/shared_specs/metadata.rb +64 -0
- data/lib/hyrax/specs/spy_listener.rb +52 -26
- data/lib/hyrax/transactions/container.rb +13 -1
- data/lib/hyrax/transactions/steps/add_file_sets.rb +35 -0
- data/lib/hyrax/transactions/steps/save.rb +10 -4
- data/lib/hyrax/transactions/steps/save_access_control.rb +29 -0
- data/lib/hyrax/transactions/steps/set_default_admin_set.rb +1 -1
- data/lib/hyrax/transactions/update_work.rb +3 -1
- data/lib/hyrax/transactions/work_create.rb +3 -1
- data/lib/hyrax/version.rb +1 -1
- data/lib/tasks/collection_type_global_id.rake +22 -0
- data/lib/tasks/default_admin_set.rake +5 -0
- data/lib/wings.rb +1 -1
- data/lib/wings/active_fedora_converter.rb +71 -123
- data/lib/wings/active_fedora_converter/default_work.rb +129 -0
- data/lib/wings/active_fedora_converter/nested_resource.rb +25 -0
- data/lib/wings/attribute_transformer.rb +28 -1
- data/lib/wings/converter_value_mapper.rb +70 -3
- data/lib/wings/model_registry.rb +4 -3
- data/lib/wings/model_transformer.rb +25 -7
- data/lib/wings/orm_converter.rb +19 -23
- data/lib/wings/services/custom_queries/find_collections_by_type.rb +1 -1
- data/lib/wings/services/custom_queries/find_file_metadata.rb +65 -38
- data/lib/wings/services/file_converter_service.rb +6 -55
- data/lib/wings/services/file_metadata_builder.rb +12 -8
- data/lib/wings/setup.rb +56 -9
- data/lib/wings/transformer_value_mapper.rb +1 -0
- data/lib/wings/valkyrie/metadata_adapter.rb +2 -2
- data/lib/wings/valkyrie/persister.rb +13 -14
- data/lib/wings/valkyrie/storage.rb +94 -0
- data/tasks/benchmark.rake +56 -0
- data/template.rb +1 -3
- metadata +346 -54
- data/lib/hyrax/callbacks.rb +0 -27
- data/lib/wings/hydra/pcdm/models/concerns/collection_valkyrie_behavior.rb +0 -28
- data/lib/wings/hydra/pcdm/models/concerns/object_valkyrie_behavior.rb +0 -28
- data/lib/wings/hydra/pcdm/models/concerns/pcdm_valkyrie_behavior.rb +0 -171
- data/lib/wings/hydra/works/models/concerns/collection_valkyrie_behavior.rb +0 -31
- data/lib/wings/hydra/works/models/concerns/file_set_valkyrie_behavior.rb +0 -31
- data/lib/wings/hydra/works/models/concerns/work_valkyrie_behavior.rb +0 -60
- data/lib/wings/models/concerns/collection_behavior.rb +0 -39
- data/lib/wings/models/multi_checksum.rb +0 -18
- data/lib/wings/services/id_converter_service.rb +0 -15
- data/lib/wings/valkyrie/storage/active_fedora.rb +0 -27
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
9
9
|
<link rel="icon" href="favicon.ico">
|
10
10
|
<link rel="stylesheet" type="text/css" href="uv.css">
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
@@ -10,11 +10,6 @@ module Hyrax
|
|
10
10
|
include Hyrax::BreadcrumbsForWorks
|
11
11
|
self.curation_concern_type = ::<%= class_name %>
|
12
12
|
|
13
|
-
# Use the Wings search builder for Valkyrie models until legacy ActiveFedora
|
14
|
-
# indexing is turned off. See:
|
15
|
-
# https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#indexing
|
16
|
-
self.search_builder_class = Wings::WorkSearchBuilder(::<%= class_name %>)
|
17
|
-
|
18
13
|
# Use a Valkyrie aware form service to generate Valkyrie::ChangeSet style
|
19
14
|
# forms.
|
20
15
|
self.work_form_service = Hyrax::FormFactory.new
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
# Generated via
|
3
4
|
# `rails generate hyrax:work_resource <%= class_name %>`
|
4
|
-
RSpec.describe '<%= plural_file_name %>/<%= file_name %>.html.erb', type: :view do
|
5
|
-
|
5
|
+
RSpec.describe '<%= plural_file_name %>/<%= file_name %>.html.erb', type: :view do # rubocop:disable RSpec/EmptyExampleGroup
|
6
|
+
# add <%= file_name %> view specs
|
6
7
|
end
|
data/lib/hyrax.rb
CHANGED
@@ -21,6 +21,9 @@ require 'hyrax/inflections'
|
|
21
21
|
require 'hyrax/name'
|
22
22
|
require 'hyrax/valkyrie_can_can_adapter'
|
23
23
|
require 'kaminari_route_prefix'
|
24
|
+
require 'valkyrie/indexing_adapter'
|
25
|
+
require 'valkyrie/indexing/solr/indexing_adapter'
|
26
|
+
require 'valkyrie/indexing/null_indexing_adapter'
|
24
27
|
|
25
28
|
module Hyrax
|
26
29
|
extend ActiveSupport::Autoload
|
@@ -34,8 +37,22 @@ module Hyrax
|
|
34
37
|
autoload :RedisEventStore
|
35
38
|
autoload :ResourceSync
|
36
39
|
autoload :Zotero
|
40
|
+
autoload :Listeners
|
37
41
|
end
|
38
42
|
|
43
|
+
##
|
44
|
+
# @return [GlobalID]
|
45
|
+
# @see https://github.com/rails/globalid
|
46
|
+
def self.GlobalID(input) # rubocop:disable Naming/MethodName
|
47
|
+
case input
|
48
|
+
when Valkyrie::Resource
|
49
|
+
ValkyrieGlobalIdProxy.new(resource: input).to_global_id
|
50
|
+
else
|
51
|
+
input.to_global_id if input.respond_to?(:to_global_id)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
39
56
|
# @api public
|
40
57
|
#
|
41
58
|
# Exposes the Hyrax configuration
|
data/lib/hyrax/configuration.rb
CHANGED
@@ -1,9 +1,63 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require 'hyrax/callbacks'
|
3
2
|
require 'hyrax/role_registry'
|
4
3
|
require 'samvera/nesting_indexer'
|
5
4
|
|
6
5
|
module Hyrax
|
6
|
+
##
|
7
|
+
# Handles configuration for the Hyrax engine.
|
8
|
+
#
|
9
|
+
# This class provides a series of accessors for setting and retrieving global
|
10
|
+
# engine options. For convenient reference, options are grouped into the
|
11
|
+
# following functional areas:
|
12
|
+
#
|
13
|
+
# - Groups
|
14
|
+
# - Identifiers
|
15
|
+
# - IIIF
|
16
|
+
# - Local Storage
|
17
|
+
# - System Dependencies
|
18
|
+
# - Theme
|
19
|
+
# - Valkyrie
|
20
|
+
#
|
21
|
+
# == Groups
|
22
|
+
#
|
23
|
+
# Hyrax has special handling for three groups: "admin", "registered", and "public".
|
24
|
+
#
|
25
|
+
# These settings support using custom names for these functional groups in
|
26
|
+
# object ACLs.
|
27
|
+
#
|
28
|
+
# == Identifiers
|
29
|
+
# == IIIF
|
30
|
+
#
|
31
|
+
# Objects in Hyrax serve out IIIF manifests. These configuration options
|
32
|
+
# toggle server availability, allow customization of image and info URL
|
33
|
+
# generation, and provide other hooks for custom IIIF behavior.
|
34
|
+
#
|
35
|
+
# == Local Storage
|
36
|
+
#
|
37
|
+
# Hyrax applications need local disk access to store working copies of files
|
38
|
+
# for a variety of purposes. Some of these storage paths need to be available
|
39
|
+
# all application processes. These options control the paths to use for each
|
40
|
+
# type of file.
|
41
|
+
#
|
42
|
+
# == System Dependiencies
|
43
|
+
#
|
44
|
+
# @example adding configuration with `Hyrax.config` (recommended usage)
|
45
|
+
#
|
46
|
+
# Hyrax.config do |config|
|
47
|
+
# config.work_requires_files = true
|
48
|
+
# config.derivatives_path('tmp/dir/for/derivatives/')
|
49
|
+
# end
|
50
|
+
#
|
51
|
+
# == Theme
|
52
|
+
#
|
53
|
+
# Options related to the overall appearance of Hyrax.
|
54
|
+
#
|
55
|
+
# == Valkyrie
|
56
|
+
#
|
57
|
+
# *Experimental:* Options for toggling Hyrax's experimental "Wings" valkyrie
|
58
|
+
# adapter and configuring valkyrie.
|
59
|
+
#
|
60
|
+
# @see Hyrax.config
|
7
61
|
class Configuration
|
8
62
|
include Callbacks
|
9
63
|
|
@@ -49,24 +103,215 @@ module Hyrax
|
|
49
103
|
true
|
50
104
|
end
|
51
105
|
|
106
|
+
# @!group Analytics
|
107
|
+
|
108
|
+
attr_writer :analytics
|
109
|
+
attr_reader :analytics
|
110
|
+
def analytics?
|
111
|
+
@analytics ||=
|
112
|
+
ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYRAX_ANALYTICS', false))
|
113
|
+
end
|
114
|
+
|
115
|
+
attr_writer :google_analytics_id
|
116
|
+
def google_analytics_id
|
117
|
+
@google_analytics_id ||= nil
|
118
|
+
end
|
119
|
+
alias google_analytics_id? google_analytics_id
|
120
|
+
|
121
|
+
# Defaulting analytic start date to whenever the file was uploaded by leaving it blank
|
122
|
+
attr_writer :analytic_start_date
|
123
|
+
attr_reader :analytic_start_date
|
124
|
+
|
125
|
+
# @!endgroup
|
126
|
+
# @!group Groups
|
127
|
+
|
128
|
+
##
|
129
|
+
# @!attribute [w] admin_user_group_name
|
130
|
+
# @return [String]
|
131
|
+
# @!attribute [w] public_user_group_name
|
132
|
+
# @return [String]
|
133
|
+
# @!attribute [w] registered_user_group_name
|
134
|
+
# @return [String]
|
135
|
+
attr_writer :admin_user_group_name
|
136
|
+
attr_writer :public_user_group_name
|
137
|
+
attr_writer :registered_user_group_name
|
138
|
+
|
139
|
+
##
|
140
|
+
# @api public
|
141
|
+
# @return [String]
|
142
|
+
def admin_user_group_name
|
143
|
+
@admin_user_group_name ||= 'admin'
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# @api public
|
148
|
+
# @return [String]
|
149
|
+
def public_user_group_name
|
150
|
+
@public_user_group_name ||= 'public'
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# @api public
|
155
|
+
# @return [String]
|
156
|
+
def registered_user_group_name
|
157
|
+
@registered_user_group_name ||= 'registered'
|
158
|
+
end
|
159
|
+
|
160
|
+
# @!endgroup
|
161
|
+
# @!group Identifier Minting
|
162
|
+
|
163
|
+
attr_writer :enable_noids
|
164
|
+
def enable_noids?
|
165
|
+
return @enable_noids unless @enable_noids.nil?
|
166
|
+
@enable_noids = true
|
167
|
+
end
|
168
|
+
|
169
|
+
attr_writer :noid_template
|
170
|
+
def noid_template
|
171
|
+
@noid_template ||= '.reeddeeddk'
|
172
|
+
end
|
173
|
+
|
174
|
+
attr_writer :noid_minter_class
|
175
|
+
def noid_minter_class
|
176
|
+
@noid_minter_class ||= ::Noid::Rails::Minter::Db
|
177
|
+
end
|
178
|
+
|
179
|
+
attr_writer :minter_statefile
|
180
|
+
def minter_statefile
|
181
|
+
@minter_statefile ||= '/tmp/minter-state'
|
182
|
+
end
|
183
|
+
|
184
|
+
# @!endgroup
|
185
|
+
# @!group IIIF
|
186
|
+
|
187
|
+
attr_writer :iiif_image_compliance_level_uri
|
188
|
+
attr_writer :iiif_image_server
|
189
|
+
attr_writer :iiif_image_size_default
|
190
|
+
attr_writer :iiif_image_url_builder
|
191
|
+
attr_writer :iiif_info_url_builder
|
192
|
+
attr_writer :iiif_metadata_fields
|
193
|
+
attr_writer :iiif_manifest_cache_duration
|
194
|
+
attr_writer :rendering_predicate
|
195
|
+
|
196
|
+
# Enable IIIF image service. This is required to use the
|
197
|
+
# IIIF viewer enabled show page
|
198
|
+
#
|
199
|
+
# If you have run the hyrax:riiif generator, an embedded riiif service
|
200
|
+
# will be used to deliver images via IIIF. If you have not, you will
|
201
|
+
# need to configure the following other configuration values to work
|
202
|
+
# with your image server.
|
203
|
+
#
|
204
|
+
# @see Hyrax::Configuration#iiif_image_url_builder
|
205
|
+
# @see Hyrax::Configuration#iiif_info_url_builder
|
206
|
+
# @see Hyrax::Configuration#iiif_image_compliance_level_uri
|
207
|
+
# @see Hyrax::Configuration#iiif_image_size_default
|
208
|
+
#
|
209
|
+
# @note Default is false
|
210
|
+
#
|
211
|
+
# @return [Boolean] true to enable, false to disable
|
212
|
+
def iiif_image_server?
|
213
|
+
return @iiif_image_server unless @iiif_image_server.nil?
|
214
|
+
@iiif_image_server = false
|
215
|
+
end
|
216
|
+
|
217
|
+
# URL that resolves to an image provided by a IIIF image server
|
218
|
+
#
|
219
|
+
# @return [#call] lambda/proc that generates a URL to an image
|
220
|
+
def iiif_image_url_builder
|
221
|
+
@iiif_image_url_builder ||= ->(file_id, base_url, _size, _format) { "#{base_url}/downloads/#{file_id.split('/').first}" }
|
222
|
+
end
|
223
|
+
|
224
|
+
# URL that resolves to an info.json file provided by a IIIF image server
|
225
|
+
#
|
226
|
+
# @return [#call] lambda/proc that generates a URL to image info
|
227
|
+
def iiif_info_url_builder
|
228
|
+
@iiif_info_url_builder ||= ->(_file_id, _base_url) { '' }
|
229
|
+
end
|
230
|
+
|
231
|
+
# URL that indicates your IIIF image server compliance level
|
232
|
+
#
|
233
|
+
# @return [String] valid IIIF image compliance level URI
|
234
|
+
def iiif_image_compliance_level_uri
|
235
|
+
@iiif_image_compliance_level_uri ||= 'http://iiif.io/api/image/2/level2.json'
|
236
|
+
end
|
237
|
+
|
238
|
+
# IIIF image size default
|
239
|
+
#
|
240
|
+
# @return [#String] valid IIIF image size parameter
|
241
|
+
def iiif_image_size_default
|
242
|
+
@iiif_image_size_default ||= '600,'
|
243
|
+
end
|
244
|
+
|
245
|
+
# IIIF metadata - fields to display in the metadata section
|
246
|
+
#
|
247
|
+
# @return [#Array] fields
|
248
|
+
def iiif_metadata_fields
|
249
|
+
@iiif_metadata_fields ||= Hyrax::Forms::WorkForm.required_fields
|
250
|
+
end
|
251
|
+
|
252
|
+
# Duration in which we should cache the generated IIIF manifest.
|
253
|
+
# Default is 30 days (in seconds).
|
254
|
+
#
|
255
|
+
# @return [Integer] number of seconds
|
256
|
+
# @see https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch
|
257
|
+
def iiif_manifest_cache_duration
|
258
|
+
@iiif_manifest_cache_duration ||= 30.days.to_i
|
259
|
+
end
|
260
|
+
|
261
|
+
##
|
262
|
+
# Set predicate for rendering to dc:hasFormat as defined in
|
263
|
+
# IIIF Presentation API context: http://iiif.io/api/presentation/2/context.json
|
264
|
+
#
|
265
|
+
# @note defaults to dc:hasFormat
|
266
|
+
#
|
267
|
+
# @return [RDF::URI]
|
268
|
+
def rendering_predicate
|
269
|
+
@rendering_predicate ||= ::RDF::Vocab::DC.hasFormat
|
270
|
+
end
|
271
|
+
|
272
|
+
# @!endgroup
|
273
|
+
# @!group Local Storage
|
274
|
+
|
275
|
+
# @!attribute [w] bagit_dir
|
276
|
+
# Location where BagIt files are exported
|
277
|
+
attr_writer :bagit_dir
|
278
|
+
def bagit_dir
|
279
|
+
@bagit_dir ||= "tmp/descriptions"
|
280
|
+
end
|
281
|
+
|
52
282
|
# Path on the local file system where derivatives will be stored
|
53
283
|
attr_writer :derivatives_path
|
54
284
|
def derivatives_path
|
55
|
-
@derivatives_path ||= Rails.root.join('tmp', 'derivatives')
|
285
|
+
@derivatives_path ||= ENV.fetch('HYRAX_DERIVATIVES_PATH', Rails.root.join('tmp', 'derivatives'))
|
56
286
|
end
|
57
287
|
|
58
288
|
# Path on the local file system where originals will be staged before being ingested into Fedora.
|
59
289
|
attr_writer :working_path
|
60
290
|
def working_path
|
61
|
-
@working_path ||= Rails.root.join('tmp', 'uploads')
|
291
|
+
@working_path ||= ENV.fetch('HYRAX_UPLOAD_PATH', Rails.root.join('tmp', 'uploads'))
|
292
|
+
end
|
293
|
+
|
294
|
+
# @todo do we use both upload_path and working path?
|
295
|
+
# Path on the local file system where originals will be staged before being ingested into Fedora.
|
296
|
+
attr_writer :upload_path
|
297
|
+
def upload_path
|
298
|
+
@upload_path ||= ->() { ENV.fetch('HYRAX_UPLOAD_PATH') { Rails.root.join('tmp', 'uploads') } }
|
299
|
+
end
|
300
|
+
|
301
|
+
attr_writer :cache_path
|
302
|
+
def cache_path
|
303
|
+
@cache_path ||= ->() { ENV.fetch('HYRAX_CACHE_PATH') { Rails.root.join('tmp', 'cache') } }
|
62
304
|
end
|
63
305
|
|
64
306
|
# Path on the local file system where where log and banners will be stored.
|
65
307
|
attr_writer :branding_path
|
66
308
|
def branding_path
|
67
|
-
@branding_path ||= Rails.root.join('public', 'branding')
|
309
|
+
@branding_path ||= ENV.fetch('HYRAX_BRANDING_PATH', Rails.root.join('public', 'branding'))
|
68
310
|
end
|
69
311
|
|
312
|
+
# @!endgroup
|
313
|
+
# @!group System Dependencies
|
314
|
+
|
70
315
|
attr_writer :enable_ffmpeg
|
71
316
|
def enable_ffmpeg
|
72
317
|
return @enable_ffmpeg unless @enable_ffmpeg.nil?
|
@@ -74,8 +319,19 @@ module Hyrax
|
|
74
319
|
end
|
75
320
|
|
76
321
|
attr_writer :ffmpeg_path
|
322
|
+
##
|
323
|
+
# @note we recommend setting the FFMPEG path with the `HYRAX_FFMPEG_PATH`
|
324
|
+
# environment variable
|
77
325
|
def ffmpeg_path
|
78
|
-
@ffmpeg_path ||= 'ffmpeg'
|
326
|
+
@ffmpeg_path ||= ENV.fetch('HYRAX_FFMPEG_PATH', 'ffmpeg')
|
327
|
+
end
|
328
|
+
|
329
|
+
attr_writer :fits_path
|
330
|
+
##
|
331
|
+
# @note we recommend setting the FITS path with the `HYRAX_FITS_PATH`
|
332
|
+
# environment variable
|
333
|
+
def fits_path
|
334
|
+
@fits_path ||= ENV.fetch('HYRAX_FITS_PATH', 'fits.sh')
|
79
335
|
end
|
80
336
|
|
81
337
|
attr_writer :fits_message_length
|
@@ -83,6 +339,70 @@ module Hyrax
|
|
83
339
|
@fits_message_length ||= 5
|
84
340
|
end
|
85
341
|
|
342
|
+
# @!attribute [w] import_export_jar_file_path
|
343
|
+
# Path to the jar file for the Fedora import/export tool
|
344
|
+
attr_writer :import_export_jar_file_path
|
345
|
+
def import_export_jar_file_path
|
346
|
+
@import_export_jar_file_path ||= "tmp/fcrepo-import-export.jar"
|
347
|
+
end
|
348
|
+
|
349
|
+
# @!attribute [w] virus_scanner
|
350
|
+
# @return [Hyrax::VirusScanner] the default system virus scanner
|
351
|
+
attr_writer :virus_scanner
|
352
|
+
def virus_scanner
|
353
|
+
@virus_scanner ||=
|
354
|
+
if Hyrax.primary_work_type.respond_to?(:default_system_virus_scanner)
|
355
|
+
Hyrax.primary_work_type.default_system_virus_scanner
|
356
|
+
else
|
357
|
+
Hyrax::VirusScanner
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
# @!endgroup
|
362
|
+
# @!group Theme
|
363
|
+
|
364
|
+
attr_writer :banner_image
|
365
|
+
def banner_image
|
366
|
+
# This image can be used for free and without attribution. See here for source and license: https://github.com/samvera/hyrax/issues/1551#issuecomment-326624909
|
367
|
+
@banner_image ||= 'https://user-images.githubusercontent.com/101482/29949206-ffa60d2c-8e67-11e7-988d-4910b8787d56.jpg'
|
368
|
+
end
|
369
|
+
|
370
|
+
attr_writer :display_media_download_link
|
371
|
+
# @return [Boolean]
|
372
|
+
def display_media_download_link?
|
373
|
+
return @display_media_download_link unless @display_media_download_link.nil?
|
374
|
+
@display_media_download_link = true
|
375
|
+
end
|
376
|
+
|
377
|
+
# @!endgroup
|
378
|
+
# @!group Valkyrie
|
379
|
+
|
380
|
+
##
|
381
|
+
# @return [#save, #save_all, #delete, #wipe!] an indexing adapter
|
382
|
+
def index_adapter
|
383
|
+
@index_adapter ||= Valkyrie::IndexingAdapter.find(:null_index)
|
384
|
+
end
|
385
|
+
|
386
|
+
##
|
387
|
+
# @param [#to_sym] adapter
|
388
|
+
def index_adapter=(adapter)
|
389
|
+
@index_adapter = Valkyrie::IndexingAdapter.find(adapter.to_sym)
|
390
|
+
end
|
391
|
+
|
392
|
+
##
|
393
|
+
# @return [Boolean] whether to use the experimental valkyrie index
|
394
|
+
def query_index_from_valkyrie
|
395
|
+
@query_index_from_valkyrie ||= false
|
396
|
+
end
|
397
|
+
attr_writer :query_index_from_valkyrie
|
398
|
+
|
399
|
+
##
|
400
|
+
# @return [Boolean] whether to use experimental valkyrie storage features
|
401
|
+
def use_valkyrie?
|
402
|
+
ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYRAX_VALKYRIE', false))
|
403
|
+
end
|
404
|
+
# @!endgroup
|
405
|
+
|
86
406
|
attr_writer :feature_config_path
|
87
407
|
def feature_config_path
|
88
408
|
@feature_config_path ||= Rails.root.join('config', 'features.yml')
|
@@ -111,38 +431,6 @@ module Hyrax
|
|
111
431
|
@max_days_between_fixity_checks ||= 7
|
112
432
|
end
|
113
433
|
|
114
|
-
attr_writer :enable_noids
|
115
|
-
def enable_noids?
|
116
|
-
return @enable_noids unless @enable_noids.nil?
|
117
|
-
@enable_noids = true
|
118
|
-
end
|
119
|
-
|
120
|
-
attr_writer :noid_template
|
121
|
-
def noid_template
|
122
|
-
@noid_template ||= '.reeddeeddk'
|
123
|
-
end
|
124
|
-
|
125
|
-
attr_writer :noid_minter_class
|
126
|
-
def noid_minter_class
|
127
|
-
@noid_minter_class ||= ::Noid::Rails::Minter::Db
|
128
|
-
end
|
129
|
-
|
130
|
-
attr_writer :minter_statefile
|
131
|
-
def minter_statefile
|
132
|
-
@minter_statefile ||= '/tmp/minter-state'
|
133
|
-
end
|
134
|
-
|
135
|
-
attr_writer :display_media_download_link
|
136
|
-
def display_media_download_link?
|
137
|
-
return @display_media_download_link unless @display_media_download_link.nil?
|
138
|
-
@display_media_download_link = true
|
139
|
-
end
|
140
|
-
|
141
|
-
attr_writer :fits_path
|
142
|
-
def fits_path
|
143
|
-
@fits_path ||= 'fits.sh'
|
144
|
-
end
|
145
|
-
|
146
434
|
# Override characterization runner
|
147
435
|
attr_accessor :characterization_runner
|
148
436
|
|
@@ -175,32 +463,6 @@ module Hyrax
|
|
175
463
|
@ingest_queue_name ||= :default
|
176
464
|
end
|
177
465
|
|
178
|
-
# @!attribute [w] import_export_jar_file_path
|
179
|
-
# Path to the jar file for the Fedora import/export tool
|
180
|
-
attr_writer :import_export_jar_file_path
|
181
|
-
def import_export_jar_file_path
|
182
|
-
@import_export_jar_file_path ||= "tmp/fcrepo-import-export.jar"
|
183
|
-
end
|
184
|
-
|
185
|
-
# @!attribute [w] bagit_dir
|
186
|
-
# Location where BagIt files are exported
|
187
|
-
attr_writer :bagit_dir
|
188
|
-
def bagit_dir
|
189
|
-
@bagit_dir ||= "tmp/descriptions"
|
190
|
-
end
|
191
|
-
|
192
|
-
# @!attribute [w] virus_scanner
|
193
|
-
# @return [Hyrax::VirusScanner] the default system virus scanner
|
194
|
-
attr_writer :virus_scanner
|
195
|
-
def virus_scanner
|
196
|
-
@virus_scanner ||=
|
197
|
-
if Hyrax.primary_work_type.respond_to?(:default_system_virus_scanner)
|
198
|
-
Hyrax.primary_work_type.default_system_virus_scanner
|
199
|
-
else
|
200
|
-
Hyrax::VirusScanner
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
466
|
# @deprecated
|
205
467
|
def whitelisted_ingest_dirs
|
206
468
|
Deprecation.warn(self, "Samvera is deprecating #{self.class}#whitelisted_ingest_dirs " \
|
@@ -279,12 +541,6 @@ module Hyrax
|
|
279
541
|
@rights_statement_service_class ||= Hyrax::RightsStatementService
|
280
542
|
end
|
281
543
|
|
282
|
-
attr_writer :banner_image
|
283
|
-
def banner_image
|
284
|
-
# This image can be used for free and without attribution. See here for source and license: https://github.com/samvera/hyrax/issues/1551#issuecomment-326624909
|
285
|
-
@banner_image ||= 'https://user-images.githubusercontent.com/101482/29949206-ffa60d2c-8e67-11e7-988d-4910b8787d56.jpg'
|
286
|
-
end
|
287
|
-
|
288
544
|
attr_writer :persistent_hostpath
|
289
545
|
def persistent_hostpath
|
290
546
|
@persistent_hostpath ||= "http://localhost/files/"
|
@@ -305,12 +561,6 @@ module Hyrax
|
|
305
561
|
@browse_everything ||= nil
|
306
562
|
end
|
307
563
|
|
308
|
-
attr_writer :analytics
|
309
|
-
attr_reader :analytics
|
310
|
-
def analytics?
|
311
|
-
@analytics ||= false
|
312
|
-
end
|
313
|
-
|
314
564
|
attr_writer :citations
|
315
565
|
def citations?
|
316
566
|
@citations ||= false
|
@@ -336,7 +586,7 @@ module Hyrax
|
|
336
586
|
def realtime_notifications?
|
337
587
|
# Coerce @realtime_notifications to false if server software
|
338
588
|
# does not support WebSockets, and warn the user that we are
|
339
|
-
# overriding the value
|
589
|
+
# overriding the value in0 their config unless it's already
|
340
590
|
# flipped to false
|
341
591
|
if ENV.fetch('SERVER_SOFTWARE', '').match(/Apache.*Phusion_Passenger/).present?
|
342
592
|
Rails.logger.warn('Cannot enable realtime notifications atop Passenger + Apache. Coercing `Hyrax.config.realtime_notifications` to `false`. Set this value to `false` in config/initializers/hyrax.rb to stop seeing this warning.') unless @realtime_notifications == false
|
@@ -347,10 +597,6 @@ module Hyrax
|
|
347
597
|
end
|
348
598
|
# rubocop:enable Layout/LineLength
|
349
599
|
|
350
|
-
def use_valkyrie?
|
351
|
-
ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYRAX_VALKYRIE', false))
|
352
|
-
end
|
353
|
-
|
354
600
|
def geonames_username=(username)
|
355
601
|
Qa::Authorities::Geonames.username = username
|
356
602
|
end
|
@@ -366,13 +612,6 @@ module Hyrax
|
|
366
612
|
@admin_set_predicate ||= ::RDF::Vocab::DC.isPartOf
|
367
613
|
end
|
368
614
|
|
369
|
-
# Set predicate for rendering to dc:hasFormat as defined in
|
370
|
-
# IIIF Presentation API context: http://iiif.io/api/presentation/2/context.json
|
371
|
-
attr_writer :rendering_predicate
|
372
|
-
def rendering_predicate
|
373
|
-
@rendering_predicate ||= ::RDF::Vocab::DC.hasFormat
|
374
|
-
end
|
375
|
-
|
376
615
|
attr_writer :work_requires_files
|
377
616
|
def work_requires_files?
|
378
617
|
return true if @work_requires_files.nil?
|
@@ -394,15 +633,9 @@ module Hyrax
|
|
394
633
|
@audit_user_key ||= 'audituser@example.com'
|
395
634
|
end
|
396
635
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
@upload_path ||= ->() { Rails.root + 'tmp' + 'uploads' }
|
401
|
-
end
|
402
|
-
|
403
|
-
attr_writer :cache_path
|
404
|
-
def cache_path
|
405
|
-
@cache_path ||= ->() { Rails.root + 'tmp' + 'uploads' + 'cache' }
|
636
|
+
attr_writer :collection_type_index_field
|
637
|
+
def collection_type_index_field
|
638
|
+
@collection_type_index_field ||= 'collection_type_gid_ssim'
|
406
639
|
end
|
407
640
|
|
408
641
|
attr_writer :id_field
|
@@ -410,90 +643,6 @@ module Hyrax
|
|
410
643
|
@id_field || index_field_mapper.id_field
|
411
644
|
end
|
412
645
|
|
413
|
-
# Enable IIIF image service. This is required to use the
|
414
|
-
# IIIF viewer enabled show page
|
415
|
-
#
|
416
|
-
# If you have run the hyrax:riiif generator, an embedded riiif service
|
417
|
-
# will be used to deliver images via IIIF. If you have not, you will
|
418
|
-
# need to configure the following other configuration values to work
|
419
|
-
# with your image server.
|
420
|
-
#
|
421
|
-
# @see config.iiif_image_url_builder
|
422
|
-
# @see config.iiif_info_url_builder
|
423
|
-
# @see config.iiif_image_compliance_level_uri
|
424
|
-
# @see config.iiif_image_size_default
|
425
|
-
#
|
426
|
-
# @note Default is false
|
427
|
-
#
|
428
|
-
# @return [Boolean] true to enable, false to disable
|
429
|
-
def iiif_image_server?
|
430
|
-
return @iiif_image_server unless @iiif_image_server.nil?
|
431
|
-
@iiif_image_server = false
|
432
|
-
end
|
433
|
-
attr_writer :iiif_image_server
|
434
|
-
|
435
|
-
# URL that resolves to an image provided by a IIIF image server
|
436
|
-
#
|
437
|
-
# @return [#call] lambda/proc that generates a URL to an image
|
438
|
-
def iiif_image_url_builder
|
439
|
-
@iiif_image_url_builder ||= ->(file_id, base_url, _size, _format) { "#{base_url}/downloads/#{file_id.split('/').first}" }
|
440
|
-
end
|
441
|
-
attr_writer :iiif_image_url_builder
|
442
|
-
|
443
|
-
# URL that resolves to an info.json file provided by a IIIF image server
|
444
|
-
#
|
445
|
-
# @return [#call] lambda/proc that generates a URL to image info
|
446
|
-
def iiif_info_url_builder
|
447
|
-
@iiif_info_url_builder ||= ->(_file_id, _base_url) { '' }
|
448
|
-
end
|
449
|
-
attr_writer :iiif_info_url_builder
|
450
|
-
|
451
|
-
# URL that indicates your IIIF image server compliance level
|
452
|
-
#
|
453
|
-
# @return [String] valid IIIF image compliance level URI
|
454
|
-
def iiif_image_compliance_level_uri
|
455
|
-
@iiif_image_compliance_level_uri ||= 'http://iiif.io/api/image/2/level2.json'
|
456
|
-
end
|
457
|
-
attr_writer :iiif_image_compliance_level_uri
|
458
|
-
|
459
|
-
# IIIF image size default
|
460
|
-
#
|
461
|
-
# @return [#String] valid IIIF image size parameter
|
462
|
-
def iiif_image_size_default
|
463
|
-
@iiif_image_size_default ||= '600,'
|
464
|
-
end
|
465
|
-
attr_writer :iiif_image_size_default
|
466
|
-
|
467
|
-
# IIIF metadata - fields to display in the metadata section
|
468
|
-
#
|
469
|
-
# @return [#Array] fields
|
470
|
-
def iiif_metadata_fields
|
471
|
-
@iiif_metadata_fields ||= Hyrax::Forms::WorkForm.required_fields
|
472
|
-
end
|
473
|
-
attr_writer :iiif_metadata_fields
|
474
|
-
|
475
|
-
# Duration in which we should cache the generated IIIF manifest.
|
476
|
-
# Default is 30 days (in seconds).
|
477
|
-
#
|
478
|
-
# @return [Integer] number of seconds
|
479
|
-
# @see https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch
|
480
|
-
def iiif_manifest_cache_duration
|
481
|
-
@iiif_manifest_cache_duration ||= 30.days.to_i
|
482
|
-
end
|
483
|
-
attr_writer :iiif_manifest_cache_duration
|
484
|
-
|
485
|
-
##
|
486
|
-
# @return [#save, #save_all, #delete, #wipe!] an indexing adapter
|
487
|
-
def index_adapter
|
488
|
-
@index_adapter ||= Valkyrie::IndexingAdapter.find(:null_index)
|
489
|
-
end
|
490
|
-
|
491
|
-
##
|
492
|
-
# @param [#to_sym] adapter
|
493
|
-
def index_adapter=(adapter)
|
494
|
-
@index_adapter ||= Valkyrie::IndexingAdapter.find(adapter.to_sym)
|
495
|
-
end
|
496
|
-
|
497
646
|
attr_writer :index_field_mapper
|
498
647
|
def index_field_mapper
|
499
648
|
@index_field_mapper ||= ActiveFedora.index_field_mapper
|
@@ -506,16 +655,6 @@ module Hyrax
|
|
506
655
|
@display_share_button_when_not_logged_in
|
507
656
|
end
|
508
657
|
|
509
|
-
attr_writer :google_analytics_id
|
510
|
-
def google_analytics_id
|
511
|
-
@google_analytics_id ||= nil
|
512
|
-
end
|
513
|
-
alias google_analytics_id? google_analytics_id
|
514
|
-
|
515
|
-
# Defaulting analytic start date to whenever the file was uploaded by leaving it blank
|
516
|
-
attr_writer :analytic_start_date
|
517
|
-
attr_reader :analytic_start_date
|
518
|
-
|
519
658
|
attr_writer :permission_levels
|
520
659
|
def permission_levels
|
521
660
|
@permission_levels ||= { I18n.t('hyrax.permission_levels.read') => "read",
|
@@ -542,10 +681,14 @@ module Hyrax
|
|
542
681
|
attr_writer :translate_uri_to_id
|
543
682
|
|
544
683
|
def translate_uri_to_id
|
545
|
-
@translate_uri_to_id ||=
|
546
|
-
|
547
|
-
|
548
|
-
|
684
|
+
@translate_uri_to_id ||=
|
685
|
+
begin
|
686
|
+
baseparts = 2 + [(::Noid::Rails.config.template.gsub(/\.[rsz]/, '').length.to_f / 2).ceil, 4].min
|
687
|
+
|
688
|
+
lambda do |uri|
|
689
|
+
uri.to_s.split(ActiveFedora.fedora.base_path).last.split('/', baseparts).last
|
690
|
+
end
|
691
|
+
end
|
549
692
|
end
|
550
693
|
|
551
694
|
attr_writer :translate_id_to_uri
|
@@ -557,8 +700,10 @@ module Hyrax
|
|
557
700
|
|
558
701
|
attr_writer :resource_id_to_uri_transformer
|
559
702
|
def resource_id_to_uri_transformer
|
703
|
+
Deprecation.warn('Use Hyrax.config.translate_uri_to_id instead.')
|
704
|
+
|
560
705
|
@resource_id_to_uri_transformer ||= lambda do |resource, base_url|
|
561
|
-
file_id = CGI.escape(resource.
|
706
|
+
file_id = CGI.escape(resource.file_identifier.to_s)
|
562
707
|
fs_id = CGI.escape(resource.file_set_id.to_s)
|
563
708
|
"#{base_url}#{::Noid::Rails.treeify(fs_id)}/files/#{file_id}"
|
564
709
|
end
|
@@ -601,11 +746,6 @@ module Hyrax
|
|
601
746
|
@solr_select_path ||= ActiveFedora.solr_config.fetch(:select_path, 'select')
|
602
747
|
end
|
603
748
|
|
604
|
-
attr_writer :query_index_from_valkyrie
|
605
|
-
def query_index_from_valkyrie
|
606
|
-
@query_index_from_valkyrie ||= false
|
607
|
-
end
|
608
|
-
|
609
749
|
attr_writer :identifier_registrars
|
610
750
|
def identifier_registrars
|
611
751
|
@identifier_registrars ||= {}
|