geoblacklight_admin 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc6016dba641608f129d84c4c8706fcf2494ddf18b028228799643e0e8b4ef3b
4
- data.tar.gz: f58448208f48871f44c09588cb0c55d7c8beac7906b608052478aee2eaa587a5
3
+ metadata.gz: faa51021e7c742dbc13abb29e2114de5f917716955034cff20b433d6a3c275de
4
+ data.tar.gz: 71050ece81fb99a0377793467e09e4bb0d67fc892b6f49296a1c278ab4a00460
5
5
  SHA512:
6
- metadata.gz: c956657c0b5f55f5e9b18eb5712ce35c185bddc498dcd950bcb4a52108ed0961690bbcc4753f6cbbe8cf5702315df4c4bf82dc33154e97a2dd852d367d871f81
7
- data.tar.gz: 89981e31e878f519ad6cecb42df557cfb7031dcce7b11209c9451355c8e310cfb86957aa16c71dfa46f4686d14fbc9aab0e4868e6059c5722083e6ce9a3ca9fa
6
+ metadata.gz: 7fef4d2444d40f92f7731471f3647959b440e0a1ff9d74f5fb4973bff02701b626a6b0d83c7175e8bc0a0bb9bc7519edb3ef3f660d1584b0e4bbc22cb9f4df30
7
+ data.tar.gz: 3cc6ed9f3b4f25c67b30ba05a601a05022baab8ace7081d609db514f175746d43a5e91225c2889d8963eb74fbf96cca96f4cd112fae5066d65b455eb6cf3d72e
@@ -124,9 +124,13 @@ class Document < Kithe::Work
124
124
  def distributions
125
125
  distributions = {}
126
126
 
127
+ logger.debug("Document#distributions > ENV['GBL_ADMIN_REFERENCES_MIGRATED']: #{ENV["GBL_ADMIN_REFERENCES_MIGRATED"]}")
128
+
127
129
  # AFTER - Add DocumentDistributions to distributions
128
130
  if ENV["GBL_ADMIN_REFERENCES_MIGRATED"] == "true"
129
131
  distributions = document_distributions.to_aardvark_distributions
132
+
133
+ logger.debug("Document#distributions > document_distributions: #{distributions}")
130
134
  else
131
135
  # BEFORE - Prep value arrays
132
136
  # @TODO: Remove this once we've migrated to DocumentDistributions
@@ -39,7 +39,7 @@ class DocumentDistribution < ApplicationRecord
39
39
  merged["http://schema.org/downloadUrl"] ||= []
40
40
  merged["http://schema.org/downloadUrl"] << {
41
41
  "url" => dist.values.first,
42
- "label" => dist[:label].present? ? dist[:label] : dist.values.first
42
+ "label" => dist["label"].present? ? dist["label"] : dist.values.first
43
43
  }
44
44
  else
45
45
  merged[dist.keys.first] = dist.values.first
@@ -24,7 +24,7 @@
24
24
  <div class="form-group">
25
25
  <div class="form-inputs">
26
26
  <%= f.simple_fields_for :distributions do |distribution_fields| %>
27
- <%= reference_fields.input :file, as: :file, input_html: {} %>
27
+ <%= distribution_fields.input :file, as: :file, input_html: {} %>
28
28
  <%- end %>
29
29
  </div>
30
30
 
@@ -131,8 +131,8 @@
131
131
 
132
132
  <nav>
133
133
  <div class="nav nav-tabs" id="import-state-tabs" role="tablist">
134
- <a class="nav-item nav-link active" id="import-success-tab" data-toggle="tab" href="#import-state-success" role="tab" aria-controls="import-state-success" aria-selected="true">Success <span class="badge badge-success"><%= @import_success_documents.count %></span></a>
135
- <a class="nav-item nav-link" id="import-failed-tab" data-toggle="tab" href="#import-state-failed" role="tab" aria-controls="import-state-failed" aria-selected="false">Failed <span class="badge badge-danger"><%= @import_failed_documents.count %></span> </a>
134
+ <a class="nav-item nav-link active" id="import-success-tab" data-toggle="tab" href="#import-state-success" role="tab" aria-controls="import-state-success" aria-selected="true">Success <span class="badge badge-success"><%= @pagy_success.count %></span></a>
135
+ <a class="nav-item nav-link" id="import-failed-tab" data-toggle="tab" href="#import-state-failed" role="tab" aria-controls="import-state-failed" aria-selected="false">Failed <span class="badge badge-danger"><%= @pagy_failed.count %></span> </a>
136
136
  </div>
137
137
  </nav>
138
138
 
@@ -146,4 +146,4 @@
146
146
  </div>
147
147
  </div>
148
148
  </div>
149
- </div>
149
+ </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.6.2"
4
+ VERSION = "0.6.3"
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-20 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations