hyrax 3.4.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +26 -17
  3. data/.dassie/.env +1 -1
  4. data/.dassie/Gemfile +1 -1
  5. data/.dassie/app/forms/collection_resource_form.rb +8 -0
  6. data/.dassie/app/indexers/collection_resource_indexer.rb +8 -0
  7. data/.dassie/app/models/collection_resource.rb +35 -0
  8. data/.dassie/config/initializers/file_services.rb +4 -0
  9. data/.dassie/config/initializers/hyrax.rb +2 -1
  10. data/.dassie/config/metadata/collection_resource.yaml +23 -0
  11. data/.dassie/db/seeds.rb +2 -0
  12. data/.dassie/spec/forms/collection_resource_form_spec.rb +13 -0
  13. data/.dassie/spec/indexers/collection_resource_indexer_spec.rb +14 -0
  14. data/.dassie/spec/models/collection_resource_spec.rb +13 -0
  15. data/.regen +1 -1
  16. data/.rubocop.yml +1 -1
  17. data/.rubocop_fixme.yml +19 -2
  18. data/CONTAINERS.md +18 -13
  19. data/Dockerfile +2 -2
  20. data/app/actors/hyrax/actors/collections_membership_actor.rb +1 -1
  21. data/app/actors/hyrax/actors/embargo_actor.rb +11 -4
  22. data/app/actors/hyrax/actors/lease_actor.rb +11 -4
  23. data/app/assets/javascripts/hyrax/app.js.erb +1 -1
  24. data/app/assets/javascripts/hyrax/collections_v2.es6 +13 -0
  25. data/app/assets/javascripts/hyrax/permissions/control.es6 +8 -1
  26. data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +1 -3
  27. data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +11 -2
  28. data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +11 -2
  29. data/app/controllers/concerns/hyrax/manages_embargoes.rb +13 -1
  30. data/app/controllers/hyrax/dashboard/collections_controller.rb +159 -76
  31. data/app/controllers/hyrax/downloads_controller.rb +16 -1
  32. data/app/controllers/hyrax/file_sets_controller.rb +10 -1
  33. data/app/controllers/hyrax/permissions_controller.rb +1 -1
  34. data/app/controllers/hyrax/single_use_links_viewer_controller.rb +1 -1
  35. data/app/controllers/hyrax/transfers_controller.rb +0 -2
  36. data/app/controllers/hyrax/workflow_actions_controller.rb +3 -2
  37. data/app/forms/hyrax/forms/collection_form.rb +1 -1
  38. data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +2 -0
  39. data/app/forms/hyrax/forms/embargo.rb +13 -0
  40. data/app/forms/hyrax/forms/file_set_edit_form.rb +1 -1
  41. data/app/forms/hyrax/forms/file_set_form.rb +8 -35
  42. data/app/forms/hyrax/forms/lease.rb +13 -0
  43. data/app/forms/hyrax/forms/pcdm_collection_form.rb +29 -2
  44. data/app/forms/hyrax/forms/pcdm_object_form.rb +46 -0
  45. data/app/forms/hyrax/forms/resource_form.rb +39 -21
  46. data/app/forms/hyrax/forms/widgets/admin_set_visibility.rb +1 -1
  47. data/app/forms/hyrax/forms/work_embargo_form.rb +35 -0
  48. data/app/forms/hyrax/forms/work_lease_form.rb +35 -0
  49. data/app/helpers/hyrax/embargo_helper.rb +11 -0
  50. data/app/helpers/hyrax/lease_helper.rb +11 -0
  51. data/app/indexers/hyrax/pcdm_collection_indexer.rb +1 -1
  52. data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +2 -8
  53. data/app/jobs/characterize_job.rb +5 -1
  54. data/app/jobs/content_event_job.rb +1 -1
  55. data/app/jobs/import_url_job.rb +4 -6
  56. data/app/jobs/valkyrie_ingest_job.rb +15 -77
  57. data/app/models/admin_set.rb +8 -0
  58. data/app/models/concerns/hyrax/collection_behavior.rb +3 -2
  59. data/app/models/concerns/hyrax/collection_nesting.rb +10 -1
  60. data/app/models/concerns/hyrax/file_set_behavior.rb +1 -0
  61. data/app/models/concerns/hyrax/user.rb +11 -0
  62. data/app/models/concerns/hyrax/work_behavior.rb +3 -2
  63. data/app/models/featured_work_list.rb +0 -1
  64. data/app/models/hyrax/embargo.rb +1 -1
  65. data/app/models/hyrax/file_metadata.rb +32 -2
  66. data/app/models/hyrax/file_set.rb +4 -6
  67. data/app/models/hyrax/group.rb +19 -0
  68. data/app/models/hyrax/lease.rb +1 -1
  69. data/app/models/hyrax/pcdm_collection.rb +0 -1
  70. data/app/models/job_io_wrapper.rb +1 -1
  71. data/app/models/proxy_deposit_request.rb +1 -1
  72. data/app/presenters/hyrax/member_presenter_factory.rb +2 -4
  73. data/app/presenters/hyrax/permission_badge.rb +3 -2
  74. data/app/presenters/hyrax/version_list_presenter.rb +6 -1
  75. data/app/presenters/hyrax/work_show_presenter.rb +3 -3
  76. data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +13 -5
  77. data/app/services/hyrax/access_control_list.rb +7 -6
  78. data/app/services/hyrax/adapters/nesting_index_adapter.rb +3 -3
  79. data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +3 -5
  80. data/app/services/hyrax/collections/collection_member_service.rb +3 -5
  81. data/app/services/hyrax/collections/nested_collection_query_service.rb +1 -1
  82. data/app/services/hyrax/edit_permissions_service.rb +21 -3
  83. data/app/services/hyrax/embargo_manager.rb +9 -0
  84. data/app/services/hyrax/file_set_file_service.rb +55 -0
  85. data/app/services/hyrax/lease_manager.rb +9 -0
  86. data/app/services/hyrax/listeners/file_metadata_listener.rb +11 -0
  87. data/app/services/hyrax/listeners/member_cleanup_listener.rb +14 -18
  88. data/app/services/hyrax/multiple_membership_checker.rb +2 -0
  89. data/app/services/hyrax/user_stat_importer.rb +2 -0
  90. data/app/services/hyrax/valkyrie_persist_derivatives.rb +50 -0
  91. data/app/services/hyrax/valkyrie_upload.rb +94 -0
  92. data/app/services/hyrax/versioning_service.rb +77 -9
  93. data/app/services/hyrax/visibility_propagator.rb +5 -5
  94. data/app/services/hyrax/work_resource_query_service.rb +45 -0
  95. data/app/services/hyrax/workflow/workflow_importer.rb +7 -9
  96. data/app/services/hyrax/workflow/workflow_schema.rb +3 -5
  97. data/app/strategies/hyrax/strategies/yaml_strategy.rb +4 -6
  98. data/app/uploaders/hyrax/uploaded_file_uploader.rb +4 -4
  99. data/app/validators/hyrax/collection_membership_validator.rb +16 -15
  100. data/app/views/catalog/_index_header_list_default.html.erb +8 -1
  101. data/app/views/catalog/_thumbnail_list_default.html.erb +8 -3
  102. data/app/views/collections/edit_fields/_based_near.html.erb +7 -7
  103. data/app/views/hyrax/base/_form_progress.html.erb +1 -1
  104. data/app/views/hyrax/base/_form_visibility_component.html.erb +5 -1
  105. data/app/views/hyrax/dashboard/collections/_form.html.erb +3 -2
  106. data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +1 -0
  107. data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +1 -1
  108. data/app/views/hyrax/embargoes/edit.html.erb +3 -3
  109. data/app/views/hyrax/file_sets/_permission.html.erb +1 -1
  110. data/app/views/hyrax/file_sets/_permission_form.html.erb +1 -6
  111. data/app/views/hyrax/file_sets/edit.html.erb +2 -2
  112. data/app/views/hyrax/leases/edit.html.erb +3 -3
  113. data/app/views/hyrax/my/works/_tabs.html.erb +6 -1
  114. data/app/views/hyrax/transfers/new.html.erb +1 -1
  115. data/chart/hyrax/Chart.yaml +10 -6
  116. data/chart/hyrax/templates/_helpers.tpl +4 -0
  117. data/chart/hyrax/templates/cron-embargo.yaml +5 -0
  118. data/chart/hyrax/templates/cron-lease.yaml +5 -0
  119. data/chart/hyrax/templates/deployment-worker.yaml +11 -0
  120. data/chart/hyrax/templates/ingress.yaml +7 -6
  121. data/chart/hyrax/values.yaml +152 -0
  122. data/config/features.rb +48 -50
  123. data/config/initializers/{valkryrie_storage.rb → storage_adapter_initializer.rb} +5 -0
  124. data/config/locales/hyrax.de.yml +14 -13
  125. data/config/locales/hyrax.en.yml +3 -0
  126. data/config/locales/hyrax.es.yml +1 -0
  127. data/config/locales/hyrax.fr.yml +2 -1
  128. data/config/locales/hyrax.it.yml +1 -0
  129. data/config/locales/hyrax.pt-BR.yml +1 -0
  130. data/config/locales/hyrax.zh.yml +1 -0
  131. data/config/metadata/file_set_metadata.yaml +130 -0
  132. data/docker-compose.yml +1 -0
  133. data/documentation/developing-your-hyrax-based-app.md +2 -2
  134. data/documentation/legacyREADME.md +3 -3
  135. data/hyrax.gemspec +7 -3
  136. data/lib/generators/hyrax/collection_resource/USAGE +20 -0
  137. data/lib/generators/hyrax/collection_resource/collection_resource_generator.rb +133 -0
  138. data/lib/generators/hyrax/collection_resource/templates/collection.rb.erb +34 -0
  139. data/lib/generators/hyrax/collection_resource/templates/collection_form.rb.erb +7 -0
  140. data/lib/generators/hyrax/collection_resource/templates/collection_form_spec.rb.erb +13 -0
  141. data/lib/generators/hyrax/collection_resource/templates/collection_indexer.rb.erb +7 -0
  142. data/lib/generators/hyrax/collection_resource/templates/collection_indexer_spec.rb.erb +13 -0
  143. data/lib/generators/hyrax/collection_resource/templates/collection_metadata.yaml +22 -0
  144. data/lib/generators/hyrax/collection_resource/templates/collection_spec.rb.erb +12 -0
  145. data/lib/generators/hyrax/install_generator.rb +9 -0
  146. data/lib/generators/hyrax/templates/config/locales/hyrax.de.yml +1 -1
  147. data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +1 -1
  148. data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +1 -1
  149. data/lib/generators/hyrax/templates/config/locales/hyrax.fr.yml +1 -1
  150. data/lib/generators/hyrax/templates/config/locales/hyrax.it.yml +1 -1
  151. data/lib/generators/hyrax/templates/config/locales/hyrax.zh.yml +1 -1
  152. data/lib/hyrax/active_fedora_dummy_model.rb +13 -0
  153. data/lib/hyrax/configuration.rb +21 -2
  154. data/lib/hyrax/errors.rb +2 -0
  155. data/lib/hyrax/publisher.rb +4 -0
  156. data/lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb +6 -0
  157. data/lib/hyrax/specs/shared_specs/hydra_works.rb +0 -1
  158. data/lib/hyrax/specs/shared_specs/indexers.rb +5 -0
  159. data/lib/hyrax/transactions/collection_update.rb +2 -0
  160. data/lib/hyrax/transactions/container.rb +10 -0
  161. data/lib/hyrax/transactions/steps/save_collection_banner.rb +59 -0
  162. data/lib/hyrax/transactions/steps/save_collection_logo.rb +109 -0
  163. data/lib/hyrax/version.rb +1 -1
  164. data/lib/wings/active_fedora_converter/file_metadata_node.rb +48 -0
  165. data/lib/wings/active_fedora_converter/instance_builder.rb +68 -0
  166. data/lib/wings/active_fedora_converter.rb +3 -3
  167. data/lib/wings/services/custom_queries/find_file_metadata.rb +19 -8
  168. data/lib/wings/valkyrie/query_service.rb +4 -6
  169. data/lib/wings/valkyrie/storage.rb +6 -2
  170. data/template.rb +1 -1
  171. metadata +99 -13
  172. data/app/views/catalog/_index_header_list_hyrax_pcdm_collection.html.erb +0 -4
@@ -1,6 +1,7 @@
1
1
  {{- if .Values.ingress.enabled -}}
2
- {{- $fullName := include "hyrax.fullname" . -}}
3
- {{- $svcPort := .Values.service.port -}}
2
+ {{- $svcFullName := ternary (include "hyrax.nginx.host" .) (include "hyrax.fullname" .) .Values.nginx.enabled -}}
3
+ {{- $svcPort := ternary .Values.nginx.service.port .Values.service.port .Values.nginx.enabled -}}
4
+
4
5
  {{- $beta := semverCompare "<1.19-0" (default .Capabilities.KubeVersion.Version .Values.kubeVersion) -}}
5
6
  {{- if $beta }}
6
7
  apiVersion: networking.k8s.io/v1beta1
@@ -9,7 +10,7 @@ apiVersion: networking.k8s.io/v1
9
10
  {{- end }}
10
11
  kind: Ingress
11
12
  metadata:
12
- name: {{ $fullName }}
13
+ name: {{ include "hyrax.fullname" . }}
13
14
  labels:
14
15
  {{- include "hyrax.labels" . | nindent 4 }}
15
16
  {{- with .Values.ingress.annotations }}
@@ -37,14 +38,14 @@ spec:
37
38
  pathType: {{ .pathType | default "ImplementationSpecific" }}
38
39
  backend:
39
40
  {{- if $beta }}
40
- serviceName: {{ $fullName }}
41
+ serviceName: {{ $svcFullName }}
41
42
  servicePort: {{ $svcPort }}
42
43
  {{- else }}
43
44
  service:
44
- name: {{ $fullName }}
45
+ name: {{ $svcFullName }}
45
46
  port:
46
47
  number: {{ $svcPort }}
47
48
  {{- end }}
48
49
  {{- end }}
49
50
  {{- end }}
50
- {{- end }}
51
+ {{- end }}
@@ -201,6 +201,18 @@ worker:
201
201
  affinity: {}
202
202
  resources: {}
203
203
 
204
+ # see: https://github.com/mperham/sidekiq/wiki/Kubernetes#health-checks
205
+ readinessProbe:
206
+ enabled: false
207
+ # command:
208
+ # - cat
209
+ # - /app/samvera/hyrax-webapp/tmp/sidekiq_process_has_started_and_will_begin_processing_jobs
210
+ # initialDelaySeconds: 10
211
+ # periodSeconds: 2
212
+ # timeoutSeconds: 1
213
+ # failureThreshold: 10
214
+ # successThreshold: 2
215
+
204
216
  fcrepo:
205
217
  enabled: true
206
218
  externalDatabaseUsername: "hyrax"
