geoblacklight_sidecar_images 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.solr_wrapper.yml +5 -0
- data/Gemfile +2 -2
- data/README.md +3 -3
- data/Rakefile +2 -0
- data/app/services/geoblacklight_sidecar_images/image_service.rb +9 -11
- data/geoblacklight_sidecar_images.gemspec +2 -2
- data/lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb +1 -1
- data/lib/geoblacklight_sidecar_images/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65f48652a713c5542469d6de4abe02385e821303f0393feaa15b3198c041a8bc
|
4
|
+
data.tar.gz: ebc3d1bf2b4b7aa8feb6e2ceb9932ef4330ee14c09ab54c57d904a405b02e36b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b82873f4f53d32f225b6f1dd51e7c0f48616ede7f9023db89918414bcc14994e8b25314f13eef5c5da66d768a2f4ec1fce10e359d3e5d5ae7ce69cba4603310
|
7
|
+
data.tar.gz: 715b8fc09e049231f4606f246aa22ae299e79b478a37185b56038264d58081f42b1c3d4ebe130a0627ed41cc77bc91cd8b646f1565ca55991e2035906c4a9e74
|
data/.solr_wrapper.yml
ADDED
data/Gemfile
CHANGED
@@ -40,8 +40,8 @@ else
|
|
40
40
|
gem 'geoblacklight', '>= 2.0'
|
41
41
|
gem 'mini_magick', '~> 4.9.4'
|
42
42
|
gem 'image_processing', '~> 1.6'
|
43
|
-
gem 'mimemagic', '~> 0.3'
|
44
43
|
gem 'statesman', '>= 3.4'
|
45
|
-
gem '
|
44
|
+
gem 'marcel', '>= 1.0'
|
45
|
+
gem 'rails', '>= 5.2.5', '< 6.2'
|
46
46
|
end
|
47
47
|
# END ENGINE_CART BLOCK
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/geoblacklight/geoblacklight_sidecar_images.svg?branch=master)](https://travis-ci.org/geoblacklight/geoblacklight_sidecar_images)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/88c14165af5459963011/maintainability)](https://codeclimate.com/github/geoblacklight/geoblacklight_sidecar_images/maintainability)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/geoblacklight/geoblacklight_sidecar_images/badge.svg?branch=master)](https://coveralls.io/github/geoblacklight/geoblacklight_sidecar_images?branch=master)
|
6
|
-
[![
|
6
|
+
[![rubygem](https://badgen.net/rubygems/v/geoblacklight_sidecar_images)](https://badgen.net/rubygems/v/geoblacklight_sidecar_images)
|
7
7
|
|
8
8
|
Store local copies of remote imagery in GeoBlacklight.
|
9
9
|
|
@@ -21,8 +21,8 @@ This GeoBlacklight plugin captures remote images from geographic web services an
|
|
21
21
|
|
22
22
|
## Requirements
|
23
23
|
|
24
|
-
* [Ruby on Rails >= 5.2](https://weblog.rubyonrails.org/releases/)
|
25
|
-
* [GeoBlacklight >=
|
24
|
+
* [Ruby on Rails >= 5.2.5](https://weblog.rubyonrails.org/releases/)
|
25
|
+
* [GeoBlacklight >= 3.3](https://github.com/geoblacklight/geoblacklight)
|
26
26
|
* [ImageMagick](https://github.com/ImageMagick/ImageMagick)
|
27
27
|
|
28
28
|
### Suggested
|
data/Rakefile
CHANGED
@@ -150,17 +150,15 @@ module GeoblacklightSidecarImages
|
|
150
150
|
# have not been set beyond the default, then a thumbnail url from
|
151
151
|
# dct references is used instead.
|
152
152
|
def image_url
|
153
|
-
@image_url ||=
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
end
|
163
|
-
end
|
153
|
+
@image_url ||= if gblsi_thumbnail_uri
|
154
|
+
gblsi_thumbnail_uri
|
155
|
+
elsif restricted_scanned_map?
|
156
|
+
image_reference
|
157
|
+
elsif restricted_wms_layer? && !geoserver_credentials_valid?
|
158
|
+
image_reference
|
159
|
+
else
|
160
|
+
service_url || image_reference
|
161
|
+
end
|
164
162
|
end
|
165
163
|
|
166
164
|
# Checks if the document is Local restriced access and is a scanned map.
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
|
21
|
-
s.add_dependency 'geoblacklight', '>=
|
21
|
+
s.add_dependency 'geoblacklight', '>= 3.3'
|
22
22
|
s.add_dependency 'mini_magick', '~> 4.9.4'
|
23
23
|
s.add_dependency 'image_processing', '~> 1.6'
|
24
24
|
s.add_dependency 'statesman', '>= 3.4'
|
@@ -35,6 +35,6 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.add_development_dependency 'rubocop-rspec', '~> 1.30.0'
|
36
36
|
s.add_development_dependency 'rubocop-rails', '~> 2.9'
|
37
37
|
s.add_development_dependency 'selenium-webdriver'
|
38
|
-
s.add_development_dependency 'solr_wrapper', '~>
|
38
|
+
s.add_development_dependency 'solr_wrapper', '~> 3.1'
|
39
39
|
s.add_development_dependency 'sprockets', '< 4'
|
40
40
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% # header bar for doc items in index view -%>
|
2
|
-
<%= content_tag :div, class: 'documentHeader row', data: { layer_id: document.id,
|
2
|
+
<%= content_tag :div, class: 'documentHeader row', data: { layer_id: document.id, geom: document.geometry.geojson } do %>
|
3
3
|
<div class='status-icons'>
|
4
4
|
<%= render partial: 'header_icons', locals: { document: document } %>
|
5
5
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoblacklight_sidecar_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Larson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geoblacklight
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '3.3'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '3.3'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mini_magick
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,14 +247,14 @@ dependencies:
|
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: '
|
250
|
+
version: '3.1'
|
251
251
|
type: :development
|
252
252
|
prerelease: false
|
253
253
|
version_requirements: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: '
|
257
|
+
version: '3.1'
|
258
258
|
- !ruby/object:Gem::Dependency
|
259
259
|
name: sprockets
|
260
260
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,6 +280,7 @@ files:
|
|
280
280
|
- ".gitignore"
|
281
281
|
- ".rspec"
|
282
282
|
- ".rubocop.yml"
|
283
|
+
- ".solr_wrapper.yml"
|
283
284
|
- ".travis.yml"
|
284
285
|
- Gemfile
|
285
286
|
- LICENSE
|