darlingtonia 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/darlingtonia/hyrax_record_importer.rb +1 -0
- data/lib/darlingtonia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65916a0536747279530beff22b393ca88d31d0ce16338799f3bc45631e864c2
|
4
|
+
data.tar.gz: be92962bfbd065747aea00b26d77fb79c8ba46655c367ddc74bcb5190e8bdb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2536967a3f2f3040638d12f08df770395ae70f4bc133fd65b247a14f824e5f1f4f06c88c2d5136a0de1a6cb8d4bb8b1712fc8a0142df025cec99565c366d1f01
|
7
|
+
data.tar.gz: fff32d8eae679a040dfc35ab234a829118291b6960f2e6ce48d8e92ab748372b58a44978f26d74e28e28838ffa67bb79e2ca90512ad9b9b461519a8d19e43bd4
|
@@ -73,6 +73,7 @@ module Darlingtonia
|
|
73
73
|
def find_existing_record(record)
|
74
74
|
return unless deduplication_field
|
75
75
|
return unless record.respond_to?(deduplication_field)
|
76
|
+
return if record.mapper.send(deduplication_field).nil?
|
76
77
|
return if record.mapper.send(deduplication_field).empty?
|
77
78
|
existing_records = import_type.where("#{deduplication_field}": record.mapper.send(deduplication_field).to_s)
|
78
79
|
raise "More than one record matches deduplication_field #{deduplication_field} with value #{record.mapper.send(deduplication_field)}" if existing_records.count > 1
|
data/lib/darlingtonia/version.rb
CHANGED