geoblacklight_sidecar_images 1.1.0 → 1.1.1
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 +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/README.md +1 -0
- data/Rakefile +1 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb +6 -2
- data/lib/geoblacklight_sidecar_images/version.rb +1 -1
- data/spec/fixtures/files/esri-dynamic-layer-all-layers.json +1 -1
- data/spec/fixtures/files/esri-image-map-layer.json +1 -1
- data/spec/fixtures/files/esri-tiled_map_layer.json +1 -1
- data/spec/spec_helper.rb +8 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30d27235777e840c7ba3933a6064c97500ef044f6f694c347ba2bebc8d6b857f
|
|
4
|
+
data.tar.gz: 68550d32b5cea360c95f07944fd55cdebab49ec30fcfd11f4af6674f03f8defb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b295894b5e54795c40a1123f7b345162faa5943c8378fe063e565b45ab929b6d626ba764adde923281413f82c0e9b7bc71fdfc51bb2e09a9aabb96480bd2115d
|
|
7
|
+
data.tar.gz: 8b0418a7bd78401dd994ad7aa9ec6272e6f31dfa37c1989062eb33fe0320cf38fd8fa9e817b52c61393a5bb9cebb1153262aa92d8bb0a8c795779c47f69a206b
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
|
|
71
71
|
SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/blacklight-core
|
|
72
72
|
- name: Upload coverage artifacts
|
|
73
|
-
uses: actions/upload-artifact@
|
|
73
|
+
uses: actions/upload-artifact@v4
|
|
74
74
|
if: always()
|
|
75
75
|
with:
|
|
76
76
|
name: coverage
|
data/README.md
CHANGED
|
@@ -138,6 +138,7 @@ We use a state machine library to track success/failure of our harvest tasks. Th
|
|
|
138
138
|
* placeheld - Harvest was not successful, placeholder imagery will be used
|
|
139
139
|
|
|
140
140
|
```ruby
|
|
141
|
+
SolrDocumentSidecar.in_state(:succeeded) => [#<SolrDocumentSidecar:0x0000000170697960 ... ]
|
|
141
142
|
SolrDocumentSidecar.image.attached? => false
|
|
142
143
|
SolrDocumentSidecar.image_state.current_state => "placeheld"
|
|
143
144
|
SolrDocumentSidecar.image_state.last_transition => #<SidecarImageTransition id: 207, to_state: "placeheld", metadata: {"solr_doc_id"=>"stanford-cg357zz0321", "solr_version"=>1616509329754554368, "placeheld"=>true, "viewer_protocol"=>"wms", "image_url"=>"http://geowebservices-restricted.stanford.edu/geoserver/wms/reflect?&FORMAT=image%2Fpng&TRANSPARENT=TRUE&LAYERS=druid:cg357zz0321&WIDTH=300&HEIGHT=300", "service_url"=>"http://geowebservices-restricted.stanford.edu/geoserver/wms/reflect?&FORMAT=image%2Fpng&TRANSPARENT=TRUE&LAYERS=druid:cg357zz0321&WIDTH=300&HEIGHT=300", "gblsi_thumbnail_uri"=>false, "error"=>"Faraday::Error::ConnectionFailed"},...>
|
data/Rakefile
CHANGED
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
<div class='col-2 thumbnail'>
|
|
6
6
|
<% if document.sidecar.image.attached? %>
|
|
7
7
|
<% if document.sidecar.image.variable? %>
|
|
8
|
-
<%= image_tag document.sidecar.image.variant(resize_to_fit: [200, 200])
|
|
8
|
+
<%= image_tag document.sidecar.image.variant(resize_to_fit: [200, 200]),
|
|
9
|
+
alt: "",
|
|
10
|
+
role: "presentation" %>
|
|
9
11
|
<% else %>
|
|
10
|
-
<%= image_tag document.sidecar.image
|
|
12
|
+
<%= image_tag document.sidecar.image,
|
|
13
|
+
alt: "",
|
|
14
|
+
role: "presentation" %>
|
|
11
15
|
<% end %>
|
|
12
16
|
<% else %>
|
|
13
17
|
<span class="icon square" title="<%=document[Settings.FIELDS.RESOURCE_CLASS]%>">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dcat_bbox": "ENVELOPE(-91.513518, -87.495214, 42.508348, 36.969972)",
|
|
41
41
|
"dct_accessRights_s": "Public",
|
|
42
42
|
"dct_format_s": "Shapefile",
|
|
43
|
-
"dct_references_s": "{\"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer\":\"
|
|
43
|
+
"dct_references_s": "{\"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer\":\"https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/MapServer\",\"http://schema.org/url\":\"https://clearinghouse.isgs.illinois.edu/data/geology/glacial-boundaries\",\"http://schema.org/downloadUrl\":[{\"label\":\"Shapefile\",\"url\":\"https://clearinghouse.isgs.illinois.edu/sites/clearinghouse.isgs/files/Clearinghouse/data/ISGS/Geology/zips/IL_Glacial_Bndys_Py.zip\"}]}",
|
|
44
44
|
"gbl_mdModified_dt": "2018-08-02T17:00:40Z",
|
|
45
45
|
"gbl_mdVersion_s": "Aardvark",
|
|
46
46
|
"dct_isPartOf_sm": "illinois-collection-illinois-geospatial-data-clearinghouse"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dct_accessRights_s": "Public",
|
|
47
47
|
"dct_format_s": "GeoTIFF",
|
|
48
|
-
"dct_references_s": "{\"http://schema.org/url\":\"https://mapsweb.lib.purdue.edu/wabashriver/\",\"http://schema.org/downloadUrl\":[{\"label\":\"GeoTIFF\",\"url\":\"https://mapsweb.lib.purdue.edu/datasets/Wabash1929/wabash_topo_27.tif.zip\"}],\"urn:x-esri:serviceType:ArcGIS#ImageMapLayer\":\"https://
|
|
48
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://mapsweb.lib.purdue.edu/wabashriver/\",\"http://schema.org/downloadUrl\":[{\"label\":\"GeoTIFF\",\"url\":\"https://mapsweb.lib.purdue.edu/datasets/Wabash1929/wabash_topo_27.tif.zip\"}],\"urn:x-esri:serviceType:ArcGIS#ImageMapLayer\":\"https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"http://64.90.181.107/geonetwork/srv/api/records/32653ed6-8d83-4692-8a06-bf13ffe2c018/formatters/xml\"}",
|
|
49
49
|
"gbl_mdModified_dt": "2018-07-20T18:08:03Z",
|
|
50
50
|
"gbl_mdVersion_s": "Aardvark",
|
|
51
51
|
"dct_isPartOf_sm": "purdue-collection-purdue-georeferenced-imagery"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dct_accessRights_s": "Public",
|
|
32
32
|
"dct_format_s": "GeoTIFF",
|
|
33
33
|
"gbl_wxsIdentifier_s": "esri-tiled-map-layer",
|
|
34
|
-
"dct_references_s": "{\"urn:x-esri:serviceType:ArcGIS#TiledMapLayer\":\"https://
|
|
34
|
+
"dct_references_s": "{\"urn:x-esri:serviceType:ArcGIS#TiledMapLayer\":\"https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/MapServer\",\"http://schema.org/downloadUrl\":[]}",
|
|
35
35
|
"gbl_mdModified_dt": "2015-06-16T00:59:49Z",
|
|
36
36
|
"gbl_mdVersion_s": "Aardvark"
|
|
37
37
|
}
|
data/spec/spec_helper.rb
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
ENV["RAILS_ENV"] ||= "test"
|
|
4
4
|
|
|
5
|
+
require "logger"
|
|
6
|
+
|
|
5
7
|
# require "simplecov"
|
|
6
8
|
# SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
|
7
9
|
|
|
@@ -17,6 +19,12 @@ require "webdrivers"
|
|
|
17
19
|
|
|
18
20
|
require "rails/all"
|
|
19
21
|
require "blacklight"
|
|
22
|
+
blacklight_root = Gem.loaded_specs.fetch("blacklight").full_gem_path
|
|
23
|
+
|
|
24
|
+
# Rails 7.1 does not reliably autoload these Blacklight concerns before the
|
|
25
|
+
# EngineCart app boots, so load them explicitly for the test app.
|
|
26
|
+
require File.join(blacklight_root, "app/controllers/concerns/blacklight/search_fields")
|
|
27
|
+
require File.join(blacklight_root, "app/controllers/concerns/blacklight/controller")
|
|
20
28
|
require "geoblacklight"
|
|
21
29
|
require "geoblacklight_sidecar_images"
|
|
22
30
|
|
|
@@ -9,6 +9,16 @@ class TestAppGenerator < Rails::Generators::Base
|
|
|
9
9
|
# into the test app, this generator will be run immediately
|
|
10
10
|
# after setting up the application
|
|
11
11
|
|
|
12
|
+
def disable_include_all_helpers
|
|
13
|
+
return unless File.exist?("config/application.rb")
|
|
14
|
+
|
|
15
|
+
gsub_file(
|
|
16
|
+
"config/application.rb",
|
|
17
|
+
/(\s*config\.load_defaults\s+\d+\.\d+\n)/,
|
|
18
|
+
"\\1 config.action_controller.include_all_helpers = false\n"
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
12
22
|
def add_gems
|
|
13
23
|
gem "blacklight", "~> 7.0"
|
|
14
24
|
gem "geoblacklight", ">= 3.0"
|
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: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
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:
|
|
12
|
+
date: 2026-03-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|