activefedora-aggregation 0.4.1 → 0.4.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7b80996e579a5e5799166881384286103a4f9f
|
4
|
+
data.tar.gz: 043ff54398c18eee3edffb4cea5ecafea8bf584b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf9b0d7bb610199dcdd21472ee9e20ce4a0cdd1301166d8f43ff7e03826e27c2fc32a29f841b16f6fb12f0ceaab0f92e7bf4d08d6ad8bb85e223c71603f7405
|
7
|
+
data.tar.gz: 673692c667c8204105cbea4041c95728afd5d07ee80723ae389bdfa8d75c9f0e432a5139e9d6b7d9e6a98146e3da12df2cbe0e2c15e3e46d9a65ec50b5528651
|
@@ -56,7 +56,13 @@ module ActiveFedora::Aggregation
|
|
56
56
|
index = remainder.find_index { |n| n.fetch('id') == first_id }
|
57
57
|
first = remainder.delete_at(index)
|
58
58
|
next_id = first['next_ssim'].try(:first)
|
59
|
-
|
59
|
+
proxy_for = first.fetch('proxyFor_ssim', []).first
|
60
|
+
if proxy_for
|
61
|
+
create_linked_list(next_id, remainder, list + [proxy_for])
|
62
|
+
else
|
63
|
+
ActiveFedora::Base.logger.error("Found a proxy (id: #{first['id']}) that has no proxyFor_ssim") if ActiveFedora::Base.logger
|
64
|
+
create_linked_list(next_id, remainder, list)
|
65
|
+
end
|
60
66
|
end
|
61
67
|
|
62
68
|
def default_options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activefedora-aggregation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -190,3 +190,4 @@ signing_key:
|
|
190
190
|
specification_version: 4
|
191
191
|
summary: Aggregations for active-fedora
|
192
192
|
test_files: []
|
193
|
+
has_rdoc:
|