hyrax 5.0.0.rc1 → 5.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +11 -4
  3. data/.dassie/.env +5 -1
  4. data/.dassie/Gemfile +27 -42
  5. data/.dassie/Gemfile.dassie +2 -0
  6. data/.dassie/app/assets/config/manifest.js +2 -0
  7. data/.dassie/app/assets/stylesheets/hyrax.scss +1 -0
  8. data/.dassie/config/initializers/riiif.rb +5 -11
  9. data/.dassie/config/metadata/collection_resource.yaml +3 -0
  10. data/.dassie/config/metadata/monograph.yaml +8 -0
  11. data/.dassie/config/metadata/sample_metadata.yaml +1 -0
  12. data/.dassie/config/redis.yml +2 -0
  13. data/.dassie/db/migrate/20230725222727_create_hyrax_counter_metrics.hyrax.rb +14 -0
  14. data/.dassie/db/migrate/20230803165135_change_work_id_to_string.rb +5 -0
  15. data/.dassie/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.hyrax.rb +8 -0
  16. data/.dassie/db/migrate/20230821153635_add_fields_to_counter_metric.rb +8 -0
  17. data/.dassie/db/schema.rb +20 -1
  18. data/.dockerignore +2 -1
  19. data/.gitignore +1 -1
  20. data/.koppie/.env +10 -4
  21. data/.koppie/Gemfile +10 -12
  22. data/.koppie/Gemfile.koppie +2 -0
  23. data/.koppie/Rakefile +0 -2
  24. data/.koppie/app/forms/collection_resource_form.rb +0 -1
  25. data/.koppie/app/indexers/collection_resource_indexer.rb +0 -1
  26. data/.koppie/app/models/ability.rb +1 -5
  27. data/.koppie/app/models/collection_resource.rb +0 -1
  28. data/.koppie/app/models/user.rb +0 -2
  29. data/.koppie/config/application.rb +2 -1
  30. data/.koppie/config/arkivo.yml +6 -0
  31. data/.koppie/config/blacklight.yml +2 -2
  32. data/.koppie/config/features.yml +2 -0
  33. data/.koppie/config/initializers/1_valkyrie.rb +29 -6
  34. data/.koppie/config/initializers/arkivo_constraint.rb +12 -0
  35. data/.koppie/config/initializers/hyrax.rb +2 -2
  36. data/.koppie/config/initializers/riiif.rb +6 -11
  37. data/.koppie/config/metadata/collection_resource.yaml +177 -1
  38. data/.koppie/config/metadata/generic_work.yaml +2 -0
  39. data/.koppie/config/metadata/monograph.yaml +10 -0
  40. data/.koppie/config/role_map.yml +3 -25
  41. data/.koppie/config/routes.rb +1 -2
  42. data/.koppie/config/solr.yml +1 -1
  43. data/.koppie/config/valkyrie_index.yml +4 -10
  44. data/.koppie/config/zotero.yml +6 -0
  45. data/.koppie/db/migrate/20230725222727_create_hyrax_counter_metrics.hyrax.rb +14 -0
  46. data/.koppie/db/migrate/20230803165135_change_work_id_to_string.rb +5 -0
  47. data/.koppie/db/schema.rb +12 -1
  48. data/CONTAINERS.md +1 -3
  49. data/Dockerfile +11 -2
  50. data/Gemfile +4 -21
  51. data/Gemfile.dassie +2 -0
  52. data/Gemfile.koppie +2 -0
  53. data/README.md +0 -1
  54. data/Rakefile +0 -11
  55. data/app/actors/hyrax/actors/embargo_actor.rb +3 -6
  56. data/app/assets/javascripts/hyrax/batch_select_all.js +1 -1
  57. data/app/assets/javascripts/hyrax/file_manager/member.es6 +1 -1
  58. data/app/assets/stylesheets/hyrax/_file-listing.scss +0 -2
  59. data/app/assets/stylesheets/hyrax/_work-show.scss +19 -3
  60. data/app/assets/stylesheets/hyrax/sidebar.scss +23 -0
  61. data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +7 -1
  62. data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +7 -1
  63. data/app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb +14 -9
  64. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +50 -9
  65. data/app/controllers/hyrax/api/items_controller.rb +2 -3
  66. data/app/controllers/hyrax/batch_edits_controller.rb +6 -6
  67. data/app/controllers/hyrax/batch_uploads_controller.rb +5 -1
  68. data/app/controllers/hyrax/dashboard/collections_controller.rb +4 -1
  69. data/app/controllers/hyrax/file_sets_controller.rb +49 -6
  70. data/app/controllers/hyrax/my/collections_controller.rb +2 -0
  71. data/app/controllers/hyrax/single_use_links_viewer_controller.rb +16 -2
  72. data/app/forms/concerns/hyrax/basic_metadata_form_fields_behavior.rb +38 -0
  73. data/app/forms/hyrax/forms/collection_form.rb +0 -15
  74. data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +0 -34
  75. data/app/forms/hyrax/forms/file_set_form.rb +2 -2
  76. data/app/forms/hyrax/forms/pcdm_object_form.rb +21 -0
  77. data/app/forms/hyrax/forms/permission_template_form.rb +0 -7
  78. data/app/forms/hyrax/forms/resource_batch_edit_form.rb +49 -21
  79. data/app/forms/hyrax/forms/resource_form.rb +21 -34
  80. data/app/helpers/hyrax/dashboard_helper_behavior.rb +13 -0
  81. data/app/indexers/hyrax/location_indexer.rb +29 -0
  82. data/app/indexers/hyrax/pcdm_collection_indexer.rb +0 -8
  83. data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +1 -6
  84. data/app/indexers/hyrax/valkyrie_work_indexer.rb +1 -0
  85. data/app/inputs/controlled_vocabulary_input.rb +1 -1
  86. data/app/jobs/characterize_job.rb +1 -1
  87. data/app/jobs/create_work_job.rb +36 -4
  88. data/app/jobs/valkyrie_characterization_job.rb +9 -0
  89. data/app/jobs/valkyrie_ingest_job.rb +1 -3
  90. data/app/models/collection_branding_info.rb +2 -9
  91. data/app/models/concerns/hyrax/ability.rb +2 -1
  92. data/app/models/concerns/hyrax/collection_behavior.rb +4 -12
  93. data/app/models/concerns/hyrax/riiif_file.rb +30 -0
  94. data/app/models/concerns/hyrax/solr_document_behavior.rb +19 -2
  95. data/app/models/hyrax/counter_metric.rb +7 -0
  96. data/app/models/hyrax/file_metadata.rb +3 -2
  97. data/app/models/hyrax/file_set.rb +75 -22
  98. data/app/models/hyrax/orcid_validator.rb +0 -6
  99. data/app/models/hyrax/work.rb +2 -5
  100. data/app/presenters/hyrax/collection_presenter.rb +0 -17
  101. data/app/presenters/hyrax/embargo_presenter.rb +4 -0
  102. data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +6 -4
  103. data/app/presenters/hyrax/version_list_presenter.rb +19 -10
  104. data/app/presenters/hyrax/version_presenter.rb +19 -4
  105. data/app/services/hyrax/admin_set_create_service.rb +0 -17
  106. data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +5 -0
  107. data/app/services/hyrax/collections/collection_member_service.rb +1 -1
  108. data/app/services/hyrax/embargo_manager.rb +45 -18
  109. data/app/services/hyrax/embargo_service.rb +12 -10
  110. data/app/services/hyrax/file_set_derivatives_service.rb +11 -11
  111. data/app/services/hyrax/fixity_check_failure_service.rb +1 -1
  112. data/app/services/hyrax/identifier/dispatcher.rb +9 -2
  113. data/app/services/hyrax/listeners/file_metadata_listener.rb +14 -6
  114. data/app/services/hyrax/listeners/member_cleanup_listener.rb +2 -28
  115. data/app/services/hyrax/listeners/metadata_index_listener.rb +11 -0
  116. data/app/services/hyrax/lock_manager.rb +1 -2
  117. data/app/services/hyrax/riiif_file_resolver.rb +50 -0
  118. data/app/services/hyrax/simple_schema_loader.rb +31 -0
  119. data/app/services/hyrax/valkyrie_persist_derivatives.rb +1 -1
  120. data/app/services/hyrax/valkyrie_upload.rb +12 -26
  121. data/app/services/hyrax/versioning_service.rb +29 -15
  122. data/app/services/hyrax/work_uploads_handler.rb +1 -1
  123. data/app/validators/hyrax/collection_membership_validator.rb +1 -1
  124. data/app/views/catalog/_search_form.html.erb +1 -1
  125. data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
  126. data/app/views/hyrax/base/_file_manager_resource_form.html.erb +1 -1
  127. data/app/views/hyrax/base/_form_visibility_component.html.erb +4 -4
  128. data/app/views/hyrax/base/_show_actions.html.erb +1 -1
  129. data/app/views/hyrax/base/_workflow_actions.html.erb +25 -23
  130. data/app/views/hyrax/base/show.json.jbuilder +2 -1
  131. data/app/views/hyrax/collections/_show_document_list_row.html.erb +1 -1
  132. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +1 -1
  133. data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +1 -1
  134. data/app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb +3 -3
  135. data/app/views/hyrax/file_sets/_versioning.html.erb +5 -5
  136. data/app/views/hyrax/file_sets/media_display/_audio.html.erb +4 -4
  137. data/app/views/hyrax/file_sets/media_display/_default.html.erb +1 -1
  138. data/app/views/hyrax/file_sets/media_display/_video.html.erb +2 -2
  139. data/app/views/hyrax/my/_search_form.html.erb +1 -1
  140. data/app/views/hyrax/notifications/_notifications.html.erb +1 -1
  141. data/app/views/hyrax/users/_vitals.html.erb +1 -1
  142. data/bin/dev-entrypoint.sh +13 -0
  143. data/chart/hyrax/Chart.yaml +3 -3
  144. data/chart/hyrax/templates/_helpers.tpl +8 -0
  145. data/chart/hyrax/templates/configmap-env.yaml +1 -1
  146. data/chart/hyrax/values.yaml +3 -0
  147. data/config/initializers/file_length_patch.rb +10 -0
  148. data/config/metadata/basic_metadata.yaml +52 -0
  149. data/config/metadata/core_metadata.yaml +4 -0
  150. data/config/metadata/file_set_metadata.yaml +19 -0
  151. data/config/metadata/hyrax_internal_metadata.yaml +57 -0
  152. data/docker-compose-koppie.yml +23 -22
  153. data/docker-compose-sirenia.yml +202 -0
  154. data/docker-compose.yml +27 -24
  155. data/documentation/developing-your-hyrax-based-app.md +2 -2
  156. data/hyrax.gemspec +10 -11
  157. data/karma.conf.js +1 -1
  158. data/lib/generators/hyrax/collection_resource/templates/collection_metadata.yaml +2 -0
  159. data/lib/generators/hyrax/templates/config/initializers/riiif.rb +13 -19
  160. data/lib/generators/hyrax/templates/db/migrate/20230725222727_create_hyrax_counter_metrics.rb.erb +14 -0
  161. data/lib/generators/hyrax/templates/db/migrate/20230803165135_change_work_id_to_string.rb.erb +5 -0
  162. data/lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb +8 -0
  163. data/lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb +8 -0
  164. data/lib/generators/hyrax/templates/db/seeds.rb +1 -1
  165. data/lib/generators/hyrax/work_resource/templates/form.rb.erb +1 -1
  166. data/lib/generators/hyrax/work_resource/templates/metadata.yaml +2 -0
  167. data/lib/hyrax/configuration.rb +147 -49
  168. data/lib/hyrax/controlled_vocabularies/location.rb +7 -1
  169. data/lib/hyrax/engine.rb +0 -1
  170. data/lib/hyrax/form_fields.rb +6 -0
  171. data/lib/hyrax/publisher.rb +4 -0
  172. data/lib/hyrax/redis_event_store.rb +7 -8
  173. data/lib/hyrax/resource_name.rb +4 -0
  174. data/lib/hyrax/specs/capybara.rb +25 -42
  175. data/lib/hyrax/specs/shared_specs/hydra_works.rb +34 -7
  176. data/lib/hyrax/specs/shared_specs/indexers.rb +24 -6
  177. data/lib/hyrax/transactions/collection_destroy.rb +3 -2
  178. data/lib/hyrax/transactions/container.rb +42 -0
  179. data/lib/hyrax/transactions/file_metadata_destroy.rb +20 -0
  180. data/lib/hyrax/transactions/file_set_destroy.rb +3 -1
  181. data/lib/hyrax/transactions/file_set_update.rb +21 -0
  182. data/lib/hyrax/transactions/steps/add_to_parent.rb +1 -1
  183. data/lib/hyrax/transactions/steps/delete_all_file_metadata.rb +46 -0
  184. data/lib/hyrax/transactions/steps/delete_all_file_sets.rb +46 -0
  185. data/lib/hyrax/transactions/steps/file_metadata_delete.rb +40 -0
  186. data/lib/hyrax/transactions/steps/remove_from_membership.rb +45 -0
  187. data/lib/hyrax/transactions/work_destroy.rb +3 -2
  188. data/lib/hyrax/version.rb +1 -1
  189. data/lib/tasks/collection_type_global_id.rake +9 -4
  190. data/lib/tasks/embargo_lease.rake +1 -0
  191. data/lib/valkyrie/indexing/solr/indexing_adapter.rb +2 -0
  192. data/lib/wings/active_fedora_converter.rb +6 -0
  193. data/lib/wings/attribute_transformer.rb +24 -17
  194. data/lib/wings/model_transformer.rb +0 -8
  195. data/lib/wings/orm_converter.rb +23 -18
  196. data/lib/wings/setup.rb +2 -2
  197. data/lib/wings/valkyrie/storage.rb +8 -90
  198. data/lib/wings.rb +5 -0
  199. data/tasks/hyrax_dev.rake +2 -33
  200. data/template.rb +1 -1
  201. metadata +90 -72
  202. data/.engine_cart.yml +0 -3
  203. data/app/views/hyrax/users/_user_util_links_extra.html.erb +0 -0
  204. data/lib/hyrax/specs/shared_specs/valkyrie_storage_versions.rb +0 -9
