hyrax 3.4.1 → 3.5.0
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 +26 -17
- data/.dassie/.env +1 -1
- data/.dassie/Gemfile +1 -1
- data/.dassie/app/forms/collection_resource_form.rb +8 -0
- data/.dassie/app/indexers/collection_resource_indexer.rb +8 -0
- data/.dassie/app/models/collection_resource.rb +35 -0
- data/.dassie/config/initializers/file_services.rb +4 -0
- data/.dassie/config/initializers/hyrax.rb +2 -1
- data/.dassie/config/metadata/collection_resource.yaml +23 -0
- data/.dassie/db/seeds.rb +2 -0
- data/.dassie/spec/forms/collection_resource_form_spec.rb +13 -0
- data/.dassie/spec/indexers/collection_resource_indexer_spec.rb +14 -0
- data/.dassie/spec/models/collection_resource_spec.rb +13 -0
- data/.regen +1 -1
- data/.rubocop.yml +1 -1
- data/.rubocop_fixme.yml +19 -2
- data/CONTAINERS.md +18 -13
- data/Dockerfile +2 -2
- data/app/actors/hyrax/actors/collections_membership_actor.rb +1 -1
- data/app/actors/hyrax/actors/embargo_actor.rb +11 -4
- data/app/actors/hyrax/actors/lease_actor.rb +11 -4
- data/app/assets/javascripts/hyrax/app.js.erb +1 -1
- data/app/assets/javascripts/hyrax/collections_v2.es6 +13 -0
- data/app/assets/javascripts/hyrax/permissions/control.es6 +8 -1
- data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +1 -3
- data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +11 -2
- data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +11 -2
- data/app/controllers/concerns/hyrax/manages_embargoes.rb +13 -1
- data/app/controllers/hyrax/dashboard/collections_controller.rb +159 -76
- data/app/controllers/hyrax/downloads_controller.rb +16 -1
- data/app/controllers/hyrax/file_sets_controller.rb +10 -1
- data/app/controllers/hyrax/permissions_controller.rb +1 -1
- data/app/controllers/hyrax/single_use_links_viewer_controller.rb +1 -1
- data/app/controllers/hyrax/transfers_controller.rb +0 -2
- data/app/controllers/hyrax/workflow_actions_controller.rb +3 -2
- data/app/forms/hyrax/forms/collection_form.rb +1 -1
- data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +2 -0
- data/app/forms/hyrax/forms/embargo.rb +13 -0
- data/app/forms/hyrax/forms/file_set_edit_form.rb +1 -1
- data/app/forms/hyrax/forms/file_set_form.rb +8 -35
- data/app/forms/hyrax/forms/lease.rb +13 -0
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +29 -2
- data/app/forms/hyrax/forms/pcdm_object_form.rb +46 -0
- data/app/forms/hyrax/forms/resource_form.rb +39 -21
- data/app/forms/hyrax/forms/widgets/admin_set_visibility.rb +1 -1
- data/app/forms/hyrax/forms/work_embargo_form.rb +35 -0
- data/app/forms/hyrax/forms/work_lease_form.rb +35 -0
- data/app/helpers/hyrax/embargo_helper.rb +11 -0
- data/app/helpers/hyrax/lease_helper.rb +11 -0
- data/app/indexers/hyrax/pcdm_collection_indexer.rb +1 -1
- data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +2 -8
- data/app/jobs/characterize_job.rb +5 -1
- data/app/jobs/content_event_job.rb +1 -1
- data/app/jobs/import_url_job.rb +4 -6
- data/app/jobs/valkyrie_ingest_job.rb +15 -77
- data/app/models/admin_set.rb +8 -0
- data/app/models/concerns/hyrax/collection_behavior.rb +3 -2
- data/app/models/concerns/hyrax/collection_nesting.rb +10 -1
- data/app/models/concerns/hyrax/file_set_behavior.rb +1 -0
- data/app/models/concerns/hyrax/user.rb +11 -0
- data/app/models/concerns/hyrax/work_behavior.rb +3 -2
- data/app/models/featured_work_list.rb +0 -1
- data/app/models/hyrax/embargo.rb +1 -1
- data/app/models/hyrax/file_metadata.rb +32 -2
- data/app/models/hyrax/file_set.rb +4 -6
- data/app/models/hyrax/group.rb +19 -0
- data/app/models/hyrax/lease.rb +1 -1
- data/app/models/hyrax/pcdm_collection.rb +0 -1
- data/app/models/job_io_wrapper.rb +1 -1
- data/app/models/proxy_deposit_request.rb +1 -1
- data/app/presenters/hyrax/member_presenter_factory.rb +2 -4
- data/app/presenters/hyrax/permission_badge.rb +3 -2
- data/app/presenters/hyrax/version_list_presenter.rb +6 -1
- data/app/presenters/hyrax/work_show_presenter.rb +3 -3
- data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +13 -5
- data/app/services/hyrax/access_control_list.rb +7 -6
- data/app/services/hyrax/adapters/nesting_index_adapter.rb +3 -3
- data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +3 -5
- data/app/services/hyrax/collections/collection_member_service.rb +3 -5
- data/app/services/hyrax/collections/nested_collection_query_service.rb +1 -1
- data/app/services/hyrax/edit_permissions_service.rb +21 -3
- data/app/services/hyrax/embargo_manager.rb +9 -0
- data/app/services/hyrax/file_set_file_service.rb +55 -0
- data/app/services/hyrax/lease_manager.rb +9 -0
- data/app/services/hyrax/listeners/file_metadata_listener.rb +11 -0
- data/app/services/hyrax/listeners/member_cleanup_listener.rb +14 -18
- data/app/services/hyrax/multiple_membership_checker.rb +2 -0
- data/app/services/hyrax/user_stat_importer.rb +2 -0
- data/app/services/hyrax/valkyrie_persist_derivatives.rb +50 -0
- data/app/services/hyrax/valkyrie_upload.rb +94 -0
- data/app/services/hyrax/versioning_service.rb +77 -9
- data/app/services/hyrax/visibility_propagator.rb +5 -5
- data/app/services/hyrax/work_resource_query_service.rb +45 -0
- data/app/services/hyrax/workflow/workflow_importer.rb +7 -9
- data/app/services/hyrax/workflow/workflow_schema.rb +3 -5
- data/app/strategies/hyrax/strategies/yaml_strategy.rb +4 -6
- data/app/uploaders/hyrax/uploaded_file_uploader.rb +4 -4
- data/app/validators/hyrax/collection_membership_validator.rb +16 -15
- data/app/views/catalog/_index_header_list_default.html.erb +8 -1
- data/app/views/catalog/_thumbnail_list_default.html.erb +8 -3
- data/app/views/collections/edit_fields/_based_near.html.erb +7 -7
- data/app/views/hyrax/base/_form_progress.html.erb +1 -1
- data/app/views/hyrax/base/_form_visibility_component.html.erb +5 -1
- data/app/views/hyrax/dashboard/collections/_form.html.erb +3 -2
- data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +1 -0
- data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +1 -1
- data/app/views/hyrax/embargoes/edit.html.erb +3 -3
- data/app/views/hyrax/file_sets/_permission.html.erb +1 -1
- data/app/views/hyrax/file_sets/_permission_form.html.erb +1 -6
- data/app/views/hyrax/file_sets/edit.html.erb +2 -2
- data/app/views/hyrax/leases/edit.html.erb +3 -3
- data/app/views/hyrax/my/works/_tabs.html.erb +6 -1
- data/app/views/hyrax/transfers/new.html.erb +1 -1
- data/chart/hyrax/Chart.yaml +10 -6
- data/chart/hyrax/templates/_helpers.tpl +4 -0
- data/chart/hyrax/templates/cron-embargo.yaml +5 -0
- data/chart/hyrax/templates/cron-lease.yaml +5 -0
- data/chart/hyrax/templates/deployment-worker.yaml +11 -0
- data/chart/hyrax/templates/ingress.yaml +7 -6
- data/chart/hyrax/values.yaml +152 -0
- data/config/features.rb +48 -50
- data/config/initializers/{valkryrie_storage.rb → storage_adapter_initializer.rb} +5 -0
- data/config/locales/hyrax.de.yml +14 -13
- data/config/locales/hyrax.en.yml +3 -0
- data/config/locales/hyrax.es.yml +1 -0
- data/config/locales/hyrax.fr.yml +2 -1
- data/config/locales/hyrax.it.yml +1 -0
- data/config/locales/hyrax.pt-BR.yml +1 -0
- data/config/locales/hyrax.zh.yml +1 -0
- data/config/metadata/file_set_metadata.yaml +130 -0
- data/docker-compose.yml +1 -0
- data/documentation/developing-your-hyrax-based-app.md +2 -2
- data/documentation/legacyREADME.md +3 -3
- data/hyrax.gemspec +7 -3
- data/lib/generators/hyrax/collection_resource/USAGE +20 -0
- data/lib/generators/hyrax/collection_resource/collection_resource_generator.rb +133 -0
- data/lib/generators/hyrax/collection_resource/templates/collection.rb.erb +34 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_form.rb.erb +7 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_form_spec.rb.erb +13 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_indexer.rb.erb +7 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_indexer_spec.rb.erb +13 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_metadata.yaml +22 -0
- data/lib/generators/hyrax/collection_resource/templates/collection_spec.rb.erb +12 -0
- data/lib/generators/hyrax/install_generator.rb +9 -0
- data/lib/generators/hyrax/templates/config/locales/hyrax.de.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.fr.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.it.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.zh.yml +1 -1
- data/lib/hyrax/active_fedora_dummy_model.rb +13 -0
- data/lib/hyrax/configuration.rb +21 -2
- data/lib/hyrax/errors.rb +2 -0
- data/lib/hyrax/publisher.rb +4 -0
- data/lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb +6 -0
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +0 -1
- data/lib/hyrax/specs/shared_specs/indexers.rb +5 -0
- data/lib/hyrax/transactions/collection_update.rb +2 -0
- data/lib/hyrax/transactions/container.rb +10 -0
- data/lib/hyrax/transactions/steps/save_collection_banner.rb +59 -0
- data/lib/hyrax/transactions/steps/save_collection_logo.rb +109 -0
- data/lib/hyrax/version.rb +1 -1
- data/lib/wings/active_fedora_converter/file_metadata_node.rb +48 -0
- data/lib/wings/active_fedora_converter/instance_builder.rb +68 -0
- data/lib/wings/active_fedora_converter.rb +3 -3
- data/lib/wings/services/custom_queries/find_file_metadata.rb +19 -8
- data/lib/wings/valkyrie/query_service.rb +4 -6
- data/lib/wings/valkyrie/storage.rb +6 -2
- data/template.rb +1 -1
- metadata +99 -13
- 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
|
-
{{- $
|
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: {{
|
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: {{ $
|
41
|
+
serviceName: {{ $svcFullName }}
|
41
42
|
servicePort: {{ $svcPort }}
|
42
43
|
{{- else }}
|
43
44
|
service:
|
44
|
-
name: {{ $
|
45
|
+
name: {{ $svcFullName }}
|
45
46
|
port:
|
46
47
|
number: {{ $svcPort }}
|
47
48
|
{{- end }}
|
48
49
|
{{- end }}
|
49
50
|
{{- end }}
|
50
|
-
|
51
|
+
{{- end }}
|
data/chart/hyrax/values.yaml
CHANGED
@@ -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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
data/config/locales/hyrax.de.yml
CHANGED
@@ -220,7 +220,7 @@ de:
|
|
220
220
|
summary: Zusammenfassung
|
221
221
|
title: Sammlungsbericht
|
222
222
|
view_collection_btn: Kollektion ansehen
|
223
|
-
visibility:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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? </
|
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:
|
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:
|
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:
|
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}
|
1412
|
+
in_repo: "<strong> %{total_count} Arbeiten </ strong> im Repository"
|
1412
1413
|
works_listing: Auflistung der Arbeiten
|
1413
|
-
you_manage: "<strong> %{total_count}
|
1414
|
-
you_own: "<strong> %{total_count}
|
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:
|
data/config/locales/hyrax.en.yml
CHANGED
@@ -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:
|
data/config/locales/hyrax.es.yml
CHANGED
data/config/locales/hyrax.fr.yml
CHANGED
@@ -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? </
|
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é
|
data/config/locales/hyrax.it.yml
CHANGED
@@ -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
|
data/config/locales/hyrax.zh.yml
CHANGED
@@ -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
@@ -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.
|
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.
|
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:
|