geo_concerns 0.3.3 → 0.3.4

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: 7cefebef4b475d8f1c12b0701365600e30d0447c
4
- data.tar.gz: 41b843bdd8110eda732e218e55b409d9a8a435e0
3
+ metadata.gz: d2e5b6d18f61fadda414554d36d7af80668e11bd
4
+ data.tar.gz: 4c5aa10636d6dd1be3c092adcb6c3635b01f242f
5
5
  SHA512:
6
- metadata.gz: 1b1e30acabe1731fb04eee86feae57217db0d3281741269a814fcf92f240a38851e2e36394de9b60f2e11f749b62c087de83e5dd8b2fa497eb02022e56a7cfe2
7
- data.tar.gz: d11a3f70b25fe592e70e8b8870bdf332836055b2f6cd5756e9c738b3afe2e2966fdf213af593565d0678f091806834897f131b3ba1a4545957b2341326d7b7bf
6
+ metadata.gz: 47effa49799242c35a4678246b6d3646012c77ac906615fd4386f72ddf10c9a3cdfbd3b9acc73510d089efcb300e3d6a0721b429b8a2feb25677fbf5c759c688
7
+ data.tar.gz: 070255a9a1b91e29a6e288bd16b22802e4c8027502da95d9b230939a2a2c33c9e4ddfe5640724aa4a7f13d5572e50b82d7326726feaffd01555115c7fe6d19f5
@@ -20,11 +20,23 @@ module GeoConcerns
20
20
 
21
21
  def parent_work_presenters
22
22
  # filter out collection presenters
23
- collection_presenters.select do |member|
23
+ member_of_presenters.select do |member|
24
24
  member.model_name.name != "Collection"
25
25
  end
26
26
  end
27
27
 
28
+ def member_of_presenters
29
+ CurationConcerns::PresenterFactory.build_presenters(member_of_ids,
30
+ collection_presenter_class,
31
+ *presenter_factory_arguments)
32
+ end
33
+
34
+ def member_of_ids
35
+ ActiveFedora::SolrService.query("{!field f=member_ids_ssim}#{id}",
36
+ fl: ActiveFedora.id_field)
37
+ .map { |x| x.fetch(ActiveFedora.id_field) }
38
+ end
39
+
28
40
  def attribute_to_html(field, options = {})
29
41
  if field == :coverage
30
42
  GeoConcerns::CoverageRenderer.new(field, send(field), options).render
@@ -1,3 +1,3 @@
1
1
  module GeoConcerns
2
- VERSION = "0.3.3".freeze
2
+ VERSION = "0.3.4".freeze
3
3
  end
data/template.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  gem 'curation_concerns', '1.6.3'
2
- gem 'geo_concerns', '0.3.3'
2
+ gem 'geo_concerns', '0.3.4'
3
3
 
4
4
  run 'bundle install'
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_concerns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Griffin
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-12-16 00:00:00.000000000 Z
15
+ date: 2017-01-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: curation_concerns
@@ -685,7 +685,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
685
685
  version: '0'
686
686
  requirements: []
687
687
  rubyforge_project:
688
- rubygems_version: 2.4.5
688
+ rubygems_version: 2.6.8
689
689
  signing_key:
690
690
  specification_version: 4
691
691
  summary: Rails engine for Hydra Geo models. Built around Curation Concerns engine.