geoblacklight_admin 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f18e2477b4c86505e2db4f96deecdd1cb1c7a3da7e6a5ec914d62cb03d96462f
4
- data.tar.gz: 65686ca5de9a294a3232e87c9639b0ee4dec85e2eb6f4d858f0dd47da81b3e97
3
+ metadata.gz: 387d4164b7cdadef3906c3370163e6057ab2ef8004b11d9de847d634afca62bd
4
+ data.tar.gz: 3102dad801555d0de37e6dd9588cc427661fb5c45772b82a3ddf9baece1f51a2
5
5
  SHA512:
6
- metadata.gz: 9a55943084756c68c07211e72de617cf1440f7128912bac6549ffcc95ac51733d2e3d21c165fb8f24acd6dda315c9a316056bda088e5eae65081552c9e6ce302
7
- data.tar.gz: '090b8cdcac146e2fc720004f923dc73e4cedb3a00c75ea13d90f1ec0c3786b57be9ae65a9d29858e09dea66eb43bfcfbf68b3e0288c5414ff3b0b04bbe41cc92'
6
+ metadata.gz: e0f33cd2c6fa0c7f9ea40d8616e80cac819636c4319280adf20442637533f8177b87825273aa70ca1371c865fc14c4871fd98d79443b432a2df3b7ce369f8ccf
7
+ data.tar.gz: 2228cf2c8b4fd7c838397f0a9d6fec9a4f8a3f39614df84cdb7245776a665323aa7af7217bb61e658c5b23a5a09c95e78ac41c767c41afdfd7f4b85a0bf8a193
@@ -36,7 +36,7 @@ nav.navbar.bg-light {
36
36
  margin-bottom:2rem;
37
37
  }
38
38
 
