activefedora-aggregation 0.4.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: 280dd5b02adafa34459d6206a9e0fb696250af69
4
- data.tar.gz: becbdd66e713db807545eaaeed526a3faf75d1e4
3
+ metadata.gz: fc7b80996e579a5e5799166881384286103a4f9f
4
+ data.tar.gz: 043ff54398c18eee3edffb4cea5ecafea8bf584b
5
5
  SHA512:
6
- metadata.gz: a7dc0b2e993dc64cfe3033aa5cc78fdb73d2b0b8302c2ba399192bcb506ca41d5f3da97c51324aab232de5461b1e1cf059a012a167d6f107fe8af94fc579cb20
7
- data.tar.gz: 3e9a2d9653096747517d2fdfa7843f9850e8aea9ee4cca8379c3a95462a7e2c5ca9de182af34452ed4df4dc719e12176b0fe80e8e56ddecda563c93fb61a90b1
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
- create_linked_list(next_id, remainder, list + [first.fetch('proxyFor_ssim').first])
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
@@ -1,5 +1,5 @@
1
1
  module ActiveFedora
2
2
  module Aggregation
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
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.1
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-17 00:00:00.000000000 Z
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: