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 +4 -4
- data/app/presenters/geo_concerns/geo_concerns_show_presenter.rb +13 -1
- data/lib/geo_concerns/version.rb +1 -1
- data/template.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2e5b6d18f61fadda414554d36d7af80668e11bd
|
4
|
+
data.tar.gz: 4c5aa10636d6dd1be3c092adcb6c3635b01f242f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/geo_concerns/version.rb
CHANGED
data/template.rb
CHANGED
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.
|
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:
|
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.
|
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.
|