39
- footer {
39
+ footer.gbl-admin {
40
40
  border-top: 1rem solid #0088ce;
41
41
  margin-top: 4rem;
42
42
  background:rgba(0, 0, 0, 0.8) image-url('aerial_photo.jpg') repeat;
@@ -101,12 +101,12 @@ module Admin
101
101
 
102
102
  respond_to do |format|
103
103
  if DocumentAccess.import(params.dig(:document_access, :assets, :file))
104
- format.html { redirect_to document_accesses_path, notice: "Document access links were created successfully." }
104
+ format.html { redirect_to admin_document_accesses_path, notice: "Document access links were created successfully." }
105
105
  else
106
- format.html { redirect_to document_accesses_path, notice: "Access URLs could not be created." }
106
+ format.html { redirect_to admin_document_accesses_path, notice: "Access URLs could not be created." }
107
107
  end
108
108
  rescue => e
109
- format.html { redirect_to document_accesses_path, notice: "Access URLs could not be created. #{e}" }
109
+ format.html { redirect_to admin_document_accesses_path, notice: "Access URLs could not be created. #{e}" }
110
110
  end
111
111
  end
112
112
 
@@ -110,7 +110,7 @@ module Admin
110
110
 
111
111
  @parent.update(representative: @parent.members.order(:position).first) if @parent.representative_id.nil?
112
112
 
113
- redirect_to document_path(@parent.friendlier_id, anchor: "nav-members")
113
+ redirect_to admin_document_path(@parent.friendlier_id, anchor: "nav-members")
114
114
  end
115
115
 
116
116
  def convert_to_child_work
@@ -40,7 +40,6 @@ class ExportJsonBulkJob < ApplicationJob
40
40
  json_obj.compact!
41
41
 
42
42
  @json_array << JSON.pretty_generate(json_obj)
43
-
44
43
  rescue NoMethodError => e
45
44
  Rails.logger.debug { "==== Error! - #{doc.friendlier_id} ====" }
46
45
  Rails.logger.debug e.inspect
@@ -57,7 +57,7 @@ class Document
57
57
 
58
58
  def valid_yyyy(date)
59
59
  if date[/\D/]
60
- return false unless date == "*"
60
+ false unless date == "*"
61
61
  else
62
62
  true
63
63
  end
@@ -7,7 +7,7 @@ class Document < Kithe::Work
7
7
 
8
8
  attr_accessor :skip_callbacks
9
9
 
10
- has_paper_trail
10
+ has_paper_trail ignore: [:publication_state]
11
11
  belongs_to :import, optional: true
12
12
 
13
13
  # Statesman
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "csv"
4
+
3
5
  # DocumentAccess
4
6
  class DocumentAccess < ApplicationRecord
5
7
  belongs_to :document, foreign_key: :friendlier_id, primary_key: :friendlier_id
@@ -10,7 +12,7 @@ class DocumentAccess < ApplicationRecord
10
12
 
11
13
  def self.import(file)
12
14
  logger.debug("CSV Import")
13
- CSV.foreach(file.path, headers: true) do |row|
15
+ ::CSV.foreach(file.path, headers: true) do |row|
14
16
  logger.debug("CSV Row: #{row.to_hash}")
15
17
  document_access = DocumentAccess.find_or_initialize_by(friendlier_id: row[0], institution_code: row[1])
16
18
  document_access.update(row.to_hash)
@@ -19,7 +21,7 @@ class DocumentAccess < ApplicationRecord
19
21
 
20
22
  def self.destroy_all(file)
21
23
  logger.debug("CSV Destroy")
22
- CSV.foreach(file.path, headers: true) do |row|
24
+ ::CSV.foreach(file.path, headers: true) do |row|
23
25
  logger.debug("CSV Row: #{row.to_hash}")
24
26
  DocumentAccess.destroy_by(id: row[0], friendlier_id: row[1])
25
27
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "csv"
4
+
3
5
  # DocumentDownload
4
6
  class DocumentDownload < ApplicationRecord
5
7
  belongs_to :document, inverse_of: :document_downloads, foreign_key: :friendlier_id, primary_key: :friendlier_id
@@ -10,7 +12,7 @@ class DocumentDownload < ApplicationRecord
10
12
 
11
13
  def self.import(file)
12
14
  logger.debug("CSV Import")
13
- CSV.foreach(file.path, headers: true) do |row|
15
+ ::CSV.foreach(file.path, headers: true) do |row|
14
16
  logger.debug("CSV Row: #{row.to_hash}")
15
17
  document_download = DocumentDownload.find_or_initialize_by(friendlier_id: row[0], label: row[1], value: row[2])
16
18
  document_download.update(row.to_hash)
@@ -19,7 +21,7 @@ class DocumentDownload < ApplicationRecord
19
21
 
20
22
  def self.destroy_all(file)
21
23
  logger.debug("CSV Destroy")
22
- CSV.foreach(file.path, headers: true) do |row|
24
+ ::CSV.foreach(file.path, headers: true) do |row|
23
25
  logger.debug("CSV Row: #{row.to_hash}")
24
26
  DocumentDownload.destroy_by(id: row[0], friendlier_id: row[1])
25
27
  end
@@ -14,12 +14,15 @@ class ImportDocument < ApplicationRecord
14
14
  end
15
15
 
16
16
  def to_hash
17
- {
17
+ data_hash = {
18
18
  friendlier_id: friendlier_id,
19
19
  title: title,
20
20
  json_attributes: nullify_empty_json_attributes,
21
21
  import_id: import_id
22
22
  }
23
+
24
+ append_created_at(data_hash)
25
+ append_updated_at(data_hash)
23
26
  end
24
27
 
25
28
  def nullify_empty_json_attributes
@@ -31,4 +34,18 @@ class ImportDocument < ApplicationRecord
31
34
 
32
35
  clean_hash
33
36
  end
37
+
38
+ def append_created_at(data_hash)
39
+ if data_hash[:json_attributes].has_key?("date_created_dtsi")
40
+ data_hash[:created_at] = data_hash[:json_attributes]["date_created_dtsi"]
41
+ end
42
+ data_hash
43
+ end
44
+
45
+ def append_updated_at(data_hash)
46
+ if data_hash[:json_attributes].has_key?("date_modified_dtsi")
47
+ data_hash[:updated_at] = data_hash[:json_attributes]["date_modified_dtsi"]
48
+ end
49
+ data_hash
50
+ end
34
51
  end
@@ -34,9 +34,9 @@
34
34
  <td><%= bulk_action.field_name %></td>
35
35
  <td><%= bulk_action.field_value %></td>
36
36
  <td><%= bulk_action.created_at %></td>
37
- <td><%= link_to 'Show', bulk_action %></td>
37
+ <td><%= link_to 'Show', admin_bulk_action_path(bulk_action) %></td>
38
38
  <td><%= link_to 'Edit', edit_bulk_action_path(bulk_action) %></td>
39
- <td><%= link_to 'Destroy', bulk_action, method: :delete, data: { confirm: 'Are you sure?' } %></td>
39
+ <td><%= link_to 'Destroy', admin_bulk_action_path(bulk_action), method: :delete, data: { confirm: 'Are you sure?' } %></td>
40
40
  </tr>
41
41
  <% end %>
42
42
  </tbody>
@@ -4,14 +4,14 @@
4
4
  <p>To: <%= @document.title %> (<%= @document.friendlier_id %>)
5
5
  <p>Once the files have been uploaded and are ready for attachment, you can proceed to Attach</p>
6
6
 
7
- <%= form_with(url: asset_ingest_path(@document && @document.friendlier_id), method: :post, local: true) do |form| %>
7
+ <%= form_with(url: admin_asset_ingest_path(@document && @document.friendlier_id), method: :post, local: true) do |form| %>
8
8
 
9
9
  <div class="row">
10
10
 
11
11
  <div class="col-md-6 mb-3">
12
12
  <h2>1. Upload Files</h2>
13
13
 
14
- <%= content_tag "div", class: "uppy-dashboard-container", data: UploadUtil.kithe_upload_data_config do %>
14
+ <%= content_tag "div", class: "uppy-dashboard-container", data: Admin::UploadUtil.kithe_upload_data_config do %>
15
15
  <% end %>
16
16
  </div>
17
17
 
@@ -19,7 +19,7 @@
19
19
  <h2>2. Attach files</h2>
20
20
  <div class="d-flex justify-content-between">
21
21
  <%= form.submit "Attach", class: "btn btn-primary btn-lg", data: { toggle: "kithe-upload-submit" } %>
22
- <%= link_to "Cancel", document_path(@document),
22
+ <%= link_to "Cancel", admin_document_path(@document),
23
23
  class: "btn btn-outline-secondary btn-lg",
24
24
  data: { confirm: "Cancel attach files?" }
25
25
  %>
@@ -2,12 +2,12 @@
2
2
  Document &middot; Assets
3
3
 
4
4
  <% if params[:document_id] %>
5
- <%= link_to '+ Upload Assets', display_attach_form_document_document_assets_url(@document), { class: 'btn btn-primary float-right mr-2' } %>
5
+ <%= link_to '+ Upload Assets', display_attach_form_admin_document_document_assets_url(@document), { class: 'btn btn-primary float-right mr-2' } %>
6
6
  <% end %>
7
7
  </h1>
8
8
  <% if params[:document_id] %>
9
9
  <h2 class='h3'>
10
- <%= link_to(@document.title, document_path(@document)) %>
10
+ <%= link_to(@document.title, admin_document_path(@document)) %>
11
11
  &middot;
12
12
  <%= @document_assets.count %> assets
13
13
  </h2>
@@ -44,7 +44,7 @@
44
44
  <%= document_asset.file_data["metadata"]["mime_type"] %>
45
45
  <span class="sr-only"><%= document_asset.inspect %></span>
46
46
  </td>
47
- <td><%= link_to 'Destroy', document_document_asset_path(document_asset.parent, document_asset), method: :delete, data: { confirm: 'Are you sure?' } %></td>
47
+ <td><%= link_to 'Destroy', admin_document_document_asset_path(document_asset.parent, document_asset), method: :delete, data: { confirm: 'Are you sure?' } %></td>
48
48
  </tr>
49
49
  <% end %>
50
50
  </tbody>
@@ -3,7 +3,7 @@
3
3
  <h1 style="width:100%; border-bottom:dotted;" class="mb-4">
4
4
  Document &middot; Download Links
5
5
  <% if params[:document_id] %>
6
- <%= link_to '+ New Download Link', new_document_document_download_path(@document), { class: 'btn btn-primary float-right' } %>
6
+ <%= link_to '+ New Download Link', new_admin_document_document_download_path(@document), { class: 'btn btn-primary float-right' } %>
7
7
  <% end %>
8
8
  </h1>
9
9
 
@@ -1,4 +1,4 @@
1
- <span id="result-selected-options" class="hidden" data-scope="pageset" data-controller="results" data-resultset="<%= admin_documents_path( params.to_unsafe_h.merge({rows: '1000000'})) %>" data-pageset="/fetch?">
1
+ <span id="result-selected-options" class="hidden" data-scope="pageset" data-controller="results" data-resultset="<%= admin_documents_path( params.to_unsafe_h.merge({rows: '10000'})) %>" data-pageset="/fetch?">
2
2
 
3
3
  <%= form_with(model: BulkAction.new, html: { id: 'result-action-form', data: { type: "html", action: "submit->results#setPubState" }, style: 'display:inline'}, url: admin_bulk_actions_path) do |form| -%>
4
4
  <%= form.hidden_field :request, value: "#{request.protocol}#{request.host}:#{request.port}" %>
@@ -67,7 +67,7 @@
67
67
  target: '.uppy-dashboard-container'
68
68
  })
69
69
  .use(XHRUpload, {
70
- endpoint: '/direct_upload',
70
+ endpoint: '/admin/direct_upload',
71
71
  fieldName: 'file'
72
72
  })
73
73
 
@@ -32,11 +32,6 @@
32
32
 
33
33
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
34
34
  <ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
35
- <li class="nav-item">
36
- <%= link_to root_url, { class: 'nav-link' } do %>
37
- GeoBlacklight Home
38
- <% end %>
39
- </li>
40
35
  <% if user_signed_in? %>
41
36
  <li class="nav-item">
42
37
  <%= link_to admin_notifications_url, { class: 'nav-link' } do %>
@@ -56,7 +51,7 @@
56
51
  <%= link_to "Access Links", admin_document_accesses_path, {class: 'dropdown-item'} %>
57
52
  <%= link_to "Download Links", admin_document_downloads_path, {class: 'dropdown-item'} %>
58
53
  <div class="dropdown-divider"></div>
59
- <%= link_to "Blazer", '/blazer', {class: 'dropdown-item', data: { turbolinks: false }} %>
54
+ <%= link_to "Blazer", '/admin/blazer', {class: 'dropdown-item', data: { turbolinks: false }} %>
60
55
  <div class="dropdown-divider"></div>
61
56
  <%= link_to "Elements", admin_elements_path, {class: 'dropdown-item', data: { turbolinks: false }} %>
62
57
  <%= link_to "Form Elements", admin_form_elements_path, {class: 'dropdown-item', data: { turbolinks: false }} %>
@@ -78,6 +73,11 @@
78
73
  <%= link_to('Sign in', new_user_session_path, {class: 'nav-link'}) %>
79
74
  </li>
80
75
  <% end %>
76
+ <li class="nav-item">
77
+ <%= link_to root_url, { class: 'nav-link' } do %>
78
+ GeoBlacklight Home
79
+ <% end %>
80
+ </li>
81
81
  </ul>
82
82
  </div>
83
83
  </nav>
@@ -48,10 +48,10 @@ Accrual Periodicity,b1g_dct_accrualPeriodicity_s,https://geobtaa.github.io/metad
48
48
  Date Accessioned,b1g_dateAccessioned_sm,https://geobtaa.github.io/metadata/b1g-custom-elements/#date-accessioned,string,FALSE,TRUE,TRUE,,,date-accessioned1|date-accessioned2,,,,FALSE,TRUE,TRUE,,TRUE,,TRUE,,,47
49
49
  Date Retired,b1g_dateRetired_s,https://geobtaa.github.io/metadata/b1g-custom-elements/#date-retired,string,FALSE,FALSE,TRUE,,YYYY-MM-DD,date-retired,,datepicker,,FALSE,TRUE,FALSE,,TRUE,,TRUE,,,48
50
50
  Status,b1g_status_s,https://geobtaa.github.io/metadata/b1g-custom-elements/#status,string,FALSE,FALSE,TRUE,,,Active,,,,FALSE,TRUE,FALSE,,TRUE,,TRUE,,,49
51
- Publication State,b1g_publication_state_s,https://geobtaa.github.io/metadata/b1g-custom-elements/#publication-state,string,TRUE,FALSE,TRUE,,,published,publication_states,,,TRUE,FALSE,FALSE,,TRUE,current_state,TRUE,current_state,,50
51
+ Publication State,b1g_publication_state_s,https://geobtaa.github.io/metadata/b1g-custom-elements/#publication-state,string,TRUE,FALSE,TRUE,,,published,publication_states,,,TRUE,TRUE,FALSE,,TRUE,current_state,TRUE,current_state,,50
52
52
  Suppressed Record,gbl_suppressed_b,https://opengeometadata.org/ogm-aardvark/#suppressed,boolean,FALSE,FALSE,TRUE,,,FALSE,,,,FALSE,TRUE,FALSE,,TRUE,,TRUE,,,51
53
53
  Child Record,b1g_child_record_b,https://geobtaa.github.io/metadata/b1g-custom-elements/#child-record,boolean,FALSE,FALSE,TRUE,,,FALSE,,,,FALSE,TRUE,FALSE,,TRUE,,TRUE,,,52
54
54
  Mediator,b1g_dct_mediator_sm,https://geobtaa.github.io/metadata/b1g-custom-elements/#mediator,string,FALSE,TRUE,TRUE,,,mediator1|mediator2,,,,FALSE,TRUE,TRUE,,TRUE,,TRUE,,,53
55
55
  Access,b1g_access_s,https://geobtaa.github.io/metadata/b1g-custom-elements/#access,string,FALSE,FALSE,TRUE,,,access,,,,FALSE,TRUE,FALSE,,TRUE,,TRUE,access_json,,54
56
- Created At,date_created_dtsi,,datetime,FALSE,FALSE,FALSE,,,2021-12-09 15:50:49.803415,,,,TRUE,FALSE,FALSE,,TRUE,created_at_dt,TRUE,created_at_dt,,55
57
- Updated At,date_modified_dtsi,,datetime,FALSE,FALSE,FALSE,,,2022-12-12 17:02:03.422663,,,,TRUE,FALSE,FALSE,,TRUE,gbl_mdModified_dt,TRUE,gbl_mdModified_dt,,56
56
+ Created At,date_created_dtsi,,datetime,FALSE,FALSE,FALSE,,,2021-12-09 15:50:49.803415,,,,TRUE,TRUE,FALSE,,TRUE,created_at_dt,TRUE,created_at_dt,,55
57
+ Updated At,date_modified_dtsi,,datetime,FALSE,FALSE,FALSE,,,2022-12-12 17:02:03.422663,,,,TRUE,TRUE,FALSE,,TRUE,gbl_mdModified_dt,TRUE,gbl_mdModified_dt,,56
Binary file
@@ -28,6 +28,7 @@ module GeoblacklightAdmin
28
28
  copy_file "config/initializers/kithe.rb", "config/initializers/kithe.rb", force: true
29
29
  copy_file "config/initializers/mime_types.rb", "config/initializers/mime_types.rb", force: true
30
30
  copy_file "config/initializers/pagy.rb", "config/initializers/pagy.rb", force: true
31
+ copy_file "config/initializers/shrine.rb", "config/initializers/shrine.rb", force: true
31
32
  copy_file "config/initializers/simple_form.rb", "config/initializers/simple_form.rb", force: true
32
33
  copy_file "config/initializers/simple_form_bootstrap.rb", "config/initializers/simple_form_bootstrap.rb", force: true
33
34
  copy_file "config/initializers/statesman.rb", "config/initializers/statesman.rb", force: true
@@ -212,7 +213,7 @@ module GeoblacklightAdmin
212
213
 
213
214
  get "/documents/:id/ingest", to: "document_assets#display_attach_form", as: "asset_ingest"
214
215
  post "/documents/:id/ingest", to: "document_assets#attach_files"
215
- #mount Kithe::AssetUploader.upload_endpoint(:cache) => "/direct_upload", :as => :direct_app_upload
216
+ mount Kithe::AssetUploader.upload_endpoint(:cache) => "/direct_upload", :as => :direct_app_upload
216
217
 
217
218
  resources :collections, except: [:show]
218
219
 
@@ -22,3 +22,15 @@ BLACKLIGHT_URL = ENV["BLACKLIGHT_URL"]
22
22
  BLACKLIGHT_JSON_API = ENV["BLACKLIGHT_JSON_API"]
23
23
  BLACKLIGHT_JSON_API_IDS = ENV["BLACKLIGHT_JSON_API_IDS"]
24
24
  BLACKLIGHT_JSON_API_FACETS = ENV["BLACKLIGHT_JSON_API_FACETS"]
25
+
26
+ # Former Controller > Concern
27
+ module Admin
28
+ module UploadUtil
29
+ def self.kithe_upload_data_config(toggle_value: "kithe-upload")
30
+ {
31
+ toggle: toggle_value,
32
+ upload_endpoint: Rails.application.routes.url_helpers.admin_direct_app_upload_path
33
+ }
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,12 @@
1
+ require "shrine"
2
+ require "shrine/storage/file_system"
3
+
4
+ Shrine.storages = {
5
+ cache: Shrine::Storage::FileSystem.new("public", prefix: "uploads/cache"), # temporary
6
+ store: Shrine::Storage::FileSystem.new("public", prefix: "uploads") # permanent
7
+ }
8
+
9
+ Shrine.plugin :activerecord
10
+ Shrine.plugin :upload_endpoint
11
+ Shrine.plugin :cached_attachment_data # for retaining the cached file across form redisplays
12
+ Shrine.plugin :restore_cached_data # re-extract metadata when attaching a cached file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-24 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: chosen-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.0'
103
+ version: '1.10'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.0'
110
+ version: '1.10'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: cocoon
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -414,14 +414,14 @@ dependencies:
414
414
  requirements:
415
415
  - - "~>"
416
416
  - !ruby/object:Gem::Version
417
- version: 7.1.0
417
+ version: '10.0'
418
418
  type: :runtime
419
419
  prerelease: false
420
420
  version_requirements: !ruby/object:Gem::Requirement
421
421
  requirements:
422
422
  - - "~>"
423
423
  - !ruby/object:Gem::Version
424
- version: 7.1.0
424
+ version: '10.0'
425
425
  - !ruby/object:Gem::Dependency
426
426
  name: byebug
427
427
  requirement: !ruby/object:Gem::Requirement
@@ -752,7 +752,6 @@ files:
752
752
  - app/controllers/admin/api_controller.rb
753
753
  - app/controllers/admin/bookmarks_controller.rb
754
754
  - app/controllers/admin/bulk_actions_controller.rb
755
- - app/controllers/admin/concerns/upload_util.rb
756
755
  - app/controllers/admin/document_accesses_controller.rb
757
756
  - app/controllers/admin/document_assets_controller.rb
758
757
  - app/controllers/admin/document_downloads_controller.rb
@@ -1000,6 +999,7 @@ files:
1000
999
  - lib/generators/geoblacklight_admin/templates/config/initializers/kithe.rb
1001
1000
  - lib/generators/geoblacklight_admin/templates/config/initializers/mime_types.rb
1002
1001
  - lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb
1002
+ - lib/generators/geoblacklight_admin/templates/config/initializers/shrine.rb
1003
1003
  - lib/generators/geoblacklight_admin/templates/config/initializers/simple_form.rb
1004
1004
  - lib/generators/geoblacklight_admin/templates/config/initializers/simple_form_bootstrap.rb
1005
1005
  - lib/generators/geoblacklight_admin/templates/config/initializers/statesman.rb
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module UploadUtil
4
- def self.kithe_upload_data_config(toggle_value: "kithe-upload")
5
- {
6
- toggle: toggle_value,
7
- upload_endpoint: Rails.application.routes.url_helpers.direct_app_upload_path
8
- }
9
- end
10
- end