@@ -7,7 +7,7 @@
7
7
  </label>
8
8
 
9
9
  <div class="input-group mb-sm-auto col-sm-9">
10
- <%= text_field_tag :q, current_search_parameters , class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>
10
+ <%= text_field_tag :q, current_search_parameters , 'aria-label': 'Search', class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>
11
11
  <div class="input-group-append">
12
12
  <button type="submit" class="btn btn-primary" id="search-submit-header">
13
13
  <%= t('hyrax.search.button.html') %>
@@ -1,6 +1,6 @@
1
1
  <% if messages.present? %>
2
2
  <div class="table-responsive">
3
- <table class="table table-striped datatable">
3
+ <table class="table table-striped datatable" data-order='[[0, "desc"]]'>
4
4
  <thead>
5
5
  <tr>
6
6
  <th><%= t('hyrax.mailbox.date') %></th>
@@ -9,7 +9,7 @@
9
9
 
10
10
  <div class="list-group-item">
11
11
  <span class="badge dark-text"><%= number_of_works(user) %></span>
12
- <span class="fa fa-upload" aria-hidden="true"></span> <%= link_to_field('', '', t("hyrax.dashboard.stats.works"), {generic_type: "Work", depositor: user.to_s}) %>
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
15
  <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>
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ mkdir -p /app/samvera/hyrax-webapp/tmp/pids
5
+ rm -f /app/samvera/hyrax-webapp/tmp/pids/*
6
+
7
+ # Copy gems installed in the image to the dev bundle
8
+ mkdir -p /app/bundle/ruby/$RUBY_MAJOR.0
9
+ cp -Rn /usr/local/bundle/* /app/bundle/ruby/$RUBY_MAJOR.0
10
+ bundle install
11
+
12
+ # Run the command
13
+ exec "$@"
@@ -2,7 +2,7 @@ apiVersion: v2
2
2
  name: hyrax
3
3
  description: An open-source, Samvera-powered digital repository system
4
4
  type: application
5
- version: 3.3.0
5
+ version: 3.5.0
6
6
  appVersion: 3.3.0
7
7
  dependencies:
8
8
  - name: fcrepo
@@ -34,6 +34,6 @@ dependencies:
34
34
  repository: oci://registry-1.docker.io/bitnamicharts
35
35
  condition: nginx.enabled
36
36
  - name: fits
37
- version: 0.1.0
38
- repository: https://samvera-labs.github.io/fits-charts
37
+ version: 0.2.0
38
+ repository: https://samvera-labs.github.io/fits-charts
39
39
  condition: fits.enabled
@@ -147,6 +147,14 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
147
147
  {{- end }}
148
148
  {{- end -}}
149
149
 
150
+ {{- define "hyrax.postgresql.port" -}}
151
+ {{- if .Values.postgresql.enabled }}
152
+ {{- .Values.postgresql.containerPorts.postgresql | default 5432 }}
153
+ {{- else }}
154
+ {{- .Values.externalPostgresql.port | default 5432 }}
155
+ {{- end }}
156
+ {{- end -}}
157
+
150
158
  {{- define "hyrax.postgresql.url" -}}
151
159
  {{- printf "postgresql://%s:%s@%s/%s?pool=5" ( include "hyrax.postgresql.username" . ) ( include "hyrax.postgresql.password" . ) ( include "hyrax.postgresql.host" . ) ( include "hyrax.postgresql.database" . ) -}}
152
160
  {{- end -}}
@@ -14,7 +14,7 @@ data:
14
14
  CH12N_TOOL: "fits"
15
15
  {{- end }}
16
16
  DB_HOST: {{ template "hyrax.postgresql.host" . }}
17
- DB_PORT: {{ .Values.postgresql.containerPorts.postgresql | default 5432 | quote }}
17
+ DB_PORT: {{ include "hyrax.postgresql.port" . | quote }}
18
18
  DB_USERNAME: {{ template "hyrax.postgresql.database" . }}
19
19
  {{- if .Values.memcached.enabled }}
20
20
  MEMCACHED_HOST: {{ template "hyrax.memcached.fullname" . }}
@@ -119,6 +119,7 @@ externalPostgresql: {}
119
119
  # username:
120
120
  # password:
121
121
  # database:
122
+ # port:
122
123
 
123
124
  embargoRelease:
124
125
  enabled: true
@@ -265,6 +266,8 @@ postgresql:
265
266
  database: hyrax
266
267
  password: hyrax_pass
267
268
  username: hyrax
269
+ containerPorts:
270
+ postgresql: 5432
268
271
  primary:
269
272
  service:
270
273
  ports:
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Valkyrie::Storage::Fedora expects io objects to have #length
4
+ class ::File
5
+ alias length size unless respond_to? :length
6
+ end
7
+
8
+ class ::Valkyrie::StorageAdapter::StreamFile
9
+ alias length size unless respond_to? :length
10
+ end
@@ -1,19 +1,35 @@
1
+ ---
1
2
  attributes:
2
3
  abstract:
3
4
  type: string
4
5
  multiple: true
5
6
  form:
6
7
  primary: false
8
+ index_keys:
9
+ - "abstract_tesim"
10
+ predicate: http://purl.org/dc/terms/abstract
7
11
  access_right:
8
12
  type: string
9
13
  multiple: true
10
14
  form:
11
15
  primary: false
16
+ index_keys:
17
+ - "access_right_tesim"
18
+ predicate: http://purl.org/dc/terms/accessRights
12
19
  alternative_title:
13
20
  type: string
14
21
  multiple: true
15
22
  form:
16
23
  primary: false
24
+ index_keys:
25
+ - "alternative_title_tesim"
26
+ predicate: http://purl.org/dc/terms/alternative
27
+ arkivo_checksum:
28
+ type: string
29
+ multiple: false
30
+ form:
31
+ primary: false
32
+ predicate: http://scholarsphere.psu.edu/ns#arkivoChecksum
17
33
  based_near:
18
34
  type: string
19
35
  multiple: true
@@ -22,14 +38,19 @@ attributes:
22
38
  index_keys:
23
39
  - "based_near_sim"
24
40
  - "based_near_tesim"
41
+ predicate: http://xmlns.com/foaf/0.1/based_near
25
42
  bibliographic_citation:
26
43
  type: string
27
44
  multiple: true
45
+ predicate: http://purl.org/dc/terms/bibliographicCitation
28
46
  contributor:
29
47
  type: string
30
48
  multiple: true
31
49
  form:
32
50
  primary: false
51
+ index_keys:
52
+ - "contributor_tesim"
53
+ predicate: http://purl.org/dc/elements/1.1/contributor
33
54
  creator:
34
55
  type: string
35
56
  multiple: true
@@ -38,6 +59,7 @@ attributes:
38
59
  primary: true
39
60
  index_keys:
40
61
  - "creator_tesim"
62
+ predicate: http://purl.org/dc/elements/1.1/creator
41
63
  date_created:
42
64
  type: date_time
43
65
  multiple: true
@@ -45,6 +67,7 @@ attributes:
45
67
  primary: false
46
68
  index_keys:
47
69
  - "date_created_tesim"
70
+ predicate: http://purl.org/dc/terms/created
48
71
  description:
49
72
  type: string
50
73
  multiple: true
@@ -52,13 +75,18 @@ attributes:
52
75
  primary: false
53
76
  index_keys:
54
77
  - "description_tesim"
78
+ predicate: http://purl.org/dc/elements/1.1/description
55
79
  identifier:
56
80
  type: string
57
81
  multiple: true
58
82
  form:
59
83
  primary: false
84
+ index_keys:
85
+ - "identifier_tesim"
86
+ predicate: http://purl.org/dc/terms/identifier
60
87
  import_url:
61
88
  type: string
89
+ predicate: http://scholarsphere.psu.edu/ns#importUrl
62
90
  keyword:
63
91
  type: string
64
92
  multiple: true
@@ -67,27 +95,41 @@ attributes:
67
95
  - "keyword_tesim"
68
96
  form:
69
97
  primary: false
98
+ predicate: http://schema.org/keywords
70
99
  publisher:
71
100
  type: string
72
101
  multiple: true
73
102
  form:
74
103
  primary: false
104
+ index_keys:
105
+ - "publisher_tesim"
106
+ predicate: http://purl.org/dc/elements/1.1/publisher
75
107
  label:
76
108
  type: string
77
109
  form:
78
110
  primary: false
111
+ index_keys:
112
+ - "label_tesim"
113
+ predicate: info:fedora/fedora-system:def/model#downloadFilename
79
114
  language:
80
115
  type: string
81
116
  multiple: true
82
117
  form:
83
118
  primary: false
119
+ index_keys:
120
+ - "language_tesim"
121
+ predicate: http://purl.org/dc/elements/1.1/language
84
122
  license:
85
123
  type: string
86
124
  multiple: true
87
125
  form:
88
126
  primary: false
127
+ index_keys:
128
+ - "license_tesim"
129
+ predicate: http://purl.org/dc/terms/license
89
130
  relative_path:
90
131
  type: string
132
+ predicate: http://scholarsphere.psu.edu/ns#relativePath
91
133
  related_url:
92
134
  type: string
93
135
  multiple: true
@@ -95,6 +137,7 @@ attributes:
95
137
  primary: false
96
138
  index_keys:
97
139
  - "related_url_tesim"
140
+ predicate: http://www.w3.org/2000/01/rdf-schema#seeAlso
98
141
  resource_type:
99
142
  type: string
100
143
  multiple: true
@@ -103,11 +146,15 @@ attributes:
103
146
  index_keys:
104
147
  - "resource_type_sim"
105
148
  - "resource_type_tesim"
149
+ predicate: http://purl.org/dc/terms/type
106
150
  rights_notes:
107
151
  type: string
108
152
  multiple: true
109
153
  form:
110
154
  primary: false
155
+ index_keys:
156
+ - "rights_notes_tesim"
157
+ predicate: http://purl.org/dc/elements/1.1/rights
111
158
  rights_statement:
112
159
  type: string
113
160
  multiple: true
@@ -115,11 +162,15 @@ attributes:
115
162
  primary: true
116
163
  index_keys:
117
164
  - "rights_statement_tesim"
165
+ predicate: http://www.europeana.eu/schemas/edm/rights
118
166
  source:
119
167
  type: string
120
168
  multiple: true
121
169
  form:
122
170
  primary: false
171
+ index_keys:
172
+ - "source_tesim"
173
+ predicate: http://purl.org/dc/terms/source
123
174
  subject:
124
175
  type: string
125
176
  multiple: true
@@ -128,3 +179,4 @@ attributes:
128
179
  - "subject_tesim"
129
180
  form:
130
181
  primary: false
182
+ predicate: http://purl.org/dc/elements/1.1/subject
@@ -9,9 +9,13 @@ attributes:
9
9
  required: true
10
10
  primary: true
11
11
  multiple: true
12
+ predicate: http://purl.org/dc/terms/title
12
13
  date_modified:
13
14
  type: date_time
15
+ predicate: http://purl.org/dc/terms/modified
14
16
  date_uploaded:
15
17
  type: date_time
18
+ predicate: http://purl.org/dc/terms/dateSubmitted
16
19
  depositor:
17
20
  type: string
21
+ predicate: http://id.loc.gov/vocabulary/relators/dpt
@@ -12,17 +12,20 @@ attributes:
12
12
  primary: true
13
13
  index_keys:
14
14
  - "creator_tesim"
15
+ predicate: http://purl.org/dc/elements/1.1/creator
15
16
  license:
16
17
  type: string
17
18
  multiple: true
18
19
  form:
19
20
  required: false
20
21
  primary: true
22
+ predicate: http://purl.org/dc/terms/license
21
23
 
22
24
  # Other attributes:
23
25
  abstract:
24
26
  type: string
25
27
  multiple: true
28
+ predicate: http://purl.org/dc/terms/abstract
26
29
  # form:
27
30
  # primary: false
28
31
  # missing: access_right
@@ -35,12 +38,14 @@ attributes:
35
38
  index_keys:
36
39
  - "based_near_sim"
37
40
  - "based_near_tesim"
41
+ predicate: http://xmlns.com/foaf/0.1/based_near
38
42
  # missing: bibliograpic_citation
39
43
  contributor:
40
44
  type: string
41
45
  multiple: true
42
46
  form:
43
47
  primary: false
48
+ predicate: http://purl.org/dc/elements/1.1/contributor
44
49
  # required: creator
45
50
  date_created:
46
51
  type: date_time
@@ -49,6 +54,7 @@ attributes:
49
54
  primary: false
50
55
  index_keys:
51
56
  - "date_created_tesim"
57
+ predicate: http://purl.org/dc/terms/created
52
58
  description:
53
59
  type: string
54
60
  multiple: true
@@ -56,11 +62,13 @@ attributes:
56
62
  primary: false
57
63
  index_keys:
58
64
  - "description_tesim"
65
+ predicate: http://purl.org/dc/elements/1.1/description
59
66
  identifier:
60
67
  type: string
61
68
  multiple: true
62
69
  form:
63
70
  primary: false
71
+ predicate: http://purl.org/dc/terms/identifier
64
72
  # missing: import_url
65
73
  keyword:
66
74
  type: string
@@ -70,9 +78,11 @@ attributes:
70
78
  index_keys:
71
79
  - "keyword_sim"
72
80
  - "keyword_tesim"
81
+ predicate: http://schema.org/keywords
73
82
  # missing: publisher
74
83
  label:
75
84
  type: string
85
+ predicate: info:fedora/fedora-system:def/model#downloadFilename
76
86
  # form:
77
87
  # primary: false
78
88
  language:
@@ -80,12 +90,14 @@ attributes:
80
90
  multiple: true
81
91
  form:
82
92
  primary: false
93
+ predicate: http://purl.org/dc/elements/1.1/language
83
94
  # required: license
84
95
  publisher:
85
96
  type: string
86
97
  multiple: true
87
98
  form:
88
99
  primary: false
100
+ predicate: http://purl.org/dc/elements/1.1/publisher
89
101
  related_url:
90
102
  type: string
91
103
  multiple: true
@@ -93,8 +105,10 @@ attributes:
93
105
  primary: false
94
106
  index_keys:
95
107
  - "related_url_tesim"
108
+ predicate: http://www.w3.org/2000/01/rdf-schema#seeAlso
96
109
  relative_path:
97
110
  type: string
111
+ predicate: http://scholarsphere.psu.edu/ns#relativePath
98
112
  resource_type:
99
113
  type: string
100
114
  multiple: true
@@ -103,9 +117,11 @@ attributes:
103
117
  index_keys:
104
118
  - "resource_type_sim"
105
119
  - "resource_type_tesim"
120
+ predicate: http://purl.org/dc/terms/type
106
121
  rights_notes:
107
122
  type: string
108
123
  multiple: true
124
+ predicate: http://purl.org/dc/elements/1.1/rights
109
125
  # form:
110
126
  # primary: false
111
127
  rights_statement:
@@ -115,9 +131,11 @@ attributes:
115
131
  # primary: true
116
132
  index_keys:
117
133
  - "rights_statement_tesim"
134
+ predicate: http://www.europeana.eu/schemas/edm/rights
118
135
  source:
119
136
  type: string
120
137
  multiple: true
138
+ predicate: http://purl.org/dc/terms/source
121
139
  # form:
122
140
  # primary: false
123
141
  subject:
@@ -128,3 +146,4 @@ attributes:
128
146
  index_keys:
129
147
  - "subject_sim"
130
148
  - "subject_tesim"
149
+ predicate: http://purl.org/dc/elements/1.1/subject
@@ -0,0 +1,57 @@
1
+ ---
2
+ # This internal metadata config is used to define predicates for hyrax internals only
3
+ attributes:
4
+ access_to:
5
+ predicate: http://www.w3.org/ns/auth/acl#accessTo
6
+ admin_set_id:
7
+ predicate: http://purl.org/dc/terms/isPartOf
8
+ agent:
9
+ predicate: http://www.w3.org/ns/auth/acl#agent
10
+ byte_order:
11
+ predicate: http://sweet.jpl.nasa.gov/2.2/reprDataFormat.owl#byteOrder
12
+ color_space:
13
+ predicate: http://www.w3.org/2003/12/exif/ns#colorSpace
14
+ compression:
15
+ predicate: http://vocabulary.samvera.org/ns#compressionScheme
16
+ created_at:
17
+ predicate: http://purl.org/dc/terms/created
18
+ file_identifier:
19
+ predicate: http://vocabulary.samvera.org/ns#fileIdentifier
20
+ file_ids:
21
+ predicate: http://pcdm.org/models#hasFile
22
+ file_set_id:
23
+ predicate: http://vocabulary.samvera.org/ns#fileSetId
24
+ format_label:
25
+ predicate: http://www.loc.gov/premis/rdf/v1#hasFormatName
26
+ height:
27
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#height
28
+ id:
29
+ predicate: http://purl.org/dc/terms/id
30
+ internal_resource:
31
+ predicate: info:fedora/fedora-system:def/model#hasModel
32
+ mime_type:
33
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMimeType
34
+ mode:
35
+ predicate: http://www.w3.org/ns/auth/acl#mode
36
+ original_filename:
37
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#filename
38
+ pcdm_use:
39
+ predicate: http://vocabulary.samvera.org/ns#pcdmUse
40
+ permissions:
41
+ predicate: http://vocabulary.samvera.org/ns#permissions
42
+ recorded_size:
43
+ predicate: http://www.loc.gov/premis/rdf/v1#hasSize
44
+ representative_id:
45
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasRelatedMediaFragment
46
+ state:
47
+ predicate: http://fedora.info/definitions/1/0/access/ObjState#objState
48
+ thumbnail_id:
49
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasRelatedImage
50
+ updated_at:
51
+ predicate: http://vocabulary.samvera.org/ns#updatedAt
52
+ valid:
53
+ predicate: http://vocabulary.samvera.org/ns#valid
54
+ well_formed:
55
+ predicate: http://vocabulary.samvera.org/ns#wellFormed
56
+ width:
57
+ predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#width
@@ -6,10 +6,12 @@ services:
6
6
  context: .
7
7
  target: hyrax-engine-dev
8
8
  args:
9
- - EXTRA_APK_PACKAGES=git less chromium
9
+ - EXTRA_APK_PACKAGES=git less
10
10
  - APP_PATH=.koppie
11
- image: ghcr.io/samvera/koppie
12
- command: sh -c 'bundle && yarn && bundle exec puma -v -b tcp://0.0.0.0:3000'
11
+ - BUNDLE_GEMFILE=Gemfile.koppie
12
+ image: samvera/koppie
13
+ entrypoint: dev-entrypoint.sh
14
+ command: sh -c 'bundle exec puma -v -b tcp://0.0.0.0:3000'
13
15
  stdin_open: true
14
16
  tty: true
15
17
  user: root
@@ -29,8 +31,10 @@ services:
29
31
  - 9877:9876
30
32
  - 1049:1048
31
33
  volumes:
34
+ - ./bin:/app/samvera
32
35
  - .koppie:/app/samvera/hyrax-webapp
33
36
  - .:/app/samvera/hyrax-engine
37
+ - bundle:/app/bundle
34
38
  - hyrax-storage:/app/samvera/hyrax-webapp/storage
35
39
  - hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
36
40
  - hyrax-uploads:/app/samvera/hyrax-webapp/uploads
@@ -40,13 +44,9 @@ services:
40
44
  - koppie
41
45
 
42
46
  sidekiq:
43
- build:
44
- context: .
45
- target: hyrax-engine-dev-worker
46
- args:
47
- - APP_PATH=.koppie
48
- image: ghcr.io/samvera/koppie-worker
49
- command: sh -c 'bundle && bundle exec sidekiq'
47
+ image: samvera/koppie
48
+ entrypoint: dev-entrypoint.sh
49
+ command: sh -c 'bundle exec sidekiq'
50
50
  user: root
51
51
  env_file:
52
52
  - .koppie/.env
@@ -57,33 +57,33 @@ services:
57
57
  - redis
58
58
  - solr
59
59
  volumes:
60
+ - ./bin:/app/samvera
60
61
  - .koppie:/app/samvera/hyrax-webapp
61
62
  - .:/app/samvera/hyrax-engine
63
+ - bundle:/app/bundle
62
64
  - hyrax-storage:/app/samvera/hyrax-webapp/storage
63
65
  - hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
64
66
  - hyrax-uploads:/app/samvera/hyrax-webapp/uploads
65
- - sidekiq-public:/app/samvera/hyrax-webapp/public
66
- - sidekiq-tmp:/app/samvera/hyrax-webapp/tmp
67
+ - rails-public:/app/samvera/hyrax-webapp/public
68
+ - rails-tmp:/app/samvera/hyrax-webapp/tmp
67
69
  networks:
68
70
  - koppie
69
71
 
70
72
  db_migrate:
71
- build:
72
- context: .
73
- target: hyrax-engine-dev
74
- args:
75
- - EXTRA_APK_PACKAGES=git less
76
- - APP_PATH=.koppie
77
- image: ghcr.io/samvera/koppie
73
+ image: samvera/koppie
78
74
  user: root
79
75
  env_file:
80
76
  - .koppie/.env
81
- command: sh -c 'bundle && db-migrate-seed.sh'
77
+ entrypoint: dev-entrypoint.sh
78
+ command: db-migrate-seed.sh
82
79
  depends_on:
83
80
  - postgres
81
+ - solr
84
82
  volumes:
83
+ - ./bin:/app/samvera
85
84
  - .koppie:/app/samvera/hyrax-webapp
86
85
  - .:/app/samvera/hyrax-engine
86
+ - bundle:/app/bundle
87
87
  - rails-public:/app/samvera/hyrax-webapp/public
88
88
  - rails-tmp:/app/samvera/hyrax-webapp/tmp
89
89
  networks:
@@ -105,7 +105,7 @@ services:
105
105
  - koppie
106
106
 
107
107
  postgres:
108
- image: postgres:latest
108
+ image: postgres:15
109
109
  env_file:
110
110
  - .koppie/.env
111
111
  ports:
@@ -116,7 +116,7 @@ services:
116
116
  - koppie
117
117
 
118
118
  fits:
119
- image: harvardlts/fitsservlet_container:1.5.0
119
+ image: ghcr.io/samvera/fitsservlet:1.6.0
120
120
  ports:
121
121
  - 8080
122
122
  networks:
@@ -157,6 +157,7 @@ services:
157
157
  - koppie
158
158
 
159
159
  volumes:
160
+ bundle:
160
161
  db:
161
162
  hyrax-storage:
162
163
  hyrax-derivatives: