geoblacklight 2.4.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +142 -0
  3. data/.gitignore +8 -0
  4. data/.rubocop.yml +24 -23
  5. data/.rubocop_todo.yml +398 -12
  6. data/README.md +3 -3
  7. data/Rakefile +13 -4
  8. data/app/assets/images/favicon.ico +0 -0
  9. data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +1 -1
  10. data/app/assets/javascripts/geoblacklight/geoblacklight.js +18 -1
  11. data/app/assets/javascripts/geoblacklight/modules/bookmarks.js +43 -0
  12. data/app/assets/javascripts/geoblacklight/modules/metadata_download_button.js +6 -1
  13. data/app/assets/javascripts/geoblacklight/modules/results.js +7 -8
  14. data/app/assets/javascripts/geoblacklight/modules/svg_tooltips.js +31 -0
  15. data/app/assets/javascripts/geoblacklight/modules/util.js +5 -0
  16. data/app/assets/javascripts/geoblacklight/viewers/esri.js +3 -3
  17. data/app/assets/javascripts/geoblacklight/viewers/esri/tiled_map_layer.js +1 -1
  18. data/app/assets/javascripts/geoblacklight/viewers/index_map.js +1 -1
  19. data/app/assets/javascripts/geoblacklight/viewers/map.js +12 -2
  20. data/app/assets/javascripts/geoblacklight/viewers/tms.js +10 -0
  21. data/app/assets/javascripts/geoblacklight/viewers/wms.js +3 -3
  22. data/app/assets/stylesheets/geoblacklight/geoblacklight.scss +2 -0
  23. data/app/assets/stylesheets/geoblacklight/modules/_base.scss +33 -0
  24. data/app/assets/stylesheets/geoblacklight/{_blacklight_overrides.scss → modules/_blacklight_overrides.scss} +1 -1
  25. data/app/assets/stylesheets/geoblacklight/{_styles.scss → modules/_styles.scss} +1 -0
  26. data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +37 -54
  27. data/app/assets/stylesheets/geoblacklight/modules/item.scss +1 -0
  28. data/app/assets/stylesheets/geoblacklight/modules/results.scss +17 -29
  29. data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +12 -42
  30. data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +17 -59
  31. data/app/controllers/download_controller.rb +12 -12
  32. data/app/controllers/relation_controller.rb +1 -0
  33. data/app/controllers/wms_controller.rb +1 -0
  34. data/app/helpers/arcgis_helper.rb +1 -0
  35. data/app/helpers/blacklight_helper.rb +1 -0
  36. data/app/helpers/carto_helper.rb +1 -0
  37. data/app/helpers/geoblacklight_helper.rb +37 -72
  38. data/app/models/concerns/geoblacklight/solr_document.rb +15 -19
  39. data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +2 -1
  40. data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -13
  41. data/app/models/concerns/geoblacklight/solr_document/citation.rb +1 -0
  42. data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
  43. data/app/models/concerns/geoblacklight/solr_document/inspection.rb +2 -1
  44. data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +6 -4
  45. data/app/presenters/geoblacklight/document_presenter.rb +2 -1
  46. data/app/views/catalog/_arcgis.html.erb +4 -0
  47. data/app/views/catalog/_carto.html.erb +4 -0
  48. data/app/views/catalog/_document_split.html.erb +1 -1
  49. data/app/views/catalog/_downloads_primary.html.erb +8 -1
  50. data/app/views/catalog/_header_icons.html.erb +3 -3
  51. data/app/views/catalog/_home_text.html.erb +3 -0
  52. data/app/views/catalog/_index_split_default.html.erb +21 -21
  53. data/app/views/catalog/_show_default_viewer_container.html.erb +1 -1
  54. data/app/views/download/hgl.html.erb +13 -11
  55. data/app/views/relation/_ancestors.html.erb +3 -6
  56. data/app/views/relation/_descendants.html.erb +4 -7
  57. data/app/views/relation/index.html.erb +20 -8
  58. data/app/views/relation/index.json.jbuilder +2 -1
  59. data/app/views/shared/_header_navbar.html.erb +0 -2
  60. data/babel.config.json +4 -0
  61. data/bin/coverage.rb +36 -0
  62. data/config/initializers/new_gbl_settings_defaults_3_3.yml +10 -0
  63. data/config/initializers/rails_config.rb +5 -0
  64. data/config/locales/geoblacklight.en.yml +7 -2
  65. data/geoblacklight.gemspec +7 -9
  66. data/jest.config.js +25 -0
  67. data/lib/generators/geoblacklight/assets_generator.rb +46 -0
  68. data/lib/generators/geoblacklight/install_generator.rb +4 -10
  69. data/lib/generators/geoblacklight/templates/assets/_blacklight.scss +1 -0
  70. data/lib/generators/geoblacklight/templates/assets/_customizations.scss +28 -0
  71. data/{app/assets/stylesheets/geoblacklight/application.scss → lib/generators/geoblacklight/templates/assets/_geoblacklight.scss} +0 -1
  72. data/lib/generators/geoblacklight/templates/assets/application.scss +7 -0
  73. data/lib/generators/geoblacklight/templates/{geoblacklight.js → assets/geoblacklight.js} +0 -0
  74. data/lib/generators/geoblacklight/templates/catalog_controller.rb +5 -3
  75. data/lib/generators/geoblacklight/templates/settings.yml +20 -17
  76. data/lib/generators/geoblacklight/webpacker_generator.rb +1 -0
  77. data/lib/geoblacklight.rb +2 -2
  78. data/lib/geoblacklight/bounding_box.rb +2 -1
  79. data/lib/geoblacklight/catalog_helper_override.rb +1 -0
  80. data/lib/geoblacklight/constants.rb +2 -0
  81. data/lib/geoblacklight/download.rb +2 -1
  82. data/lib/geoblacklight/download/geojson_download.rb +1 -0
  83. data/lib/geoblacklight/download/geotiff_download.rb +1 -0
  84. data/lib/geoblacklight/download/hgl_download.rb +1 -0
  85. data/lib/geoblacklight/download/kmz_download.rb +3 -2
  86. data/lib/geoblacklight/download/shapefile_download.rb +1 -0
  87. data/lib/geoblacklight/engine.rb +2 -2
  88. data/lib/geoblacklight/exceptions.rb +1 -0
  89. data/lib/geoblacklight/geoblacklight_helper_behavior.rb +1 -0
  90. data/lib/geoblacklight/geometry.rb +70 -0
  91. data/lib/geoblacklight/item_viewer.rb +6 -1
  92. data/lib/geoblacklight/metadata.rb +1 -0
  93. data/lib/geoblacklight/metadata/base.rb +2 -7
  94. data/lib/geoblacklight/metadata/fgdc.rb +1 -0
  95. data/lib/geoblacklight/metadata/html.rb +2 -2
  96. data/lib/geoblacklight/metadata/iso19139.rb +1 -0
  97. data/lib/geoblacklight/metadata_transformer.rb +1 -0
  98. data/lib/geoblacklight/metadata_transformer/base.rb +1 -0
  99. data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
  100. data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
  101. data/lib/geoblacklight/reference.rb +1 -0
  102. data/lib/geoblacklight/references.rb +7 -3
  103. data/lib/geoblacklight/relation/ancestors.rb +3 -2
  104. data/lib/geoblacklight/relation/descendants.rb +2 -1
  105. data/lib/geoblacklight/relation/relation_response.rb +2 -1
  106. data/lib/geoblacklight/routes.rb +1 -0
  107. data/lib/geoblacklight/routes/downloadable.rb +1 -0
  108. data/lib/geoblacklight/routes/exportable.rb +1 -0
  109. data/lib/geoblacklight/routes/wms.rb +1 -0
  110. data/lib/geoblacklight/version.rb +2 -1
  111. data/lib/geoblacklight/view_helper_override.rb +1 -0
  112. data/lib/geoblacklight/wms_layer.rb +2 -4
  113. data/lib/geoblacklight/wms_layer/feature_info_response.rb +1 -0
  114. data/lib/tasks/geoblacklight.rake +38 -32
  115. data/package.json +17 -1
  116. data/setupJest.js +14 -0
  117. data/solr/conf/schema.xml +1 -3
  118. data/spec/config/initializers/rails_config_spec.rb +14 -0
  119. data/spec/controllers/catalog_controller_spec.rb +7 -6
  120. data/spec/controllers/download_controller_spec.rb +1 -0
  121. data/spec/controllers/relation_controller_spec.rb +1 -0
  122. data/spec/controllers/wms_controller_spec.rb +1 -0
  123. data/spec/factories/user.rb +1 -0
  124. data/spec/features/bookmarks_spec.rb +1 -0
  125. data/spec/features/configurable_basemap_spec.rb +1 -0
  126. data/spec/features/data_dictionary_download_spec.rb +1 -0
  127. data/spec/features/download_layer_spec.rb +2 -1
  128. data/spec/features/empty_search_spec.rb +1 -0
  129. data/spec/features/esri_viewer_spec.rb +1 -5
  130. data/spec/features/exports_spec.rb +4 -12
  131. data/spec/features/help_text_spec.rb +1 -0
  132. data/spec/features/home_page_spec.rb +6 -0
  133. data/spec/features/iiif_viewer_spec.rb +1 -0
  134. data/spec/features/index_map_spec.rb +1 -0
  135. data/spec/features/layer_inspection_spec.rb +1 -0
  136. data/spec/features/layer_opacity_spec.rb +1 -0
  137. data/spec/features/layer_preview_spec.rb +1 -0
  138. data/spec/features/layer_with_no_references_spec.rb +1 -0
  139. data/spec/features/linkified_attribute_table_spec.rb +1 -0
  140. data/spec/features/metadata_panel_spec.rb +1 -0
  141. data/spec/features/missing_metadata_spec.rb +1 -0
  142. data/spec/features/multiple_downloads_spec.rb +15 -0
  143. data/spec/features/oembed_spec.rb +1 -0
  144. data/spec/features/relations_spec.rb +10 -29
  145. data/spec/features/saved_searches_spec.rb +1 -0
  146. data/spec/features/search_bar_spec.rb +1 -0
  147. data/spec/features/search_results_map_spec.rb +1 -6
  148. data/spec/features/search_results_overlap_ratio_spec.rb +6 -5
  149. data/spec/features/search_spec.rb +1 -0
  150. data/spec/features/show_page_metadata_spec.rb +1 -0
  151. data/spec/features/sms_spec.rb +1 -0
  152. data/spec/features/split_view.html.erb_spec.rb +3 -2
  153. data/spec/features/suppressed_records_spec.rb +1 -0
  154. data/spec/features/tms_spec.rb +10 -0
  155. data/spec/features/web_services_modal_spec.rb +1 -0
  156. data/spec/fixtures/solr_documents/multiple-downloads.json +30 -0
  157. data/spec/fixtures/solr_documents/public_iiif_princeton.json +1 -1
  158. data/spec/fixtures/solr_documents/tms.json +29 -0
  159. data/spec/helpers/arcgis_helper_spec.rb +1 -0
  160. data/spec/helpers/carto_helper_spec.rb +1 -0
  161. data/spec/helpers/geoblacklight_helper_spec.rb +73 -14
  162. data/spec/javascripts/geoblacklight_spec.js +0 -6
  163. data/spec/javascripts/metadata_download_button_spec.js +5 -3
  164. data/spec/javascripts/util_spec.js +2 -4
  165. data/spec/lib/geoblacklight/bounding_box_spec.rb +1 -0
  166. data/spec/lib/geoblacklight/document_presenter_spec.rb +3 -2
  167. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -0
  168. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -0
  169. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -0
  170. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +3 -2
  171. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -0
  172. data/spec/lib/geoblacklight/download_spec.rb +3 -2
  173. data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
  174. data/spec/lib/geoblacklight/geometry_spec.rb +48 -0
  175. data/spec/lib/geoblacklight/item_viewer_spec.rb +13 -0
  176. data/spec/lib/geoblacklight/metadata/base_spec.rb +1 -0
  177. data/spec/lib/geoblacklight/metadata/html_spec.rb +1 -0
  178. data/spec/lib/geoblacklight/metadata_spec.rb +1 -0
  179. data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +3 -2
  180. data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +3 -2
  181. data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +3 -2
  182. data/spec/lib/geoblacklight/metadata_transformer_spec.rb +4 -3
  183. data/spec/lib/geoblacklight/reference_spec.rb +1 -0
  184. data/spec/lib/geoblacklight/references_spec.rb +3 -4
  185. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +2 -1
  186. data/spec/lib/geoblacklight/relation/descendants_spec.rb +2 -1
  187. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +1 -0
  188. data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -0
  189. data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +5 -4
  190. data/spec/lib/geoblacklight/wms_layer_spec.rb +1 -0
  191. data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +1 -20
  192. data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +1 -0
  193. data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +1 -0
  194. data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +1 -0
  195. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +1 -0
  196. data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +15 -2
  197. data/spec/routing/catalog_routing_spec.rb +1 -0
  198. data/spec/spec_helper.rb +12 -9
  199. data/spec/support/backport_test_helpers.rb +1 -0
  200. data/spec/support/features.rb +1 -0
  201. data/spec/support/features/session_helpers.rb +1 -0
  202. data/spec/support/fixtures.rb +1 -0
  203. data/spec/tasks/geoblacklight_spec.rb +4 -3
  204. data/spec/test_app_templates/Gemfile.extra +1 -0
  205. data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -8
  206. data/spec/views/catalog/_document_split.html.erb_spec.rb +2 -1
  207. data/spec/views/catalog/_index_split.html.erb_spec.rb +2 -1
  208. data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -0
  209. data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -0
  210. data/spec/views/catalog/_show_tools.html.erb_spec.rb +3 -5
  211. data/template.rb +4 -2
  212. metadata +74 -78
  213. data/.circleci/config.yml +0 -164
  214. data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +0 -36
  215. data/app/assets/stylesheets/geoblacklight/modules/relations.scss +0 -15
  216. data/app/views/catalog/_exports.html.erb +0 -3
  217. data/app/views/catalog/_show_tools.html.erb +0 -25
  218. data/lib/generators/geoblacklight/templates/geoblacklight.scss +0 -4
  219. data/spec/javascripts/spec_helper.js +0 -32
  220. data/spec/lib/geoblacklight/controller_override_spec.rb +0 -1
  221. data/spec/teaspoon_env.rb +0 -213
  222. data/vendor/assets/javascripts/readmore.js +0 -0
  223. data/vendor/assets/javascripts/readmore.min.js +0 -0
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  require 'spec_helper'
2
3
 
3
- describe 'catalog/_document_split.html.erb' do
4
+ describe 'catalog/_document_split.html.erb', type: :view do
4
5
  # TODO: js plugin refactor really needs to be redone so that the views can be testable
5
6
  end
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  require 'spec_helper'
2
3
 
3
- describe 'catalog/_document_split.html.erb' do
4
+ describe 'catalog/_document_split.html.erb', type: :view do
4
5
  # TODO: js plugin refactor really needs to be redone so that the views can be testable
5
6
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'catalog/_results_pagination.html.erb', type: :view do
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'catalog/_show_downloads.html.erb', type: :view do
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'catalog/_show_tools.html.erb', type: :view do
@@ -6,11 +7,8 @@ describe 'catalog/_show_tools.html.erb', type: :view do
6
7
  let(:context) { Blacklight::Configuration::Context.new(controller) }
7
8
 
8
9
  before do
9
- assign :response, instance_double(Blacklight::Solr::Response, params: {})
10
10
  assign :document, document
11
11
  allow(view).to receive(:blacklight_config).and_return blacklight_config
12
- allow(view).to receive(:has_user_authentication_provider?).and_return false
13
-
14
12
  allow(view).to receive(:blacklight_configuration_context).and_return context
15
13
  end
16
14
 
@@ -18,8 +16,8 @@ describe 'catalog/_show_tools.html.erb', type: :view do
18
16
  let(:document_actions) { blacklight_config.show.document_actions }
19
17
 
20
18
  it 'renders a document action' do
21
- allow(view).to receive(:some_action_solr_document_path).with(document).and_return 'x'
22
- document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action'
19
+ allow(view).to receive(:some_action_solr_document_path).with(document, any_args).and_return 'x'
20
+ document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new key: :some_action, name: :some_action, partial: 'document_action'
23
21
  render partial: 'catalog/show_tools'
24
22
  expect(rendered).to have_link 'Some action', href: 'x'
25
23
  end
data/template.rb CHANGED
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
1
2
  gem 'blacklight', '~> 7.0'
2
- gem 'geoblacklight', '~> 2.0'
3
- gem 'webpacker'
3
+ gem 'geoblacklight', '~> 3.0'
4
+ gem 'webpacker' unless Rails.version.to_s.start_with? '6.1.'
5
+ gem 'sprockets', '< 4.0' # Use sprockets less than 4.0, let webpacker users set this up themselves
4
6
 
5
7
  # Hack for https://github.com/rails/rails/issues/35153
6
8
  # Adapted from https://github.com/projectblacklight/blacklight/pull/2065
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -11,22 +11,28 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-07-08 00:00:00.000000000 Z
14
+ date: 2021-03-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - "~>"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: 5.2.4
23
+ - - "<"
24
+ - !ruby/object:Gem::Version
25
+ version: '6.2'
23
26
  type: :runtime
24
27
  prerelease: false
25
28
  version_requirements: !ruby/object:Gem::Requirement
26
29
  requirements:
27
- - - "~>"
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.2.4
33
+ - - "<"
28
34
  - !ruby/object:Gem::Version
29
- version: '5.0'
35
+ version: '6.2'
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: blacklight
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -41,20 +47,6 @@ dependencies:
41
47
  - - "~>"
42
48
  - !ruby/object:Gem::Version
43
49
  version: '7.0'
44
- - !ruby/object:Gem::Dependency
45
- name: font-awesome-rails
46
- requirement: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: '0'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: '0'
58
50
  - !ruby/object:Gem::Dependency
59
51
  name: config
60
52
  requirement: !ruby/object:Gem::Requirement
@@ -111,20 +103,6 @@ dependencies:
111
103
  - - ">="
112
104
  - !ruby/object:Gem::Version
113
105
  version: '0'
114
- - !ruby/object:Gem::Dependency
115
- name: geoblacklight-icons
116
- requirement: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: '0.2'
121
- type: :runtime
122
- prerelease: false
123
- version_requirements: !ruby/object:Gem::Requirement
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- version: '0.2'
128
106
  - !ruby/object:Gem::Dependency
129
107
  name: deprecation
130
108
  requirement: !ruby/object:Gem::Requirement
@@ -182,7 +160,7 @@ dependencies:
182
160
  - !ruby/object:Gem::Version
183
161
  version: '0'
184
162
  - !ruby/object:Gem::Dependency
185
- name: webpacker
163
+ name: rgeo-geojson
186
164
  requirement: !ruby/object:Gem::Requirement
187
165
  requirements:
188
166
  - - ">="
@@ -227,16 +205,16 @@ dependencies:
227
205
  name: rspec-rails
228
206
  requirement: !ruby/object:Gem::Requirement
229
207
  requirements:
230
- - - "~>"
208
+ - - ">="
231
209
  - !ruby/object:Gem::Version
232
- version: '3.1'
210
+ version: '0'
233
211
  type: :development
234
212
  prerelease: false
235
213
  version_requirements: !ruby/object:Gem::Requirement
236
214
  requirements:
237
- - - "~>"
215
+ - - ">="
238
216
  - !ruby/object:Gem::Version
239
- version: '3.1'
217
+ version: '0'
240
218
  - !ruby/object:Gem::Dependency
241
219
  name: engine_cart
242
220
  requirement: !ruby/object:Gem::Requirement
@@ -308,21 +286,21 @@ dependencies:
308
286
  - !ruby/object:Gem::Version
309
287
  version: '1.3'
310
288
  - !ruby/object:Gem::Dependency
311
- name: bixby
289
+ name: simplecov
312
290
  requirement: !ruby/object:Gem::Requirement
313
291
  requirements:
314
- - - ">="
292
+ - - "~>"
315
293
  - !ruby/object:Gem::Version
316
- version: '0'
294
+ version: 0.17.1
317
295
  type: :development
318
296
  prerelease: false
319
297
  version_requirements: !ruby/object:Gem::Requirement
320
298
  requirements:
321
- - - ">="
299
+ - - "~>"
322
300
  - !ruby/object:Gem::Version
323
- version: '0'
301
+ version: 0.17.1
324
302
  - !ruby/object:Gem::Dependency
325
- name: coveralls
303
+ name: foreman
326
304
  requirement: !ruby/object:Gem::Requirement
327
305
  requirements:
328
306
  - - ">="
@@ -336,47 +314,47 @@ dependencies:
336
314
  - !ruby/object:Gem::Version
337
315
  version: '0'
338
316
  - !ruby/object:Gem::Dependency
339
- name: simplecov
317
+ name: rubocop
340
318
  requirement: !ruby/object:Gem::Requirement
341
319
  requirements:
342
320
  - - "~>"
343
321
  - !ruby/object:Gem::Version
344
- version: '0.16'
322
+ version: '1.10'
345
323
  type: :development
346
324
  prerelease: false
347
325
  version_requirements: !ruby/object:Gem::Requirement
348
326
  requirements:
349
327
  - - "~>"
350
328
  - !ruby/object:Gem::Version
351
- version: '0.16'
329
+ version: '1.10'
352
330
  - !ruby/object:Gem::Dependency
353
- name: foreman
331
+ name: rubocop-rails
354
332
  requirement: !ruby/object:Gem::Requirement
355
333
  requirements:
356
- - - ">="
334
+ - - "~>"
357
335
  - !ruby/object:Gem::Version
358
- version: '0'
336
+ version: '2.9'
359
337
  type: :development
360
338
  prerelease: false
361
339
  version_requirements: !ruby/object:Gem::Requirement
362
340
  requirements:
363
- - - ">="
341
+ - - "~>"
364
342
  - !ruby/object:Gem::Version
365
- version: '0'
343
+ version: '2.9'
366
344
  - !ruby/object:Gem::Dependency
367
- name: teaspoon
345
+ name: rubocop-rspec
368
346
  requirement: !ruby/object:Gem::Requirement
369
347
  requirements:
370
- - - ">="
348
+ - - "~>"
371
349
  - !ruby/object:Gem::Version
372
- version: '0'
350
+ version: '2.2'
373
351
  type: :development
374
352
  prerelease: false
375
353
  version_requirements: !ruby/object:Gem::Requirement
376
354
  requirements:
377
- - - ">="
355
+ - - "~>"
378
356
  - !ruby/object:Gem::Version
379
- version: '0'
357
+ version: '2.2'
380
358
  description: GeoBlacklight provides a world-class discovery platform for geospatial
381
359
  (GIS) holdings. It is an open collaborative project aiming to build off of the successes
382
360
  of the Blacklight Solr-powered discovery interface and the multi-institutional OpenGeoportal
@@ -386,12 +364,13 @@ email:
386
364
  - drh@stanford.edu
387
365
  - eliotj@princeton.edu
388
366
  - pjreed@stanford.edu
389
- executables: []
367
+ executables:
368
+ - coverage.rb
390
369
  extensions: []
391
370
  extra_rdoc_files: []
392
371
  files:
393
- - ".circleci/config.yml"
394
372
  - ".github/ISSUE_TEMPLATE.md"
373
+ - ".github/workflows/ruby.yml"
395
374
  - ".gitignore"
396
375
  - ".gitmodules"
397
376
  - ".hound.yml"
@@ -468,6 +447,7 @@ files:
468
447
  - app/assets/images/blacklight/uva.svg
469
448
  - app/assets/images/blacklight/web_services.svg
470
449
  - app/assets/images/blacklight/wisconsin.svg
450
+ - app/assets/images/favicon.ico
471
451
  - app/assets/javascripts/geoblacklight/basemaps.js
472
452
  - app/assets/javascripts/geoblacklight/controls.js
473
453
  - app/assets/javascripts/geoblacklight/controls/opacity.js
@@ -476,6 +456,7 @@ files:
476
456
  - app/assets/javascripts/geoblacklight/downloaders/hgl_downloader.js
477
457
  - app/assets/javascripts/geoblacklight/geoblacklight.js
478
458
  - app/assets/javascripts/geoblacklight/modules.js
459
+ - app/assets/javascripts/geoblacklight/modules/bookmarks.js
479
460
  - app/assets/javascripts/geoblacklight/modules/download.js
480
461
  - app/assets/javascripts/geoblacklight/modules/geosearch.js
481
462
  - app/assets/javascripts/geoblacklight/modules/help_text.js
@@ -486,6 +467,7 @@ files:
486
467
  - app/assets/javascripts/geoblacklight/modules/metadata_download_button.js
487
468
  - app/assets/javascripts/geoblacklight/modules/relations.js
488
469
  - app/assets/javascripts/geoblacklight/modules/results.js
470
+ - app/assets/javascripts/geoblacklight/modules/svg_tooltips.js
489
471
  - app/assets/javascripts/geoblacklight/modules/util.js
490
472
  - app/assets/javascripts/geoblacklight/templates/index_map_download.hbs
491
473
  - app/assets/javascripts/geoblacklight/templates/index_map_info.hbs
@@ -499,12 +481,13 @@ files:
499
481
  - app/assets/javascripts/geoblacklight/viewers/index_map.js
500
482
  - app/assets/javascripts/geoblacklight/viewers/map.js
501
483
  - app/assets/javascripts/geoblacklight/viewers/oembed.js
484
+ - app/assets/javascripts/geoblacklight/viewers/tms.js
502
485
  - app/assets/javascripts/geoblacklight/viewers/viewer.js
503
486
  - app/assets/javascripts/geoblacklight/viewers/wms.js
504
- - app/assets/stylesheets/geoblacklight/_blacklight_overrides.scss
505
- - app/assets/stylesheets/geoblacklight/_geoblacklight.scss
506
- - app/assets/stylesheets/geoblacklight/_styles.scss
507
- - app/assets/stylesheets/geoblacklight/application.scss
487
+ - app/assets/stylesheets/geoblacklight/geoblacklight.scss
488
+ - app/assets/stylesheets/geoblacklight/modules/_base.scss
489
+ - app/assets/stylesheets/geoblacklight/modules/_blacklight_overrides.scss
490
+ - app/assets/stylesheets/geoblacklight/modules/_styles.scss
508
491
  - app/assets/stylesheets/geoblacklight/modules/downloads.scss
509
492
  - app/assets/stylesheets/geoblacklight/modules/facets.scss
510
493
  - app/assets/stylesheets/geoblacklight/modules/geosearch.scss
@@ -519,7 +502,6 @@ files:
519
502
  - app/assets/stylesheets/geoblacklight/modules/metadata_missing.scss
520
503
  - app/assets/stylesheets/geoblacklight/modules/mixins.scss
521
504
  - app/assets/stylesheets/geoblacklight/modules/modal.scss
522
- - app/assets/stylesheets/geoblacklight/modules/relations.scss
523
505
  - app/assets/stylesheets/geoblacklight/modules/results.scss
524
506
  - app/assets/stylesheets/geoblacklight/modules/search_widgets.scss
525
507
  - app/assets/stylesheets/geoblacklight/modules/sidebar.scss
@@ -540,6 +522,8 @@ files:
540
522
  - app/models/concerns/geoblacklight/solr_document/inspection.rb
541
523
  - app/models/concerns/geoblacklight/spatial_search_behavior.rb
542
524
  - app/presenters/geoblacklight/document_presenter.rb
525
+ - app/views/catalog/_arcgis.html.erb
526
+ - app/views/catalog/_carto.html.erb
543
527
  - app/views/catalog/_citation.html.erb
544
528
  - app/views/catalog/_data_dictionary.html.erb
545
529
  - app/views/catalog/_document_action.html.erb
@@ -549,7 +533,6 @@ files:
549
533
  - app/views/catalog/_downloads_generated.html.erb
550
534
  - app/views/catalog/_downloads_primary.html.erb
551
535
  - app/views/catalog/_downloads_secondary.html.erb
552
- - app/views/catalog/_exports.html.erb
553
536
  - app/views/catalog/_facet_tag_item.html.erb
554
537
  - app/views/catalog/_facet_tag_layout.html.erb
555
538
  - app/views/catalog/_header_icons.html.erb
@@ -565,7 +548,6 @@ files:
565
548
  - app/views/catalog/_show_downloads.html.erb
566
549
  - app/views/catalog/_show_header_default.html.erb
567
550
  - app/views/catalog/_show_sidebar.html.erb
568
- - app/views/catalog/_show_tools.html.erb
569
551
  - app/views/catalog/_web_services.html.erb
570
552
  - app/views/catalog/_web_services_default.html.erb
571
553
  - app/views/catalog/_web_services_wfs.html.erb
@@ -582,14 +564,22 @@ files:
582
564
  - app/views/relation/index.html.erb
583
565
  - app/views/relation/index.json.jbuilder
584
566
  - app/views/shared/_header_navbar.html.erb
567
+ - babel.config.json
568
+ - bin/coverage.rb
569
+ - config/initializers/new_gbl_settings_defaults_3_3.yml
585
570
  - config/initializers/rails_config.rb
586
571
  - config/locales/geoblacklight.en.yml
587
572
  - geoblacklight.gemspec
573
+ - jest.config.js
574
+ - lib/generators/geoblacklight/assets_generator.rb
588
575
  - lib/generators/geoblacklight/install_generator.rb
589
576
  - lib/generators/geoblacklight/templates/Procfile
577
+ - lib/generators/geoblacklight/templates/assets/_blacklight.scss
578
+ - lib/generators/geoblacklight/templates/assets/_customizations.scss
579
+ - lib/generators/geoblacklight/templates/assets/_geoblacklight.scss
580
+ - lib/generators/geoblacklight/templates/assets/application.scss
581
+ - lib/generators/geoblacklight/templates/assets/geoblacklight.js
590
582
  - lib/generators/geoblacklight/templates/catalog_controller.rb
591
- - lib/generators/geoblacklight/templates/geoblacklight.js
592
- - lib/generators/geoblacklight/templates/geoblacklight.scss
593
583
  - lib/generators/geoblacklight/templates/package.json
594
584
  - lib/generators/geoblacklight/templates/settings.yml
595
585
  - lib/generators/geoblacklight/templates/webpacker.yml
@@ -607,6 +597,7 @@ files:
607
597
  - lib/geoblacklight/engine.rb
608
598
  - lib/geoblacklight/exceptions.rb
609
599
  - lib/geoblacklight/geoblacklight_helper_behavior.rb
600
+ - lib/geoblacklight/geometry.rb
610
601
  - lib/geoblacklight/item_viewer.rb
611
602
  - lib/geoblacklight/metadata.rb
612
603
  - lib/geoblacklight/metadata/base.rb
@@ -641,6 +632,7 @@ files:
641
632
  - schema/schema-commentary.md
642
633
  - schema/subjects.md
643
634
  - schema/type-values.md
635
+ - setupJest.js
644
636
  - solr/conf/_rest_managed.json
645
637
  - solr/conf/admin-extra.html
646
638
  - solr/conf/core.properties
@@ -658,6 +650,7 @@ files:
658
650
  - solr/conf/xslt/example_atom.xsl
659
651
  - solr/conf/xslt/example_rss.xsl
660
652
  - solr/conf/xslt/luke.xsl
653
+ - spec/config/initializers/rails_config_spec.rb
661
654
  - spec/controllers/catalog_controller_spec.rb
662
655
  - spec/controllers/download_controller_spec.rb
663
656
  - spec/controllers/relation_controller_spec.rb
@@ -681,6 +674,7 @@ files:
681
674
  - spec/features/linkified_attribute_table_spec.rb
682
675
  - spec/features/metadata_panel_spec.rb
683
676
  - spec/features/missing_metadata_spec.rb
677
+ - spec/features/multiple_downloads_spec.rb
684
678
  - spec/features/oembed_spec.rb
685
679
  - spec/features/relations_spec.rb
686
680
  - spec/features/saved_searches_spec.rb
@@ -692,6 +686,7 @@ files:
692
686
  - spec/features/sms_spec.rb
693
687
  - spec/features/split_view.html.erb_spec.rb
694
688
  - spec/features/suppressed_records_spec.rb
689
+ - spec/features/tms_spec.rb
695
690
  - spec/features/web_services_modal_spec.rb
696
691
  - spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
697
692
  - spec/fixtures/iso19139/stanford-cg357zz0321.xml
@@ -722,6 +717,7 @@ files:
722
717
  - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
723
718
  - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
724
719
  - spec/fixtures/solr_documents/metadata_no_solr_geom.json
720
+ - spec/fixtures/solr_documents/multiple-downloads.json
725
721
  - spec/fixtures/solr_documents/no_spatial.json
726
722
  - spec/fixtures/solr_documents/oembed.json
727
723
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -733,6 +729,7 @@ files:
733
729
  - spec/fixtures/solr_documents/public_iiif_princeton.json
734
730
  - spec/fixtures/solr_documents/public_polygon_mit.json
735
731
  - spec/fixtures/solr_documents/restricted-line.json
732
+ - spec/fixtures/solr_documents/tms.json
736
733
  - spec/fixtures/solr_documents/umn_metro_result1.json
737
734
  - spec/fixtures/solr_documents/umn_state_result1.json
738
735
  - spec/fixtures/solr_documents/umn_state_result2.json
@@ -742,10 +739,8 @@ files:
742
739
  - spec/helpers/geoblacklight_helper_spec.rb
743
740
  - spec/javascripts/geoblacklight_spec.js
744
741
  - spec/javascripts/metadata_download_button_spec.js
745
- - spec/javascripts/spec_helper.js
746
742
  - spec/javascripts/util_spec.js
747
743
  - spec/lib/geoblacklight/bounding_box_spec.rb
748
- - spec/lib/geoblacklight/controller_override_spec.rb
749
744
  - spec/lib/geoblacklight/document_presenter_spec.rb
750
745
  - spec/lib/geoblacklight/download/geojson_download_spec.rb
751
746
  - spec/lib/geoblacklight/download/geotiff_download_spec.rb
@@ -754,6 +749,7 @@ files:
754
749
  - spec/lib/geoblacklight/download/shapefile_download_spec.rb
755
750
  - spec/lib/geoblacklight/download_spec.rb
756
751
  - spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb
752
+ - spec/lib/geoblacklight/geometry_spec.rb
757
753
  - spec/lib/geoblacklight/item_viewer_spec.rb
758
754
  - spec/lib/geoblacklight/metadata/base_spec.rb
759
755
  - spec/lib/geoblacklight/metadata/html_spec.rb
@@ -783,7 +779,6 @@ files:
783
779
  - spec/support/features/session_helpers.rb
784
780
  - spec/support/fixtures.rb
785
781
  - spec/tasks/geoblacklight_spec.rb
786
- - spec/teaspoon_env.rb
787
782
  - spec/test_app_templates/Gemfile.extra
788
783
  - spec/test_app_templates/lib/generators/test_app_generator.rb
789
784
  - spec/test_app_templates/metadata/fgdc.html
@@ -808,8 +803,6 @@ files:
808
803
  - vendor/assets/javascripts/leaflet-src.js.map
809
804
  - vendor/assets/javascripts/leaflet.js.erb
810
805
  - vendor/assets/javascripts/native.history.js
811
- - vendor/assets/javascripts/readmore.js
812
- - vendor/assets/javascripts/readmore.min.js
813
806
  - vendor/assets/stylesheets/leaflet-label.css
814
807
  - vendor/assets/stylesheets/leaflet.css
815
808
  homepage: http://github.com/geoblacklight/geoblacklight
@@ -831,11 +824,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
831
824
  - !ruby/object:Gem::Version
832
825
  version: 2.5.2
833
826
  requirements: []
834
- rubygems_version: 3.1.2
827
+ rubygems_version: 3.2.3
835
828
  signing_key:
836
829
  specification_version: 4
837
830
  summary: A discovery platform for geospatial holdings
838
831
  test_files:
832
+ - spec/config/initializers/rails_config_spec.rb
839
833
  - spec/controllers/catalog_controller_spec.rb
840
834
  - spec/controllers/download_controller_spec.rb
841
835
  - spec/controllers/relation_controller_spec.rb
@@ -859,6 +853,7 @@ test_files:
859
853
  - spec/features/linkified_attribute_table_spec.rb
860
854
  - spec/features/metadata_panel_spec.rb
861
855
  - spec/features/missing_metadata_spec.rb
856
+ - spec/features/multiple_downloads_spec.rb
862
857
  - spec/features/oembed_spec.rb
863
858
  - spec/features/relations_spec.rb
864
859
  - spec/features/saved_searches_spec.rb
@@ -870,6 +865,7 @@ test_files:
870
865
  - spec/features/sms_spec.rb
871
866
  - spec/features/split_view.html.erb_spec.rb
872
867
  - spec/features/suppressed_records_spec.rb
868
+ - spec/features/tms_spec.rb
873
869
  - spec/features/web_services_modal_spec.rb
874
870
  - spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
875
871
  - spec/fixtures/iso19139/stanford-cg357zz0321.xml
@@ -900,6 +896,7 @@ test_files:
900
896
  - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
901
897
  - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
902
898
  - spec/fixtures/solr_documents/metadata_no_solr_geom.json
899
+ - spec/fixtures/solr_documents/multiple-downloads.json
903
900
  - spec/fixtures/solr_documents/no_spatial.json
904
901
  - spec/fixtures/solr_documents/oembed.json
905
902
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -911,6 +908,7 @@ test_files:
911
908
  - spec/fixtures/solr_documents/public_iiif_princeton.json
912
909
  - spec/fixtures/solr_documents/public_polygon_mit.json
913
910
  - spec/fixtures/solr_documents/restricted-line.json
911
+ - spec/fixtures/solr_documents/tms.json
914
912
  - spec/fixtures/solr_documents/umn_metro_result1.json
915
913
  - spec/fixtures/solr_documents/umn_state_result1.json
916
914
  - spec/fixtures/solr_documents/umn_state_result2.json
@@ -920,10 +918,8 @@ test_files:
920
918
  - spec/helpers/geoblacklight_helper_spec.rb
921
919
  - spec/javascripts/geoblacklight_spec.js
922
920
  - spec/javascripts/metadata_download_button_spec.js
923
- - spec/javascripts/spec_helper.js
924
921
  - spec/javascripts/util_spec.js
925
922
  - spec/lib/geoblacklight/bounding_box_spec.rb
926
- - spec/lib/geoblacklight/controller_override_spec.rb
927
923
  - spec/lib/geoblacklight/document_presenter_spec.rb
928
924
  - spec/lib/geoblacklight/download/geojson_download_spec.rb
929
925
  - spec/lib/geoblacklight/download/geotiff_download_spec.rb
@@ -932,6 +928,7 @@ test_files:
932
928
  - spec/lib/geoblacklight/download/shapefile_download_spec.rb
933
929
  - spec/lib/geoblacklight/download_spec.rb
934
930
  - spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb
931
+ - spec/lib/geoblacklight/geometry_spec.rb
935
932
  - spec/lib/geoblacklight/item_viewer_spec.rb
936
933
  - spec/lib/geoblacklight/metadata/base_spec.rb
937
934
  - spec/lib/geoblacklight/metadata/html_spec.rb
@@ -961,7 +958,6 @@ test_files:
961
958
  - spec/support/features/session_helpers.rb
962
959
  - spec/support/fixtures.rb
963
960
  - spec/tasks/geoblacklight_spec.rb
964
- - spec/teaspoon_env.rb
965
961
  - spec/test_app_templates/Gemfile.extra
966
962
  - spec/test_app_templates/lib/generators/test_app_generator.rb
967
963
  - spec/test_app_templates/metadata/fgdc.html