cul_scv_hydra 0.22.3 → 0.22.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/cul_scv_hydra/version.rb~ +1 -1
- data/lib/tasks/index.rake +6 -5
- 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: d6a57f9a4a7917ae647e29a986a83dd7f794963c
|
4
|
+
data.tar.gz: 109faf64878014a8926d63ea65e849933b5259e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82aecc63e1c174b62ef352d4f2e802169d4b8cdc18756ca02652a1572357d2f0c3de7bcdcf09a1865709b56190e1f8405fd91938e53a2de3e80666ad35bb0c5
|
7
|
+
data.tar.gz: 286fe512649eb1ddc3efc6282eb614788a09cf77f99ed42d203138e6065d7c9ef516d701017cb6593132b36b696b6d6408dcfb4c86fd868cc285d340682927f2
|
data/lib/tasks/index.rake
CHANGED
@@ -9,8 +9,6 @@ namespace :cul_scv_hydra do
|
|
9
9
|
puts 'Solr URL: ' + ActiveFedora.solr_config[:url]
|
10
10
|
puts '---------------------------'
|
11
11
|
|
12
|
-
START_TIME = Time.now
|
13
|
-
|
14
12
|
ENV["RAILS_ENV"] ||= Rails.env
|
15
13
|
|
16
14
|
if ENV['PIDS']
|
@@ -54,13 +52,16 @@ namespace :cul_scv_hydra do
|
|
54
52
|
next
|
55
53
|
end
|
56
54
|
|
57
|
-
|
55
|
+
start_time = Time.now
|
58
56
|
pids = Cul::Scv::Hydra::RisearchMembers.get_project_constituent_pids(project_pid, true)
|
59
|
-
|
60
|
-
puts "Found #{
|
57
|
+
total = pids.length
|
58
|
+
puts "Found #{total} project members."
|
59
|
+
counter = 0
|
61
60
|
|
62
61
|
pids.each do |pid|
|
63
62
|
Cul::Scv::Hydra::Indexer.index_pid(pid, false, false)
|
63
|
+
counter += 1
|
64
|
+
puts "Indexed #{counter} of #{total} | #{Time.now - start_time} seconds"
|
64
65
|
end
|
65
66
|
|
66
67
|
end
|