@@ -238,6 +250,144 @@ postgresql:
238
250
  # persistence:
239
251
  # size: 10Gi
240
252
 
253
+
254
+ ## Nginx proxy is used to keep puma from having to serve static assets
255
+ ## and to act as an auth proxy for Cantelope
256
+ nginx:
257
+ enabled: false
258
+ # The set up below does malicious bot / ip blocking and mounts
259
+ # vaolumes to allow nginx to server assets and other public directory items
260
+ # image:
261
+ # registry: registry.gitlab.com
262
+ # repository: notch8/scripts/bitnami-nginx
263
+ # tag: 1.21.5-debian-10-r4
264
+ # extraVolumes:
265
+ # - name: "uploads"
266
+ # persistentVolumeClaim:
267
+ # claimName: {{ .Values.global.hyraxHostName }}-uploads
268
+ # extraVolumeMounts:
269
+ # - name: uploads
270
+ # mountPath: /app/samvera/hyrax-webapp/public/system
271
+ # subPath: public-system
272
+ # - name: uploads
273
+ # mountPath: /app/samvera/hyrax-webapp/public/uploads
274
+ # subPath: public-uploads
275
+ # - name: uploads
276
+ # mountPath: /app/samvera/hyrax-webapp/public/uv
277
+ # subPath: public-uv
278
+ # - name: uploads
279
+ # mountPath: /app/samvera/hyrax-webapp/public/assets
280
+ # subPath: public-assets
281
+ # serverBlock: |-
282
+ # upstream rails_app {
283
+ # server {{ .Values.global.hyraxHostName }};
284
+ # }
285
+
286
+ # map $status $loggable {
287
+ # ~^444 0;
288
+ # default 1;
289
+ # }
290
+
291
+ # log_format loki 'host=$host ip=$http_x_forwarded_for remote_user=$remote_user [$time_local] '
292
+ # 'request="$request" status=$status bytes=$body_bytes_sent '
293
+ # 'referer="$http_referer" agent="$http_user_agent" request_time=$request_time upstream_response_time=$upstream_response_time upstream_response_length=$upstream_response_length';
294
+
295
+ # error_log /opt/bitnami/nginx/logs/error.log warn;
296
+ # #tcp_nopush on;
297
+
298
+ # # Cloudflare ips see for refresh
299
+ # # https://support.cloudflare.com/hc/en-us/articles/200170786-Restoring-original-visitor-IPs-logging-visitor-IP-addresses
300
+ # # update list https://www.cloudflare.com/ips/
301
+ # set_real_ip_from 103.21.244.0/22;
302
+ # set_real_ip_from 103.22.200.0/22;
303
+ # set_real_ip_from 103.31.4.0/22;
304
+ # set_real_ip_from 104.16.0.0/13;
305
+ # set_real_ip_from 104.24.0.0/14;
306
+ # set_real_ip_from 108.162.192.0/18;
307
+ # set_real_ip_from 131.0.72.0/22;
308
+ # set_real_ip_from 141.101.64.0/18;
309
+ # set_real_ip_from 162.158.0.0/15;
310
+ # set_real_ip_from 172.64.0.0/13;
311
+ # set_real_ip_from 173.245.48.0/20;
312
+ # set_real_ip_from 188.114.96.0/20;
313
+ # set_real_ip_from 190.93.240.0/20;
314
+ # set_real_ip_from 197.234.240.0/22;
315
+ # set_real_ip_from 198.41.128.0/17;
316
+ # set_real_ip_from 2400:cb00::/32;
317
+ # set_real_ip_from 2606:4700::/32;
318
+ # set_real_ip_from 2803:f800::/32;
319
+ # set_real_ip_from 2405:b500::/32;
320
+ # set_real_ip_from 2405:8100::/32;
321
+ # set_real_ip_from 2a06:98c0::/29;
322
+ # set_real_ip_from 2c0f:f248::/32;
323
+
324
+ # real_ip_header X-Forwarded-For;
325
+ # real_ip_recursive on;
326
+ # include /opt/bitnami/nginx/conf/conf.d/*.conf;
327
+ # server {
328
+ # listen 8080;
329
+ # server_name _;
330
+ # root /app/samvera/hyrax-webapp/public;
331
+ # index index.html;
332
+
333
+ # client_body_in_file_only clean;
334
+ # client_body_buffer_size 32K;
335
+ # client_max_body_size 0;
336
+ # access_log /opt/bitnami/nginx/logs/access.log loki;
337
+ # # if=$loggable;
338
+
339
+ # sendfile on;
340
+ # send_timeout 300s;
341
+
342
+ # include /opt/bitnami/nginx/conf/bots.d/ddos.conf;
343
+ # include /opt/bitnami/nginx/conf/bots.d/blockbots.conf;
344
+
345
+ # location ~ (\.php|\.aspx|\.asp) {
346
+ # return 404;
347
+ # }
348
+
349
+ # # deny requests for files that should never be accessed
350
+ # location ~ /\. {
351
+ # deny all;
352
+ # }
353
+
354
+ # location ~* ^.+\.(rb|log)$ {
355
+ # deny all;
356
+ # }
357
+
358
+ # # serve static (compiled) assets directly if they exist (for rails production)
359
+ # location ~ ^/(assets|packs|fonts|images|javascripts|stylesheets|swfs|system)/ {
360
+ # try_files $uri @rails;
361
+
362
+ # # access_log off;
363
+ # gzip_static on; # to serve pre-gzipped version
364
+
365
+ # expires max;
366
+ # add_header Cache-Control public;
367
+
368
+ # # Some browsers still send conditional-GET requests if there's a
369
+ # # Last-Modified header or an ETag header even if they haven't
370
+ # # reached the expiry date sent in the Expires header.
371
+ # add_header Last-Modified "";
372
+ # add_header ETag "";
373
+ # break;
374
+ # }
375
+
376
+ # # send non-static file requests to the app server
377
+ # location / {
378
+ # try_files $uri @rails;
379
+ # }
380
+
381
+ # location @rails {
382
+ # proxy_set_header X-Real-IP $remote_addr;
383
+ # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
384
+ # proxy_set_header Host $http_host;
385
+ # proxy_redirect off;
386
+ # proxy_pass http://rails_app;
387
+ # }
388
+ # }
389
+
390
+
241
391
  redis:
242
392
  enabled: true
243
393
  password: mysecret
@@ -273,6 +423,8 @@ global:
273
423
  postgresql:
274
424
  postgresqlUsername: hyrax
275
425
  postgresqlPassword: hyrax_pass
426
+ # This is th name of the running rails server pod
427
+ hyraxHostName: hyrax
276
428
 
277
429
  nodeSelector: {}
278
430
 
data/config/features.rb CHANGED
@@ -1,53 +1,51 @@
1
1
  # frozen_string_literal: true
2
2
  Flipflop.configure do
3
- begin
4
- # Strategies will be used in the order listed here.
5
- strategy :cookie
6
- strategy :active_record, class: Hyrax::Feature
7
- strategy Hyrax::Strategies::YamlStrategy, config: Hyrax.config.feature_config_path
8
- strategy :default
9
-
10
- feature :proxy_deposit,
11
- default: true,
12
- description: "Depositors may designate proxies to deposit works on their behalf"
13
-
14
- feature :transfer_works,
15
- default: true,
16
- description: "Depositors may transfer their works to another user"
17
-
18
- # Note, if this is deactivated, a default admin set will be created and all
19
- # works will be assigned to it when they are created.
20
- feature :assign_admin_set,
21
- default: true,
22
- description: "Ability to assign uploaded items to an admin set"
23
-
24
- feature :show_deposit_agreement,
25
- default: true,
26
- description: "Show a deposit agreement to users creating works"
27
-
28
- feature :active_deposit_agreement_acceptance,
29
- default: Hyrax.config.active_deposit_agreement_acceptance?,
30
- description: "Require an active acceptance of the deposit agreement by checking a checkbox"
31
-
32
- feature :batch_upload,
33
- default: false,
34
- description: "Enable uploading batches of works"
35
-
36
- feature :hide_private_items,
37
- default: false,
38
- description: "Do not show the private items."
39
-
40
- feature :hide_users_list,
41
- default: true,
42
- description: "Do not show users list unless user has authenticated."
43
-
44
- feature :cache_work_iiif_manifest,
45
- default: false,
46
- description: "Use Rails.cache to cache the JSON document for IIIF manifests"
47
- feature :read_only,
48
- default: false,
49
- description: "Put the system into read-only mode. Deposits, edits, approvals and anything that makes a change to the data will be disabled."
50
- rescue Flipflop::StrategyError, Flipflop::FeatureError => err
51
- Rails.logger.warn "Ignoring #{err}: #{err.message}"
52
- end
3
+ # Strategies will be used in the order listed here.
4
+ strategy :cookie
5
+ strategy :active_record, class: Hyrax::Feature
6
+ strategy Hyrax::Strategies::YamlStrategy, config: Hyrax.config.feature_config_path
7
+ strategy :default
8
+
9
+ feature :proxy_deposit,
10
+ default: true,
11
+ description: "Depositors may designate proxies to deposit works on their behalf"
12
+
13
+ feature :transfer_works,
14
+ default: true,
15
+ description: "Depositors may transfer their works to another user"
16
+
17
+ # Note, if this is deactivated, a default admin set will be created and all
18
+ # works will be assigned to it when they are created.
19
+ feature :assign_admin_set,
20
+ default: true,
21
+ description: "Ability to assign uploaded items to an admin set"
22
+
23
+ feature :show_deposit_agreement,
24
+ default: true,
25
+ description: "Show a deposit agreement to users creating works"
26
+
27
+ feature :active_deposit_agreement_acceptance,
28
+ default: Hyrax.config.active_deposit_agreement_acceptance?,
29
+ description: "Require an active acceptance of the deposit agreement by checking a checkbox"
30
+
31
+ feature :batch_upload,
32
+ default: false,
33
+ description: "Enable uploading batches of works"
34
+
35
+ feature :hide_private_items,
36
+ default: false,
37
+ description: "Do not show the private items."
38
+
39
+ feature :hide_users_list,
40
+ default: true,
41
+ description: "Do not show users list unless user has authenticated."
42
+
43
+ feature :cache_work_iiif_manifest,
44
+ default: false,
45
+ description: "Use Rails.cache to cache the JSON document for IIIF manifests"
46
+ feature :read_only,
47
+ default: false,
48
+ description: "Put the system into read-only mode. Deposits, edits, approvals and anything that makes a change to the data will be disabled."
49
+ rescue Flipflop::StrategyError, Flipflop::FeatureError => err
50
+ Rails.logger.warn "Ignoring #{err}: #{err.message}"
53
51
  end
@@ -5,3 +5,8 @@ Valkyrie::StorageAdapter.register(
5
5
  path_generator: Hyrax::ValkyrieSimplePathGenerator),
6
6
  :branding_disk
7
7
  )
8
+
9
+ Valkyrie::StorageAdapter.register(
10
+ Valkyrie::Storage::Disk.new(base_path: Hyrax.config.derivatives_path),
11
+ :derivatives_disk
12
+ )
@@ -220,7 +220,7 @@ de:
220
220
  summary: Zusammenfassung
221
221
  title: Sammlungsbericht
222
222
  view_collection_btn: Kollektion ansehen
223
- visibility: Sichtweite
223
+ visibility: Sichtbarkeit
224
224
  summary:
225
225
  all_time: Alle Zeit
226
226
  collection_home_page_views: Aufrufe der Sammlungs-Startseite
@@ -239,7 +239,7 @@ de:
239
239
  export: Export
240
240
  file_downloads_in_collection: Dateiset-Downloads in dieser Sammlung
241
241
  top_collections: Top-Kollektionen
242
- works_in_collection_views: Funktioniert in dieser Sammlungsansichten
242
+ works_in_collection_views: Arbeiten in dieser Sammlungsansichten
243
243
  date_range_form:
244
244
  date_range_heading: Datumsbereich anpassen
245
245
  end_date: Endtermin
@@ -270,7 +270,7 @@ de:
270
270
  summary: Zusammenfassung
271
271
  title: Werksbericht
272
272
  views: Ansichten
273
- works: funktioniert
273
+ works: Arbeiten
274
274
  monthly_summary:
275
275
  file_downloads: Datei-Downloads
276
276
  monthly_subtitle: Monat für Monat Status für die letzten 12 Monate bis
@@ -285,7 +285,7 @@ de:
285
285
  summary: Zusammenfassung
286
286
  title: Arbeitsbericht
287
287
  view_work_btn: Arbeit ansehen
288
- visibility: Sichtweite
288
+ visibility: Sichtbarkeit
289
289
  work_type: Arbeitstyp
290
290
  summary:
291
291
  all_time: Alle Zeit
@@ -310,7 +310,7 @@ de:
310
310
  work_title: Arbeitstitel
311
311
  work_views: Arbeitsseitenaufrufe
312
312
  work_counts:
313
- child_works: Kind arbeitet
313
+ child_works: untergeordnete Arbeiten
314
314
  files: Dateien
315
315
  total_size: Gesamtgröße
316
316
  work_files:
@@ -408,7 +408,7 @@ de:
408
408
  collections_report: Sammlungsbericht
409
409
  configuration: Konfiguration
410
410
  content_blocks: Inhaltsblöcke
411
- dashboard: Armaturenbrett
411
+ dashboard: Dashboard
412
412
  delete_all: Alles löschen
413
413
  notifications: Benachrichtigungen
414
414
  pages: Seiten
@@ -557,7 +557,7 @@ de:
557
557
  actions: Aktion
558
558
  title: Sammlungstitel
559
559
  form_permission:
560
- visibility: Sichtbarkeit <small> Wer sollte diesen Inhalt anzeigen oder herunterladen können? </ Small>
560
+ visibility: Sichtbarkeit <small> Wer sollte diesen Inhalt anzeigen oder herunterladen können? </small>
561
561
  form_permission_under_embargo:
562
562
  help_html: "<strong>Diese Arbeit ist unter Embargo.</strong> Hier können Sie die Einstellungen des Embargos ändern, oder Sie können den %{edit_link} besuchen, um ihn zu deaktivieren."
563
563
  legend_html: Sichtbarkeit <small>Wer sollte in der Lage sein, diesen Inhalt anzusehen oder herunterzuladen?</small>
@@ -596,6 +596,7 @@ de:
596
596
  legend_html: Miniaturansicht
597
597
  form_visibility_component:
598
598
  visibility: Sichtbarkeit
599
+ subtitle_html: <small>Wer sollte diesen Inhalt anzeigen oder herunterladen können?</small>
599
600
  inspect_work:
600
601
  back_to: Zurück zu
601
602
  entity_id: Mandanten-ID
@@ -976,7 +977,7 @@ de:
976
977
  remove_from_collection: Aus der Sammlung entfernen
977
978
  select_an_action: Wählen Sie eine Aktion aus
978
979
  transfer_ownership_of_work: Übertragen Sie das Eigentum an der Arbeit
979
- works: Funktioniert
980
+ works: Arbeiten
980
981
  create_work: Arbeiten erstellen
981
982
  current_proxies: Aktuelle Vertreter
982
983
  delete_notification: Benachrichtigung löschen
@@ -1106,7 +1107,7 @@ de:
1106
1107
  objects: Objekte
1107
1108
  subtitle: Die letzten 90 Tage
1108
1109
  title: Repository-Wachstum
1109
- works: Funktioniert
1110
+ works: Arbeiten
1110
1111
  repository_objects:
1111
1112
  status: Aktueller Status
1112
1113
  subtitle: Aktueller Status
@@ -1157,7 +1158,7 @@ de:
1157
1158
  user_notifications: Benutzerbenachrichtigungen
1158
1159
  view_files: Dateien ansehen
1159
1160
  visibility_graph:
1160
- visibility: Sichtweite
1161
+ visibility: Sichtbarkeit
1161
1162
  work_type_graph:
1162
1163
  count: Zählen
1163
1164
  title: Arbeitstypen
@@ -1408,10 +1409,10 @@ de:
1408
1409
  you_manage: "<strong> %{total_count} Sammlungen </ strong>, die Sie im Repository verwalten können"
1409
1410
  you_own: "<strong> %{total_count} Sammlungen </ strong>, die Sie im Repository besitzen"
1410
1411
  works:
1411
- in_repo: "<strong> %{total_count} funktioniert </ strong> im Repository"
1412
+ in_repo: "<strong> %{total_count} Arbeiten </ strong> im Repository"
1412
1413
  works_listing: Auflistung der Arbeiten
1413
- you_manage: "<strong> %{total_count} funktioniert </ strong>, das Sie im Repository verwalten können"
1414
- you_own: "<strong> %{total_count} funktioniert </ strong>, das Sie im Repository besitzen"
1414
+ you_manage: "<strong> %{total_count} Arbeiten </ strong>, das Sie im Repository verwalten können"
1415
+ you_own: "<strong> %{total_count} Arbeiten </ strong>, das Sie im Repository besitzen"
1415
1416
  sort_and_per_page:
1416
1417
  number_of_results_to_display_per_page: Anzahl der anzuzeigenden Ergebnisse pro Seite
1417
1418
  nav_safety:
@@ -588,6 +588,7 @@ en:
588
588
  legend_html: Thumbnail
589
589
  form_visibility_component:
590
590
  visibility: Visibility
591
+ subtitle_html: <small>Who should be able to view or download this content?</small>
591
592
  inspect_work:
592
593
  back_to: Back to
593
594
  entity_id: Entity ID
@@ -1687,6 +1688,8 @@ en:
1687
1688
  note_html: Keep to myself with option to share.
1688
1689
  text: Private
1689
1690
  restricted_title_attr: Change the visibility of this resource
1691
+ unknown:
1692
+ text: Unknown
1690
1693
  work_button_row:
1691
1694
  attach_child: Attach Child
1692
1695
  workflow:
@@ -601,6 +601,7 @@ es:
601
601
  legend_html: Miniatura
602
602
  form_visibility_component:
603
603
  visibility: La visibilidad
604
+ subtitle_html: <small>¿Quién debería poder ver o descargar este contenido?</small>
604
605
  inspect_work:
605
606
  back_to: De regreso
606
607
  entity_id: ID de entidad
@@ -563,7 +563,7 @@ fr:
563
563
  actions: action
564
564
  title: Titre de la collection
565
565
  form_permission:
566
- visibility: Visibilité <small> Qui devrait être en mesure d’afficher ou de télécharger ce contenu? </ Small>
566
+ visibility: Visibilité <small> Qui devrait être en mesure d’afficher ou de télécharger ce contenu? </small>
567
567
  form_permission_under_embargo:
568
568
  help_html: "<strong>Ce travail est sous embargo.</strong> Vous pouvez modifier les paramètres de l'embargo ici, ou vous pouvez visiter le %{edit_link} pour le désactiver."
569
569
  legend_html: Visibilité <small>Qui devrait pouvoir afficher ou télécharger ce contenu?</small>
@@ -602,6 +602,7 @@ fr:
602
602
  legend_html: La vignette
603
603
  form_visibility_component:
604
604
  visibility: Visibilité
605
+ subtitle_html: <small>Qui devrait être en mesure d’afficher ou de télécharger ce contenu?</small>
605
606
  inspect_work:
606
607
  back_to: Retour à
607
608
  entity_id: ID d'entité
@@ -601,6 +601,7 @@ it:
601
601
  legend_html: Thumbnail
602
602
  form_visibility_component:
603
603
  visibility: Visibilità
604
+ subtitle_html: <small>Chi dovrebbe essere in grado di visualizzare o scaricare questo contenuto?</small>
604
605
  inspect_work:
605
606
  back_to: Torna a
606
607
  entity_id: ID entità
@@ -596,6 +596,7 @@ pt-BR:
596
596
  legend_html: Miniatura
597
597
  form_visibility_component:
598
598
  visibility: Visibilidade
599
+ subtitle_html: <small>Quem deve conseguir visualizar ou baixar este conteúdo?</small>
599
600
  inspect_work:
600
601
  back_to: De volta a
601
602
  entity_id: ID da entidade
@@ -599,6 +599,7 @@ zh:
599
599
  legend_html: 缩略图
600
600
  form_visibility_component:
601
601
  visibility: 可见性
602
+ subtitle_html: <small>谁应该能够查看或下载此内容?</ small>
602
603
  inspect_work:
603
604
  back_to: 回到
604
605
  entity_id: 实体ID
@@ -0,0 +1,130 @@
1
+ # This is the metadata used for `Hyrax::FileSet`s.` It is similar to
2
+ # `basic_metadata.yaml`, but not exactly the same.
3
+ #
4
+ # Terms which are already present in `core_metadata.yaml` are not repeated here.
5
+ attributes:
6
+ # Required attributes:
7
+ creator:
8
+ type: string
9
+ multiple: true
10
+ form:
11
+ required: true
12
+ primary: true
13
+ index_keys:
14
+ - "creator_tesim"
15
+ license:
16
+ type: string
17
+ multiple: true
18
+ form:
19
+ required: true
20
+ primary: true
21
+
22
+ # Other attributes:
23
+ abstract:
24
+ type: string
25
+ multiple: true
26
+ # form:
27
+ # primary: false
28
+ # missing: access_right
29
+ # missing: alternative_title
30
+ based_near:
31
+ type: string
32
+ multiple: true
33
+ form:
34
+ primary: false
35
+ index_keys:
36
+ - "based_near_sim"
37
+ - "based_near_tesim"
38
+ # missing: bibliograpic_citation
39
+ contributor:
40
+ type: string
41
+ multiple: true
42
+ form:
43
+ primary: false
44
+ # required: creator
45
+ date_created:
46
+ type: date_time
47
+ multiple: true
48
+ form:
49
+ primary: false
50
+ index_keys:
51
+ - "date_created_tesim"
52
+ description:
53
+ type: string
54
+ multiple: true
55
+ form:
56
+ primary: false
57
+ index_keys:
58
+ - "description_tesim"
59
+ identifier:
60
+ type: string
61
+ multiple: true
62
+ form:
63
+ primary: false
64
+ # missing: import_url
65
+ keyword:
66
+ type: string
67
+ multiple: true
68
+ form:
69
+ primary: false
70
+ index_keys:
71
+ - "keyword_sim"
72
+ - "keyword_tesim"
73
+ # missing: publisher
74
+ label:
75
+ type: string
76
+ # form:
77
+ # primary: false
78
+ language:
79
+ type: string
80
+ multiple: true
81
+ form:
82
+ primary: false
83
+ # required: license
84
+ publisher:
85
+ type: string
86
+ multiple: true
87
+ form:
88
+ primary: false
89
+ related_url:
90
+ type: string
91
+ multiple: true
92
+ form:
93
+ primary: false
94
+ index_keys:
95
+ - "related_url_tesim"
96
+ relative_path:
97
+ type: string
98
+ resource_type:
99
+ type: string
100
+ multiple: true
101
+ # form:
102
+ # primary: false
103
+ index_keys:
104
+ - "resource_type_sim"
105
+ - "resource_type_tesim"
106
+ rights_notes:
107
+ type: string
108
+ multiple: true
109
+ # form:
110
+ # primary: false
111
+ rights_statement:
112
+ type: string
113
+ multiple: true
114
+ # form:
115
+ # primary: true
116
+ index_keys:
117
+ - "rights_statement_tesim"
118
+ source:
119
+ type: string
120
+ multiple: true
121
+ # form:
122
+ # primary: false
123
+ subject:
124
+ type: string
125
+ multiple: true
126
+ form:
127
+ primary: false
128
+ index_keys:
129
+ - "subject_sim"
130
+ - "subject_tesim"
data/docker-compose.yml CHANGED
@@ -74,6 +74,7 @@ services:
74
74
  user: root
75
75
  env_file:
76
76
  - .env
77
+ - .dassie/.env
77
78
  command: sh -l -c 'bundle && db-migrate-seed.sh'
78
79
  depends_on:
79
80
  - postgres
@@ -109,7 +109,7 @@ Hyrax requires Rails 5. We recommend the latest Rails 5.2 release.
109
109
 
110
110
  ```
111
111
  # If you don't already have Rails at your disposal...
112
- gem install rails -v 5.2.6
112
+ gem install rails -v 5.2.8.1
113
113
  ```
114
114
 
115
115
  ### JavaScript runtime
@@ -125,7 +125,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
125
125
  Generate a new Rails application using the template.
126
126
 
127
127
  ```
128
- rails _5.2.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v3.4.1/template.rb
128
+ rails _5.2.8.1_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v3.5.0/template.rb
129
129
  ```
130
130
 
131
131
  Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including: