hyrax 5.0.1 → 5.0.3
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 +7 -176
- data/.dassie/.env +8 -3
- data/.dassie/Gemfile +13 -2
- data/.dassie/app/controllers/hyrax/generic_work_resources_controller.rb +17 -0
- data/.dassie/app/controllers/hyrax/generic_works_controller.rb +7 -1
- data/.dassie/app/forms/generic_work_resource_form.rb +20 -0
- data/.dassie/app/indexers/generic_work_resource_indexer.rb +16 -0
- data/.dassie/app/models/admin_set_resource.rb +9 -0
- data/.dassie/app/models/collection_resource.rb +2 -0
- data/.dassie/app/models/file_set.rb +2 -0
- data/.dassie/app/models/generic_work_resource.rb +10 -0
- data/.dassie/app/views/hyrax/generic_work_resources/_generic_work_resource.html.erb +2 -0
- data/.dassie/config/analytics.yml +6 -1
- data/.dassie/config/application.rb +24 -0
- data/.dassie/config/initializers/hyrax.rb +13 -3
- data/.dassie/config/initializers/wings.rb +109 -0
- data/.dassie/config/metadata/generic_work_resource.yaml +22 -0
- data/.dassie/config/valkyrie_index.yml +4 -10
- data/.dassie/db/migrate/20240506070809_valkyrie_id_to_string.rb +5 -0
- data/.dassie/db/schema.rb +2 -2
- data/.dassie/spec/indexers/generic_work_resource_indexer_spec.rb +13 -0
- data/.dassie/spec/models/generic_work_resource_spec.rb +12 -0
- data/.dassie/spec/views/generic_work_resources/_generic_work_resource.html.erb_spec.rb +7 -0
- data/.dockerignore +6 -4
- data/.github/release.yml +3 -0
- data/.github/workflows/lint-build-test.yml +130 -0
- data/.github/workflows/test-results.yml +40 -0
- data/.koppie/.env +7 -5
- data/.koppie/Gemfile +12 -1
- data/.koppie/config/analytics.yml +6 -1
- data/.koppie/config/environments/test.rb +2 -0
- data/.koppie/config/initializers/1_valkyrie.rb +6 -2
- data/.koppie/config/solr.yml +1 -1
- data/.regen +1 -1
- data/.rubocop.yml +5 -0
- data/Dockerfile +16 -36
- data/Gemfile +2 -0
- data/app/assets/javascripts/hydra-editor/field_manager.es6 +187 -0
- data/app/assets/javascripts/hyrax/analytics_events.js +48 -24
- data/app/assets/javascripts/hyrax/collapse.js +4 -4
- data/app/assets/javascripts/hyrax/file_manager/save_manager.es6 +2 -0
- data/app/assets/javascripts/hyrax/search.js +2 -3
- data/app/assets/javascripts/hyrax/select_work_type.es6 +3 -1
- data/app/assets/javascripts/hyrax/uploader.js +20 -18
- data/app/assets/javascripts/hyrax.js +1 -0
- data/app/assets/stylesheets/_bootstrap-default-overrides.scss +4 -0
- data/app/assets/stylesheets/hyrax/_card.scss +4 -0
- data/app/assets/stylesheets/hyrax/_catalog.scss +21 -0
- data/app/assets/stylesheets/hyrax/_collections.scss +1 -1
- data/app/assets/stylesheets/hyrax/_facets.scss +15 -3
- data/app/assets/stylesheets/hyrax/_featured.scss +4 -0
- data/app/assets/stylesheets/hyrax/_form.scss +4 -0
- data/app/assets/stylesheets/hyrax/_forms.scss +2 -1
- data/app/assets/stylesheets/hyrax/_nestable.scss +9 -8
- data/app/assets/stylesheets/hyrax/_select_work_type.scss +12 -0
- data/app/assets/stylesheets/hyrax/_styles.scss +4 -0
- data/app/assets/stylesheets/hyrax/_work-show.scss +3 -0
- data/app/controllers/concerns/hyrax/singular_subresource_controller.rb +7 -2
- data/app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb +11 -2
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +9 -2
- data/app/controllers/hyrax/admin/analytics/collection_reports_controller.rb +2 -2
- data/app/controllers/hyrax/admin/analytics/work_reports_controller.rb +7 -8
- data/app/controllers/hyrax/dashboard/collections_controller.rb +2 -1
- data/app/controllers/hyrax/downloads_controller.rb +24 -3
- data/app/controllers/hyrax/file_sets_controller.rb +32 -6
- data/app/controllers/hyrax/my/works_controller.rb +20 -0
- data/app/controllers/hyrax/stats_controller.rb +1 -1
- data/app/controllers/hyrax/uploads_controller.rb +28 -2
- data/app/forms/hyrax/forms/admin/appearance.rb +1 -1
- data/app/forms/hyrax/forms/admin/collection_type_form.rb +1 -7
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +9 -0
- data/app/forms/hyrax/forms/work_embargo_form.rb +6 -0
- data/app/forms/hyrax/forms/work_lease_form.rb +6 -0
- data/app/indexers/concerns/hyrax/location_indexer.rb +2 -2
- data/app/indexers/hyrax/indexers/file_set_indexer.rb +4 -0
- data/app/indexers/hyrax/indexers/resource_indexer.rb +1 -0
- data/app/indexers/hyrax/valkyrie_indexer.rb +3 -5
- data/app/jobs/migrate_files_to_valkyrie_job.rb +109 -0
- data/app/jobs/migrate_resources_job.rb +34 -0
- data/app/jobs/valkyrie_create_derivatives_job.rb +2 -1
- data/app/models/admin_set.rb +1 -0
- data/app/models/concerns/hyrax/ar_resource.rb +104 -0
- data/app/models/concerns/hyrax/solr_document/ordered_members.rb +2 -1
- data/app/models/concerns/hyrax/solr_document_behavior.rb +13 -2
- data/app/models/concerns/hyrax/valkyrie_lazy_migration.rb +82 -0
- data/app/models/file_download_stat.rb +1 -1
- data/app/models/file_view_stat.rb +1 -1
- data/app/models/hyrax/collection_type.rb +12 -4
- data/app/models/hyrax/file_metadata.rb +19 -0
- data/app/models/hyrax/file_set.rb +25 -0
- data/app/models/hyrax/model_registry.rb +2 -3
- data/app/models/hyrax/resource.rb +5 -0
- data/app/models/hyrax/statistic.rb +12 -37
- data/app/presenters/hyrax/file_set_presenter.rb +2 -1
- data/app/presenters/hyrax/file_usage.rb +3 -3
- data/app/presenters/hyrax/iiif_manifest_presenter.rb +2 -1
- data/app/presenters/hyrax/member_presenter_factory.rb +7 -1
- data/app/presenters/hyrax/menu_presenter.rb +1 -1
- data/app/presenters/hyrax/stats_usage_presenter.rb +2 -1
- data/app/presenters/hyrax/work_show_presenter.rb +13 -17
- data/app/presenters/hyrax/work_usage.rb +5 -2
- data/app/search_builders/hyrax/expired_embargo_search_builder.rb +7 -1
- data/app/search_builders/hyrax/expired_lease_search_builder.rb +7 -1
- data/app/search_builders/hyrax/filter_by_type.rb +1 -3
- data/app/search_builders/hyrax/valkyrie_abstract_type_relation.rb +7 -2
- data/app/services/hyrax/access_control_list.rb +1 -1
- data/app/services/hyrax/admin_set_create_service.rb +16 -5
- data/app/services/hyrax/admin_set_service.rb +2 -1
- data/app/services/hyrax/analytics/ga4/base.rb +96 -0
- data/app/services/hyrax/analytics/ga4/events.rb +25 -0
- data/app/services/hyrax/analytics/ga4/events_daily.rb +36 -0
- data/app/services/hyrax/analytics/ga4/visits.rb +33 -0
- data/app/services/hyrax/analytics/ga4/visits_daily.rb +24 -0
- data/app/services/hyrax/analytics/ga4.rb +204 -0
- data/app/services/hyrax/analytics/google.rb +16 -2
- data/app/services/hyrax/analytics/matomo.rb +16 -3
- data/app/services/hyrax/analytics/results.rb +6 -0
- data/app/services/hyrax/custom_queries/find_access_control.rb +1 -1
- data/app/services/hyrax/custom_queries/find_by_date_range.rb +6 -23
- data/app/services/hyrax/custom_queries/find_collections_by_type.rb +2 -2
- data/app/services/hyrax/custom_queries/find_count_by.rb +3 -31
- data/app/services/hyrax/custom_queries/find_file_metadata.rb +2 -2
- data/app/services/hyrax/custom_queries/find_models_by_access.rb +5 -27
- data/app/services/hyrax/embargo_manager.rb +2 -1
- data/app/services/hyrax/listeners/file_listener.rb +2 -2
- data/app/services/hyrax/lock_manager.rb +6 -6
- data/app/services/hyrax/lockable.rb +4 -3
- data/app/services/hyrax/simple_schema_loader.rb +1 -1
- data/app/services/hyrax/solr_service.rb +22 -8
- data/app/services/hyrax/statistics/query_service.rb +1 -1
- data/app/services/hyrax/statistics/works/over_time.rb +1 -1
- data/app/services/hyrax/thumbnail_path_service.rb +2 -0
- data/app/services/hyrax/user_stat_importer.rb +5 -5
- data/app/services/hyrax/valkyrie_upload.rb +9 -7
- data/app/services/hyrax/versioning_service.rb +10 -2
- data/app/services/hyrax/work_query_service.rb +2 -2
- data/app/services/migrate_resource_service.rb +55 -0
- data/app/views/_controls.html.erb +5 -5
- data/app/views/_masthead.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +9 -16
- data/app/views/catalog/_thumbnail_list_collection.html.erb +1 -1
- data/app/views/catalog/_thumbnail_list_default.html.erb +2 -2
- data/app/views/hyrax/admin/analytics/collection_reports/index.html.erb +4 -4
- data/app/views/hyrax/admin/analytics/work_reports/index.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/_form.html.erb +4 -4
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/admin/features/index.html.erb +1 -1
- data/app/views/hyrax/base/_file_manager_actions.html.erb +1 -1
- data/app/views/hyrax/base/_file_manager_member.html.erb +7 -4
- data/app/views/hyrax/base/_file_manager_thumbnail.html.erb +1 -1
- data/app/views/hyrax/base/_form_files.html.erb +1 -1
- data/app/views/hyrax/base/_form_member_of_collections.html.erb +4 -0
- data/app/views/hyrax/base/_show_actions.html.erb +7 -8
- data/app/views/hyrax/base/_work_button_row.html.erb +1 -1
- data/app/views/hyrax/batch_select/_add_button.html.erb +1 -1
- data/app/views/hyrax/content_blocks/_form.html.erb +3 -3
- data/app/views/hyrax/dashboard/_sidebar.html.erb +1 -1
- data/app/views/hyrax/dashboard/_user_activity.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form.html.erb +4 -4
- data/app/views/hyrax/dashboard/collections/_form_share.html.erb +6 -4
- data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +1 -1
- data/app/views/hyrax/dashboard/show_admin.html.erb +18 -19
- data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +1 -1
- data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +7 -7
- data/app/views/hyrax/file_sets/_actions.html.erb +9 -1
- data/app/views/hyrax/file_sets/_permission_form.html.erb +4 -2
- data/app/views/hyrax/file_sets/_show_actions.html.erb +1 -1
- data/app/views/hyrax/homepage/_featured.html.erb +1 -1
- data/app/views/hyrax/homepage/_recent_document.html.erb +2 -2
- data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +6 -6
- data/app/views/hyrax/my/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/my/collections/_tabs.html.erb +1 -1
- data/app/views/hyrax/pages/_form.html.erb +8 -8
- data/app/views/hyrax/transfers/_received.html.erb +1 -1
- data/app/views/hyrax/uploads/create.json.jbuilder +2 -2
- data/app/views/hyrax/users/_activity_log.html.erb +15 -9
- data/app/views/hyrax/users/_user_row.html.erb +6 -3
- data/app/views/hyrax/users/_vitals.html.erb +3 -2
- data/app/views/layouts/_head_tag_content.html.erb +2 -0
- data/app/views/shared/_appearance_styles.html.erb +5 -1
- data/app/views/shared/_ga4.html.erb +11 -0
- data/app/views/shared/_select_work_type_modal.html.erb +10 -1
- data/bin/db-migrate-seed.sh +3 -3
- data/bin/dev-entrypoint.sh +7 -2
- data/bin/{db-wait.sh → service-wait.sh} +1 -1
- data/bin/worker-entrypoint.sh +8 -0
- data/chart/hyrax/templates/deployment-worker.yaml +2 -2
- data/config/locales/hyrax.en.yml +4 -2
- data/config/metadata/basic_metadata.yaml +20 -0
- data/config/metadata/hyrax_internal_metadata.yaml +1 -1
- data/docker-compose-dassie.yml +167 -0
- data/docker-compose-koppie.yml +21 -36
- data/docker-compose-sirenia.yml +50 -44
- data/docker-compose.yml +2 -183
- data/documentation/developing-your-hyrax-based-app.md +2 -2
- data/hyrax.gemspec +5 -4
- data/lib/freyja/custom_query_container.rb +5 -0
- data/lib/freyja/metadata_adapter.rb +32 -0
- data/lib/freyja/persister.rb +42 -0
- data/lib/freyja/query_service.rb +20 -0
- data/lib/freyja/resource_factory.rb +8 -0
- data/lib/freyja.rb +14 -0
- data/lib/frigg/custom_query_container.rb +5 -0
- data/lib/frigg/metadata_adapter.rb +22 -0
- data/lib/frigg/persister.rb +33 -0
- data/lib/frigg/query_service.rb +15 -0
- data/lib/frigg.rb +13 -0
- data/lib/generators/hyrax/install_generator.rb +5 -0
- data/lib/generators/hyrax/templates/config/analytics.yml +6 -1
- data/lib/generators/hyrax/templates/config/initializers/1_valkyrie.rb +6 -2
- data/lib/generators/hyrax/templates/config/valkyrie_index.yml +1 -1
- data/lib/goddess/custom_query_container.rb +71 -0
- data/lib/goddess/metadata.rb +13 -0
- data/lib/goddess/query.rb +176 -0
- data/lib/hyrax/configuration.rb +83 -0
- data/lib/hyrax/engine.rb +2 -0
- data/lib/hyrax/form_fields.rb +1 -3
- data/lib/hyrax/name.rb +5 -0
- data/lib/hyrax/rubocop/custom_cops.rb +30 -0
- data/lib/hyrax/specs/capybara.rb +10 -6
- data/lib/hyrax/specs/shared_specs/factories/admin_sets.rb +2 -0
- data/lib/hyrax/specs/shared_specs/factories/hyrax_embargo.rb +4 -0
- data/lib/hyrax/specs/shared_specs/factories/hyrax_lease.rb +4 -0
- data/lib/hyrax/specs/shared_specs/factories/hyrax_work.rb +16 -2
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +1 -1
- data/lib/hyrax/transactions/admin_set_destroy.rb +2 -1
- data/lib/hyrax/transactions/collection_destroy.rb +2 -1
- data/lib/hyrax/transactions/container.rb +9 -0
- data/lib/hyrax/transactions/steps/add_file_sets.rb +2 -1
- data/lib/hyrax/transactions/steps/delete_permission_template.rb +30 -0
- data/lib/hyrax/transactions/steps/delete_resource.rb +1 -1
- data/lib/hyrax/transactions/steps/save_collection_logo.rb +2 -1
- data/lib/hyrax/valkyrie_can_can_adapter.rb +8 -1
- data/lib/hyrax/version.rb +1 -1
- data/lib/wings/active_fedora_converter.rb +13 -5
- data/lib/wings/converter_value_mapper.rb +1 -0
- data/lib/wings/services/custom_queries/find_collections_by_type.rb +2 -1
- data/lib/wings/services/custom_queries/find_file_metadata.rb +2 -2
- data/lib/wings/setup.rb +12 -3
- data/lib/wings/transformer_value_mapper.rb +5 -1
- data/lib/wings/valkyrie/persister.rb +3 -1
- data/template.rb +1 -1
- metadata +77 -19
- data/.koppie/scripts/db-migrate-seed.sh +0 -9
- data/.koppie/scripts/entrypoint.sh +0 -10
@@ -29,7 +29,7 @@
|
|
29
29
|
</div>
|
30
30
|
<div class="card-footer d-flex justify-content-end">
|
31
31
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
32
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
32
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
33
33
|
</div>
|
34
34
|
<% end %>
|
35
35
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
</div>
|
46
46
|
<div class="card-footer d-flex justify-content-end">
|
47
47
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
48
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
48
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
49
49
|
</div>
|
50
50
|
<% end %>
|
51
51
|
</div>
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</div>
|
62
62
|
<div class="card-footer d-flex justify-content-end">
|
63
63
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
64
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
64
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
65
65
|
</div>
|
66
66
|
<% end %>
|
67
67
|
</div>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
</li>
|
15
|
-
<li class="nav-item">
|
15
|
+
<li class="nav-item <%= 'active' if current_page?(hyrax.dashboard_path) %>">
|
16
16
|
<%= link_to hyrax.dashboard_path, class: "nav-link", title: t('hyrax.admin.sidebar.dashboard') do %>
|
17
17
|
<span class="fa fa-home" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.dashboard') %></span>
|
18
18
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%= t('.title') %>
|
4
4
|
</div>
|
5
5
|
<div class="card-body d-flex justify-content-center">
|
6
|
-
|
6
|
+
<% if Hyrax.config.analytics_reporting? %>
|
7
7
|
<%= render 'user_activity_graph' %>
|
8
8
|
|
9
9
|
<!-- FIXME: This is like embedded a card in a card...seems odd -->
|
@@ -22,4 +22,4 @@
|
|
22
22
|
</div>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
|
-
</div>
|
25
|
+
</div>
|
@@ -1,28 +1,28 @@
|
|
1
1
|
<%= render "shared/nav_safety_modal" %>
|
2
2
|
<div class="tabs mt-4" id="collection-edit-controls">
|
3
3
|
<ul class="nav nav-tabs" id="dashboard-collection-tab" role="tablist">
|
4
|
-
<li class="nav-item">
|
4
|
+
<li class="nav-item" role="presentation">
|
5
5
|
<a href="#description" role="tab" data-toggle="tab" class="nav-link active nav-safety-confirm">
|
6
6
|
<%= t('.tabs.description') %>
|
7
7
|
</a>
|
8
8
|
</li>
|
9
9
|
<% if @form.persisted? %>
|
10
10
|
<% if collection_brandable?(collection: @collection) %>
|
11
|
-
<li class="nav-item">
|
11
|
+
<li class="nav-item" role="presentation">
|
12
12
|
<a href="#branding" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
13
13
|
<%= t('.tabs.branding') %>
|
14
14
|
</a>
|
15
15
|
</li>
|
16
16
|
<% end %>
|
17
17
|
<% if collection_discoverable?(collection: @collection) %>
|
18
|
-
<li class="nav-item">
|
18
|
+
<li class="nav-item" role="presentation">
|
19
19
|
<a href="#discovery" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
20
20
|
<%= t('.tabs.discovery') %>
|
21
21
|
</a>
|
22
22
|
</li>
|
23
23
|
<% end %>
|
24
24
|
<% if collection_sharable?(collection: @collection) %>
|
25
|
-
<li class="nav-item">
|
25
|
+
<li class="nav-item" role="presentation">
|
26
26
|
<a href="#sharing" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
27
27
|
<%= t('.tabs.sharing') %>
|
28
28
|
</a>
|
@@ -25,10 +25,11 @@
|
|
25
25
|
class: 'form-control search-input' %>
|
26
26
|
</div>
|
27
27
|
<div class="form-group">
|
28
|
-
<label class="mr-2">as</label>
|
28
|
+
<label id="add_group_as" class="mr-2">as</label>
|
29
29
|
<%= builder.select :access,
|
30
30
|
access_options,
|
31
31
|
{ prompt: t('.select_a_role') },
|
32
|
+
'aria-labelledby': "add_group_as",
|
32
33
|
class: 'form-control' %>
|
33
34
|
</div>
|
34
35
|
<% end %>
|
@@ -56,10 +57,11 @@
|
|
56
57
|
placeholder: t('.search_for_a_user') %>
|
57
58
|
</div>
|
58
59
|
<div class="form-group">
|
59
|
-
<label class="mx-2">as</label>
|
60
|
+
<label id="add_user_as" class="mx-2">as</label>
|
60
61
|
<%= builder.select :access,
|
61
62
|
access_options,
|
62
63
|
{ prompt: t('.select_a_role') },
|
64
|
+
'aria-labelledby': "add_user_as",
|
63
65
|
class: 'form-control' %>
|
64
66
|
</div>
|
65
67
|
<% end %>
|
@@ -75,8 +77,8 @@
|
|
75
77
|
|
76
78
|
<h2 class="h3"><%= t(".current_shared") %></h2>
|
77
79
|
<section class="section-collection-sharing">
|
78
|
-
|
79
|
-
|
80
|
+
|
81
|
+
|
80
82
|
<%= render 'form_share_table', access: 'managers', filter: :manage? %>
|
81
83
|
<%= render 'form_share_table', access: 'depositors', filter: :deposit? %>
|
82
84
|
<%= render 'form_share_table', access: 'viewers', filter: :view? %>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<input type="checkbox" name="batch_document_ids[]" id="batch_document_<%= id %>" value="<%= id %>" class="batch_document_selector"
|
13
13
|
data-hasaccess="<%= (can?(:edit, collection_presenter.solr_document)) %>" />
|
14
14
|
<% else %>
|
15
|
-
<input type="checkbox" class="disabled batch_document_selector" disabled=true />
|
15
|
+
<input type="checkbox" id="batch_document_<%= id %>" class="disabled batch_document_selector" disabled=true />
|
16
16
|
<% end %>
|
17
17
|
</td>
|
18
18
|
<td>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
</td>
|
8
8
|
<td>
|
9
9
|
<div class="media">
|
10
|
-
<%= link_to [main_app, document], "class" => "media-left mr-3"
|
10
|
+
<%= link_to [main_app, document], "class" => "media-left mr-3" do %>
|
11
11
|
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
|
12
12
|
{ class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
|
13
13
|
) %>
|
@@ -3,34 +3,34 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<div class="spaced-rows">
|
6
|
-
<% if Hyrax.config.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
<% if Hyrax.config.analytics_reporting? %>
|
7
|
+
<div class="row">
|
8
|
+
<div class="col">
|
9
|
+
<div class="card">
|
10
|
+
<div class="card-header">
|
11
|
+
<h2 class="card-title"><%= t(".graph_reports") %>:</h2>
|
12
|
+
<%= params[:start_date].present? ? params[:start_date].to_date : 1.month.ago.beginning_of_day.to_date %> -
|
13
|
+
<%= params[:end_date].present? ? params[:end_date].to_date : Time.zone.now.end_of_day.to_date %>
|
14
|
+
</div>
|
15
|
+
<div class="card-body">
|
16
|
+
<%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.dashboard_path %>
|
17
|
+
</div>
|
17
18
|
</div>
|
18
19
|
</div>
|
19
20
|
</div>
|
20
|
-
</div>
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
<div class="row">
|
23
|
+
<div class="col">
|
24
|
+
<div class="card">
|
25
|
+
<%= render 'user_activity' %>
|
26
|
+
</div>
|
26
27
|
</div>
|
27
28
|
</div>
|
28
|
-
</div>
|
29
29
|
<% end %>
|
30
30
|
|
31
31
|
<div class="row">
|
32
32
|
<div class="col">
|
33
|
-
|
33
|
+
<%= render 'repository_growth' %>
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
|
@@ -50,4 +50,3 @@
|
|
50
50
|
<div class="clearfix mt-5">
|
51
51
|
<%= render 'tabs' %>
|
52
52
|
</div>
|
53
|
-
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<% end %>
|
34
34
|
<% end %>
|
35
35
|
|
36
|
-
<% if current_ability.can_create_any_work? && Hyrax.config.
|
36
|
+
<% if current_ability.can_create_any_work? && Hyrax.config.analytics_reporting? %>
|
37
37
|
<li class="nav-item">
|
38
38
|
<%= menu.collapsable_section t('hyrax.admin.sidebar.analytics'),
|
39
39
|
icon_class: "fa fa-pie-chart",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<table class="embargoes table">
|
23
23
|
<thead>
|
24
24
|
<tr>
|
25
|
-
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector"/>
|
25
|
+
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector" aria-labelledby="checkAllBox"/> <label for="checkAllBox"><%= t('.select_all') %></label></th>
|
26
26
|
<%= render partial: 'table_headers' %>
|
27
27
|
</tr>
|
28
28
|
</thead>
|
@@ -31,19 +31,19 @@
|
|
31
31
|
<tr>
|
32
32
|
<td><%= render 'hyrax/batch_select/add_button', document: curation_concern %></td>
|
33
33
|
<td class="human-readable-type"><%= curation_concern.human_readable_type %></td>
|
34
|
-
<td class="title"><%= link_to curation_concern, edit_embargo_path(curation_concern) %></td>
|
34
|
+
<td class="title"><label for="batch_document_<%= curation_concern.id %>"><%= link_to curation_concern, edit_embargo_path(curation_concern) %></label></td>
|
35
35
|
<td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td>
|
36
36
|
<td class="embargo-release-date"><%= curation_concern.embargo_release_date %></td>
|
37
37
|
<td class="visibility-after-embargo"><%= visibility_badge(curation_concern.visibility_after_embargo) %></td>
|
38
|
-
<td class="actions"><%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
39
38
|
</tr>
|
40
39
|
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-embargo-info">
|
41
40
|
<td></td>
|
42
|
-
<td colspan=
|
43
|
-
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true %>
|
44
|
-
<%= t('.change_all', cc: curation_concern) %>
|
45
|
-
<%= visibility_badge(curation_concern.visibility_after_embargo)
|
41
|
+
<td colspan=4>
|
42
|
+
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %>
|
43
|
+
<label for="embargoes_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
|
44
|
+
<%= visibility_badge(curation_concern.visibility_after_embargo) %>?</label>
|
46
45
|
</td>
|
46
|
+
<td class="actions"><%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
47
47
|
</tr>
|
48
48
|
<% end %>
|
49
49
|
</tbody>
|
@@ -45,8 +45,16 @@
|
|
45
45
|
class: "download",
|
46
46
|
data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids } %>
|
47
47
|
</li>
|
48
|
-
<% end %>
|
49
48
|
|
49
|
+
<% file_set.extensions_and_mime_types&.each do |hash| %>
|
50
|
+
<% next unless hash[:name] %>
|
51
|
+
<li class ="dropdown-item" role="menuitem" tabindex="-1">
|
52
|
+
<a href="<%= download_url(id: file_set.id, locale: 'en', file: hash[:name], mime_type: hash[:mime_type]) %>" download>
|
53
|
+
Download <em>(as <%= hash[:name] %>)</em>
|
54
|
+
</a>
|
55
|
+
</li>
|
56
|
+
<% end %>
|
57
|
+
<% end %>
|
50
58
|
</ul>
|
51
59
|
</div>
|
52
60
|
<% end %>
|
@@ -56,8 +56,10 @@
|
|
56
56
|
<%= select_tag 'new_group_permission_skel', options_for_select(configured_permission_options), class: 'form-control' %>
|
57
57
|
</div>
|
58
58
|
<div class="col-sm-3">
|
59
|
-
<
|
60
|
-
|
59
|
+
<button class="btn btn-secondary" id="add_new_group_skel">
|
60
|
+
<span class="sr-only"><%= t('.add_new_group_skel') %></span>
|
61
|
+
<i class="fa fa-plus"></i>
|
62
|
+
</button>
|
61
63
|
<br /><span id="directory_group_result"></span>
|
62
64
|
</div>
|
63
65
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-actions">
|
2
|
-
<% if Hyrax.config.
|
2
|
+
<% if Hyrax.config.analytics_reporting? %>
|
3
3
|
<% # turbolinks needs to be turned off or the page will use the cache and the %>
|
4
4
|
<% # analytics graph will not show unless the page is refreshed. %>
|
5
5
|
<%= link_to t('.analytics'), @presenter.stats_path, id: 'stats', class: 'btn btn-secondary', data: { turbolinks: false } %>
|
@@ -11,10 +11,10 @@
|
|
11
11
|
<% end %>
|
12
12
|
</h3>
|
13
13
|
<p class="recent-field">
|
14
|
-
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
|
14
|
+
<span class="recent-label text-dark"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
|
15
15
|
</p>
|
16
16
|
<p class="recent-field">
|
17
|
-
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
|
17
|
+
<span class="recent-label text-dark"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
|
18
18
|
</p>
|
19
19
|
</div>
|
20
20
|
</div>
|
@@ -32,19 +32,19 @@
|
|
32
32
|
<tr>
|
33
33
|
<td><%= render 'hyrax/batch_select/add_button', document: curation_concern %></td>
|
34
34
|
<td class="human-readable-type"><%= curation_concern.human_readable_type %></td>
|
35
|
-
<td class="title"><%= link_to curation_concern, edit_lease_path(curation_concern) %></td>
|
35
|
+
<td class="title"><label for="batch_document_<%= curation_concern.id %>"><%= link_to curation_concern, edit_lease_path(curation_concern) %></label></td>
|
36
36
|
<td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td>
|
37
37
|
<td class="lease-release-date"><%= curation_concern.lease_expiration_date %></td>
|
38
38
|
<td class="visibility-after-lease"><%= visibility_badge(curation_concern.visibility_after_lease) %></td>
|
39
|
-
<td class="actions"><%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
40
39
|
</tr>
|
41
40
|
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-lease-info">
|
42
41
|
<td></td>
|
43
|
-
<td colspan=
|
44
|
-
<%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true %>
|
45
|
-
<%= t('.change_all', cc: curation_concern) %>
|
46
|
-
<%= visibility_badge(curation_concern.visibility_after_lease)
|
42
|
+
<td colspan=4>
|
43
|
+
<%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "leases_#{i}_copy_visibility" %>
|
44
|
+
<label for="leases_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
|
45
|
+
<%= visibility_badge(curation_concern.visibility_after_lease) %>?</label>
|
47
46
|
</td>
|
47
|
+
<td class="actions"><%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
48
48
|
</tr>
|
49
49
|
<% end %>
|
50
50
|
</tbody>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<input type="checkbox" name="batch_document_ids[]" id="batch_document_<%= id %>" value="<%= id %>" class="batch_document_selector"
|
15
15
|
data-hasaccess="<%= (can?(:edit, collection_presenter.solr_document)) %>" />
|
16
16
|
<% else %>
|
17
|
-
<input type="checkbox" class="disabled" disabled=true />
|
17
|
+
<input type="checkbox" id="batch_document_<%= id %>" class="disabled batch_document_selector" disabled=true />
|
18
18
|
<% end %>
|
19
19
|
</td>
|
20
20
|
<td>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% current_page_dashboard = current_page?(hyrax.dashboard_collections_path(locale: nil)) %>
|
2
|
-
<ul class="nav nav-tabs" id="my_nav"
|
2
|
+
<ul class="nav nav-tabs" id="my_nav">
|
3
3
|
<li<%= ' class="nav-item"'.html_safe if current_page_dashboard %>>
|
4
4
|
<%= link_to(
|
5
5
|
t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.collections"),
|
@@ -2,22 +2,22 @@
|
|
2
2
|
<div class="card tabs">
|
3
3
|
|
4
4
|
<ul class="nav nav-tabs" role="tablist">
|
5
|
-
<li class="nav-item">
|
5
|
+
<li class="nav-item" role="presentation">
|
6
6
|
<a href="#about" role="tab" data-toggle="tab" class="nav-link active nav-safety-confirm">
|
7
7
|
<%= t(:'hyrax.pages.tabs.about_page') %>
|
8
8
|
</a>
|
9
9
|
</li>
|
10
|
-
<li class="nav-item">
|
10
|
+
<li class="nav-item" role="presentation">
|
11
11
|
<a href="#help" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
12
12
|
<%= t(:'hyrax.pages.tabs.help_page') %>
|
13
13
|
</a>
|
14
14
|
</li>
|
15
|
-
<li class="nav-item">
|
15
|
+
<li class="nav-item" role="presentation">
|
16
16
|
<a href="#agreement" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
17
17
|
<%= t(:'hyrax.pages.tabs.agreement_page') %>
|
18
18
|
</a>
|
19
19
|
</li>
|
20
|
-
<li class="nav-item">
|
20
|
+
<li class="nav-item" role="presentation">
|
21
21
|
<a href="#terms" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
22
22
|
<%= t(:'hyrax.pages.tabs.terms_page') %>
|
23
23
|
</a>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</div>
|
37
37
|
<div class="card-footer d-flex justify-content-end">
|
38
38
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
39
|
-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.
|
39
|
+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
|
40
40
|
</div>
|
41
41
|
<% end %>
|
42
42
|
</div>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
</div>
|
53
53
|
<div class="card-footer d-flex justify-content-end">
|
54
54
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
55
|
-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.
|
55
|
+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
|
56
56
|
</div>
|
57
57
|
<% end %>
|
58
58
|
</div>
|
@@ -68,7 +68,7 @@
|
|
68
68
|
</div>
|
69
69
|
<div class="card-footer d-flex justify-content-end">
|
70
70
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
71
|
-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.
|
71
|
+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
|
72
72
|
</div>
|
73
73
|
<% end %>
|
74
74
|
</div>
|
@@ -84,7 +84,7 @@
|
|
84
84
|
</div>
|
85
85
|
<div class="card-footer d-flex justify-content-end">
|
86
86
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
87
|
-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.
|
87
|
+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
|
88
88
|
</div>
|
89
89
|
<% end %>
|
90
90
|
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% if req.pending? %>
|
24
24
|
<div class="btn-group">
|
25
25
|
<button class="btn btn-sm btn-primary" href="#"><%= t(".accept") %></button>
|
26
|
-
<button class="btn btn-sm dropdown-toggle accept" data-toggle="dropdown" href="#"></button>
|
26
|
+
<button class="btn btn-sm dropdown-toggle accept" data-toggle="dropdown" href="#"><span class="sr-only">accept options</span></button>
|
27
27
|
<ul class="dropdown-menu">
|
28
28
|
<li class="dropdown-item">
|
29
29
|
<%= link_to t(".allow_depositor_to_retain_edit_access"), hyrax.accept_transfer_path(req), method: :put, class: 'accept-retain', title: t(".accept_the_file_and_allow_the_original_depositor_to_retain_access_to_edit_the_file_and_metadata") %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
json.files [@upload] do |uploaded_file|
|
3
3
|
json.id uploaded_file.id
|
4
|
-
json.name uploaded_file.file
|
5
|
-
json.size uploaded_file.file
|
4
|
+
json.name uploaded_file.file&.file&.filename
|
5
|
+
json.size uploaded_file.file&.file&.size
|
6
6
|
# TODO: implement these
|
7
7
|
# json.url "/uploads/#{uploaded_file.id}"
|
8
8
|
# json.thumbnail_url uploaded_file.id
|
@@ -7,17 +7,23 @@
|
|
7
7
|
</tr>
|
8
8
|
</thead>
|
9
9
|
<tbody>
|
10
|
-
<% events.
|
11
|
-
|
10
|
+
<% valid_events = events.reject { |event| event[:action].blank? || event[:timestamp].blank? } %>
|
11
|
+
<% if valid_events.empty? %>
|
12
12
|
<tr>
|
13
|
-
<td
|
14
|
-
<% time = Time.zone.at(event[:timestamp].to_i) %>
|
15
|
-
<td data-sort="<%= time.getutc.iso8601(5) %>">
|
16
|
-
<relative-time datetime="<%= time.getutc.iso8601 %>" title="<%= time.to_formatted_s(:standard) %>">
|
17
|
-
<%= time.to_formatted_s(:long_ordinal) %>
|
18
|
-
</relative-time>
|
19
|
-
</td>
|
13
|
+
<td colspan="2">No user activity</td>
|
20
14
|
</tr>
|
15
|
+
<% else %>
|
16
|
+
<% valid_events.each do |event| %>
|
17
|
+
<tr>
|
18
|
+
<td class="ensure-wrapped"><%= sanitize event[:action] %></td>
|
19
|
+
<% time = Time.zone.at(event[:timestamp].to_i) %>
|
20
|
+
<td data-sort="<%= time.getutc.iso8601(5) %>">
|
21
|
+
<relative-time datetime="<%= time.getutc.iso8601 %>" title="<%= time.to_formatted_s(:standard) %>">
|
22
|
+
<%= time.to_formatted_s(:long_ordinal) %>
|
23
|
+
</relative-time>
|
24
|
+
</td>
|
25
|
+
</tr>
|
26
|
+
<% end %>
|
21
27
|
<% end %>
|
22
28
|
</tbody>
|
23
29
|
</table>
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<tr>
|
2
|
-
|
3
|
-
|
2
|
+
<td>
|
3
|
+
<% if user.avatar.file %>
|
4
|
+
<%= link_to hyrax.user_path(user) do %>
|
5
|
+
<%= image_tag(user.avatar.url(:thumb), width: 30, alt: user.name) %>
|
4
6
|
<% end %>
|
5
|
-
|
7
|
+
<% end %>
|
8
|
+
</td>
|
6
9
|
<td><%= link_to user.name, hyrax.user_path(user) %></td>
|
7
10
|
<td><%= link_to user.user_key, hyrax.user_path(user) %></td>
|
8
11
|
<td><%= user.department %></td>
|
@@ -12,7 +12,8 @@
|
|
12
12
|
<span class="fa fa-upload" aria-hidden="true"></span> <%= link_to_works(user) %>
|
13
13
|
|
14
14
|
<ul class="views-downloads-dashboard list-unstyled">
|
15
|
-
|
16
|
-
|
15
|
+
<li><span class="badge badge-optional dark-text"><%= user.total_work_views %></span> <%= t("hyrax.dashboard.stats.work_views").pluralize(user.total_work_views) %></li>
|
16
|
+
<li><span class="badge badge-optional dark-text"><%= user.total_file_views %></span> <%= t("hyrax.dashboard.stats.file_views").pluralize(user.total_file_views) %></li>
|
17
|
+
<li><span class="badge badge-optional dark-text"><%= user.total_file_downloads %></span> <%= t("hyrax.dashboard.stats.file_downloads").pluralize(user.total_file_downloads) %></li>
|
17
18
|
</ul>
|
18
19
|
</div>
|
@@ -29,6 +29,8 @@ signed in %>
|
|
29
29
|
<% if Hyrax.config.analytics? %>
|
30
30
|
<% if Hyrax.config.analytics_provider == 'google' %>
|
31
31
|
<%= render partial: 'shared/ga', formats: [:html] %>
|
32
|
+
<% elsif Hyrax.config.analytics_provider == 'ga4' %>
|
33
|
+
<%= render partial: 'shared/ga4', formats: [:html] %>
|
32
34
|
<% elsif Hyrax.config.analytics_provider == 'matomo' %>
|
33
35
|
<%= render partial: 'shared/matomo', formats: [:html] %>
|
34
36
|
<% end %>
|
@@ -14,11 +14,15 @@ a { color: <%= appearance.link_color %>; }
|
|
14
14
|
.navbar-dark.bg-dark .navbar-text,
|
15
15
|
.navbar-dark.bg-dark .navbar-brand { color: <%= appearance.header_text_color %>; }
|
16
16
|
|
17
|
-
.btn-primary {
|
17
|
+
.btn-primary, .page-item.active .page-link {
|
18
18
|
background-color: <%= appearance.primary_button_background_color %>;
|
19
19
|
border-color: <%= appearance.primary_button_border_color %>;
|
20
20
|
}
|
21
21
|
|
22
|
+
.page-link {
|
23
|
+
color: <%= appearance.primary_button_background_color %>;
|
24
|
+
}
|
25
|
+
|
22
26
|
.btn-primary:focus,
|
23
27
|
.btn-primary.focus {
|
24
28
|
background-color: <%= appearance.primary_button_focus_background_color %>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Google tag (gtag.js) -->
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= Hyrax::Analytics.config.analytics_id %>"></script>
|
3
|
+
<script>
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '<%= Hyrax::Analytics.config.analytics_id %>');
|
9
|
+
window.analytics = gtag;
|
10
|
+
</script>
|
11
|
+
<meta name="analytics-provider" content="ga4">
|
@@ -7,12 +7,21 @@
|
|
7
7
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('hyrax.dashboard.heading_actions.close') %>"><span aria-hidden="true">×</span></button>
|
8
8
|
</div>
|
9
9
|
<div class="modal-body">
|
10
|
+
<% if Flipflop.assign_admin_set? %>
|
11
|
+
<div class="select-work-admin-set">
|
12
|
+
<div class="admin-set-title">
|
13
|
+
<%= t('hyrax.dashboard.heading_actions.select_admin_set') %>
|
14
|
+
</div>
|
15
|
+
<%= select_tag(:admin_set_id, options_for_select(@admin_sets_for_select), class: 'form-control') if @admin_sets_for_select %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
10
18
|
<% create_work_presenter.each do |row_presenter| %>
|
11
19
|
<div class="select-worktype">
|
12
20
|
<label>
|
13
21
|
<input type="radio" name="payload_concern" value="<%= row_presenter.concern %>"
|
14
22
|
data-single="<%= row_presenter.switch_to_new_work_path(route_set: main_app, params: params) %>"
|
15
|
-
data-batch="<%= row_presenter.switch_to_batch_upload_path(route_set: hyrax, params: params) %>"
|
23
|
+
data-batch="<%= row_presenter.switch_to_batch_upload_path(route_set: hyrax, params: params) %>"
|
24
|
+
required />
|
16
25
|
<div class="select-work-icon">
|
17
26
|
<span class="<%= row_presenter.icon_class %>"></span>
|
18
27
|
</div>
|
data/bin/db-migrate-seed.sh
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
set -e
|
3
3
|
|
4
|
-
|
4
|
+
service-wait.sh "$DB_HOST:$DB_PORT"
|
5
5
|
bundle exec rails db:create
|
6
6
|
bundle exec rails db:migrate
|
7
7
|
|
8
8
|
if [ "$FCREPO_HOST" ]; then
|
9
|
-
|
9
|
+
service-wait.sh "$FCREPO_HOST:$FCREPO_PORT"
|
10
10
|
fi
|
11
|
-
|
11
|
+
service-wait.sh "$SOLR_HOST:$SOLR_PORT"
|
12
12
|
|
13
13
|
bundle exec rails db:seed
|
data/bin/dev-entrypoint.sh
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
set -e
|
3
3
|
|
4
|
-
mkdir -p /
|
5
|
-
rm -f /
|
4
|
+
mkdir -p $RAILS_ROOT/tmp/pids
|
5
|
+
rm -f $RAILS_ROOT/tmp/pids/*
|
6
|
+
|
7
|
+
RUBY_MAJOR=$(ruby -e "puts /^(?'major'\d+)\.(?'minor'\d+)\.(?'patch'\d+)/.match(RUBY_VERSION)[:major]")
|
6
8
|
|
7
9
|
# Copy gems installed in the image to the dev bundle
|
8
10
|
mkdir -p /app/bundle/ruby/$RUBY_MAJOR.0
|
9
11
|
cp -Rn /usr/local/bundle/* /app/bundle/ruby/$RUBY_MAJOR.0
|
10
12
|
bundle install
|
13
|
+
yarn install
|
14
|
+
|
15
|
+
db-migrate-seed.sh
|
11
16
|
|
12
17
|
# Run the command
|
13
18
|
exec "$@"
|