bulkrax 2.2.1 → 2.2.4

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: b581b6768e5d7300546aec47d8cdfdde60cf462f37b51f6b434e92d1f9018334
4
- data.tar.gz: 8d82be5129abaea32753bebc862cd5da8960cda8865e9749cbf5cfff1b49b012
3
+ metadata.gz: 9ca4838e8fe86d901fd9196ab8c1a84f7072fae590a1fc411f8ee057756f9db9
4
+ data.tar.gz: 8b6dde2983bac873a5dbbd0f70aab512199344f00a2a7cbdcbea5f5b2a9fe4c5
5
5
  SHA512:
6
- metadata.gz: f98c57a345d2bf08789877cc854bcc50680a97b7b2638965cd7940e311e4ff72c0db86ff4ca71e57c7058f2609035fa2ec402f298df439c5899190cfd8efc8c8
7
- data.tar.gz: '09c7d9d8d51db04f5f01356c22f09e9d5041880effec9352b853d609668a58809dbb0f151d93f8c95c3f53bafcf3bbb57a6a4ab036616583dec1ed124d6d101b'
6
+ metadata.gz: 14ee5cdf3bfee220faebd377b6ce25979397c4b72ac9de3f10d92d13f57d60fffecb089e26f7bdc1c5ccb147430fb637635053e0a601a1f0f96ad2082d1d10b9
7
+ data.tar.gz: 0236d3b24309e7a0338d1fb38d40e0ab852ff452514311c5e7711fc8efcc39a19a48a044622b2168d43d1fd1517cd6a61a87273af350ab0dd91c6576230911d6
@@ -49,7 +49,7 @@ function prepBulkrax(event) {
49
49
  for(var mutation of mutationsList) {
50
50
  if (mutation.type == 'childList') {
51
51
  browseButton = document.getElementById('browse');
52
- var exp = /selected_files\[[0-9*]\]\[url\]/
52
+ var exp = /selected_files\[[0-9]*\]\[url\]/
53
53
  for (var node of mutation.addedNodes) {
54
54
  if (node.attributes != undefined) {
55
55
  var name = node.attributes.name.value
@@ -40,8 +40,8 @@ module Bulkrax
40
40
 
41
41
  self.parsed_metadata = {}
42
42
  add_identifier
43
- add_visibility
44
43
  add_ingested_metadata
44
+ add_visibility
45
45
  add_metadata_for_model
46
46
  add_rights_statement
47
47
  add_collections
@@ -139,6 +139,7 @@ module Bulkrax
139
139
  file
140
140
  remote_files
141
141
  model
142
+ visibility
142
143
  delete
143
144
  #{parser.collection_field_mapping}
144
145
  #{related_parents_parsed_mapping}
@@ -22,16 +22,17 @@ module Bulkrax
22
22
 
23
23
  def increment_counters(index, collection: false, file_set: false)
24
24
  # Only set the totals if they were not set on initialization
25
+ importer_run = ImporterRun.find(current_run.id) # make sure fresh
25
26
  if collection
26
- current_run.total_collection_entries = index + 1 unless parser.collections_total.positive?
27
+ importer_run.total_collection_entries = index + 1 unless parser.collections_total.positive?
27
28
  elsif file_set
28
- current_run.total_file_set_entries = index + 1 unless parser.file_sets_total.positive?
29
+ importer_run.total_file_set_entries = index + 1 unless parser.file_sets_total.positive?
29
30
  else
30
31
  # TODO: differentiate between work and collection counts for exporters
31
- current_run.total_work_entries = index + 1 unless limit.to_i.positive? || parser.total.positive?
32
+ importer_run.total_work_entries = index + 1 unless limit.to_i.positive? || parser.total.positive?
32
33
  end
33
- current_run.enqueued_records += 1
34
- current_run.save!
34
+ importer_run.enqueued_records += 1
35
+ importer_run.save!
35
36
  end
36
37
 
37
38
  def keys_without_numbers(keys)
@@ -7,6 +7,10 @@
7
7
  </div>
8
8
  <% end %>
9
9
 
10
+ <% content_for(:head) do %>
11
+ <meta name="turbolinks-cache-control" content="no-cache">
12
+ <% end %>
13
+
10
14
  <div class="panel panel-default">
11
15
  <div class="panel-body">
12
16
  <% if @exporters.present? %>
@@ -7,6 +7,10 @@
7
7
  </div>
8
8
  <% end %>
9
9
 
10
+ <% content_for(:head) do %>
11
+ <meta name="turbolinks-cache-control" content="no-cache">
12
+ <% end %>
13
+
10
14
  <div class="panel panel-default">
11
15
  <div class="panel-body">
12
16
  <% if @importers.present? %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bulkrax
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulkrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails