cul_scv_hydra 0.22.0 → 0.22.1
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 +4 -4
- data/lib/cul_scv_hydra/indexer.rb +7 -7
- data/lib/cul_scv_hydra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a0a78d7b35c32db71ea14181c1ce15377d70176
|
4
|
+
data.tar.gz: 1f3dd9bbea2111a1b51edba049b69e6b376fec61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36aa75b2f1b7e82611101dac58747ef3684f45196ffd43cfc82684bca690529dc496cf2ea21c5ba57efc2ba620460a85202530ff3cf3c48a8046e226fdb8fa1f
|
7
|
+
data.tar.gz: 87310f89b8c440693af50ec0893717b01937f2c8fad307728a15b951bb7f16204e0926d4007c54a8170a41e999e5b8a3e4b8c636f9ed53cd571ca9318a36fca5
|
@@ -60,17 +60,17 @@ module Cul::Scv::Hydra::Indexer
|
|
60
60
|
descend_from(top_pid, pids_to_omit, verbose_output) do |pid|
|
61
61
|
|
62
62
|
# We found an object with the desired PID. Let's reindex it
|
63
|
-
|
63
|
+
begin
|
64
|
+
active_fedora_object = ActiveFedora::Base.find(pid, :cast => true)
|
64
65
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
begin
|
66
|
+
if skip_generic_resources && active_fedora_object.is_a?(GenericResource)
|
67
|
+
puts 'Object was skipped because GenericResources are being skipped and it is a GenericResource.'
|
68
|
+
else
|
69
69
|
active_fedora_object.update_index
|
70
70
|
puts 'done.' if verbose_output
|
71
|
-
rescue Exception => e
|
72
|
-
puts 'Encountered problem. Skipping record. Exception: ' + e.message
|
73
71
|
end
|
72
|
+
rescue Exception => e
|
73
|
+
puts "Encountered problem with #{pid}. Skipping record. Exception: #{e.message}"
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|