geoblacklight 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/geoblacklight/geoblacklight.js +1 -1
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +4 -0
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +5 -0
- data/app/models/concerns/geoblacklight/solr_document.rb +7 -3
- data/app/views/catalog/_data_dictionary.html.erb +5 -0
- data/app/views/catalog/_downloads.html.erb +3 -48
- data/app/views/catalog/_downloads_primary.html.erb +14 -0
- data/app/views/catalog/_downloads_secondary.html.erb +39 -0
- data/config/locales/geoblacklight.en.yml +1 -0
- data/geoblacklight.gemspec +1 -1
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +1 -0
- data/lib/geoblacklight/constants.rb +2 -1
- data/lib/geoblacklight/routes/downloadable.rb +2 -2
- data/lib/geoblacklight/version.rb +1 -1
- data/schema/geoblacklight-schema.json +2 -2
- data/spec/features/data_dictionary_download_spec.rb +16 -0
- data/spec/features/download_layer_spec.rb +8 -2
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +49 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +20 -0
- data/spec/views/catalog/_downloads.html.erb_spec.rb +29 -0
- metadata +15 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48c9e2e90c4bfabbb4748eb794be90c69a5781cb
|
4
|
+
data.tar.gz: 6df94d214fb1e14663bc20397d8618ba11443736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd18bfc6823fba943918ff5814b4240f9b8d6d7da4e8c1b57a0ecb50a00c4ce8b26b4c2420a74b2f14efbba8a1a1450092c86a8527c940648026012873507476
|
7
|
+
data.tar.gz: de73cdc4fe06a93e1f93ef87b7b4e70a043196c8521e19db2b8ecade2e98e28e6748068bf31e51693bbaa30c95d5631a2af2c0f2124f7553e330a17efd65ccf6
|
@@ -32,11 +32,11 @@ module Geoblacklight
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def direct_download
|
35
|
-
|
35
|
+
references.download.to_hash unless references.download.blank?
|
36
36
|
end
|
37
37
|
|
38
38
|
def hgl_download
|
39
|
-
|
39
|
+
references.hgl.to_hash unless references.hgl.blank?
|
40
40
|
end
|
41
41
|
|
42
42
|
def same_institution?
|
@@ -44,7 +44,11 @@ module Geoblacklight
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def iiif_download
|
47
|
-
|
47
|
+
references.iiif.to_hash unless references.iiif.blank?
|
48
|
+
end
|
49
|
+
|
50
|
+
def data_dictionary_download
|
51
|
+
references.data_dictionary.to_hash unless references.data_dictionary.blank?
|
48
52
|
end
|
49
53
|
|
50
54
|
def item_viewer
|
@@ -1,56 +1,11 @@
|
|
1
1
|
<% document ||= @document %>
|
2
2
|
<% if document_downloadable? %>
|
3
3
|
<div class='btn-group' itemprop='distribution' itemscope='itemscope' itemtype='http://schema.org/DataDownload'>
|
4
|
-
|
5
|
-
<%=
|
6
|
-
<% elsif document.hgl_download.present? %>
|
7
|
-
<%= link_to(download_text(document.download_types.first[0]),
|
8
|
-
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document.id },
|
9
|
-
class: 'btn btn-default') %>
|
10
|
-
<% elsif document.iiif_download.present? %>
|
11
|
-
<%= link_to "Download JPG", iiif_jpg_url, class: 'btn btn-default', download: 'trigger' %>
|
12
|
-
<% else %>
|
13
|
-
<%= link_to(download_text(document.download_types.first[0]), '', data: { download_path: "#{download_path(document.id, type: document.download_types.first[0])}", download: 'trigger', download_type: document.download_types.first[0], download_id: document.id }, class: 'btn btn-default') %>
|
14
|
-
<% end %>
|
15
|
-
<button type='button' class='btn btn-default dropdown-toggle download-dropdown-toggle' data-toggle='dropdown' aria-expanded='false'>
|
16
|
-
<span class='caret'></span>
|
17
|
-
<span class='sr-only'>Toggle Download Dropdown</span>
|
18
|
-
</button>
|
19
|
-
<ul class='dropdown-menu' role='menu'>
|
20
|
-
<% if document.hgl_download.present? %>
|
21
|
-
<li role="presentation" class="dropdown-header">Original</li>
|
22
|
-
<li>
|
23
|
-
<%= link_to(download_text(document.download_types.first[0]),
|
24
|
-
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document.id }) %>
|
25
|
-
</li>
|
26
|
-
<% else %>
|
27
|
-
<% if document.direct_download.present? %>
|
28
|
-
<li role="presentation" class="dropdown-header">Original</li>
|
29
|
-
<li>
|
30
|
-
<%= link_to(download_text(@document.file_format), document.direct_download[:download], 'contentUrl' => document.direct_download[:download], data: { download: 'trigger', download_type: 'direct', download_id: document.id }) %>
|
31
|
-
</li>
|
32
|
-
<% end %>
|
33
|
-
<% if document.download_types.present? || document.iiif_download.present? %>
|
34
|
-
<li role="presentation" class="dropdown-header">Generated</li>
|
35
|
-
<% end %>
|
36
|
-
<% if document.iiif_download.present? %>
|
37
|
-
<li>
|
38
|
-
<%= link_to "Download JPG", iiif_jpg_url, download: 'trigger' %>
|
39
|
-
</li>
|
40
|
-
<% end %>
|
41
|
-
|
42
|
-
<% if document.download_types.present? %>
|
43
|
-
<% document.download_types.each do |type| %>
|
44
|
-
<%= content_tag(:li) do %>
|
45
|
-
<% link_to(download_text(type[0]), '', data: { download_path: "#{download_path(document.id, type: type[0])}", download: 'trigger', download_type: type[0], download_id: document.id }) %>
|
46
|
-
<% end %>
|
47
|
-
<% end %>
|
48
|
-
<% end %>
|
49
|
-
<% end %>
|
50
|
-
</ul>
|
4
|
+
<%= render 'downloads_primary' %>
|
5
|
+
<%= render 'downloads_secondary' %>
|
51
6
|
</div>
|
52
7
|
<% elsif document.restricted? && document.same_institution? %>
|
53
8
|
<div class='panel-body'>
|
54
9
|
<%= link_to t('geoblacklight.tools.login_to_view'), new_user_session_path(referrer: request.original_url) %>
|
55
10
|
</div>
|
56
|
-
<% end %>
|
11
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<%# Renders the primary download that is shown first %>
|
2
|
+
<% document ||= @document %>
|
3
|
+
|
4
|
+
<% if document.direct_download.present? %>
|
5
|
+
<%= link_to(download_text(document.file_format), document.direct_download[:download], class: 'btn btn-default', 'contentUrl' => document.direct_download[:download], data: { download: 'trigger', download_type: 'direct', download_id: document.id }) %>
|
6
|
+
<% elsif document.hgl_download.present? %>
|
7
|
+
<%= link_to(download_text(document.download_types.first[0]),
|
8
|
+
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document.id },
|
9
|
+
class: 'btn btn-default') %>
|
10
|
+
<% elsif document.iiif_download.present? %>
|
11
|
+
<%= link_to "Download JPG", iiif_jpg_url, class: 'btn btn-default', download: 'trigger' %>
|
12
|
+
<% else %>
|
13
|
+
<%= link_to(download_text(document.download_types.first[0]), '', data: { download_path: "#{download_path(document.id, type: document.download_types.first[0])}", download: 'trigger', download_type: document.download_types.first[0], download_id: document.id }, class: 'btn btn-default') %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<%# Renders the secondary downloads displayed in the split dropdown %>
|
2
|
+
<% document ||= @document %>
|
3
|
+
|
4
|
+
<button type='button' class='btn btn-default dropdown-toggle download-dropdown-toggle' data-toggle='dropdown' aria-expanded='false'>
|
5
|
+
<span class='caret'></span>
|
6
|
+
<span class='sr-only'>Toggle Download Dropdown</span>
|
7
|
+
</button>
|
8
|
+
<ul class='dropdown-menu' role='menu'>
|
9
|
+
<% if document.hgl_download.present? %>
|
10
|
+
<li role="presentation" class="dropdown-header">Original</li>
|
11
|
+
<li>
|
12
|
+
<%= link_to(download_text(document.download_types.first[0]),
|
13
|
+
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document.id }) %>
|
14
|
+
</li>
|
15
|
+
<% else %>
|
16
|
+
<% if document.direct_download.present? %>
|
17
|
+
<li role="presentation" class="dropdown-header">Original</li>
|
18
|
+
<li>
|
19
|
+
<%= link_to(download_text(@document.file_format), document.direct_download[:download], 'contentUrl' => document.direct_download[:download], data: { download: 'trigger', download_type: 'direct', download_id: document.id }) %>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
<% if document.download_types.present? || document.iiif_download.present? %>
|
23
|
+
<li role="presentation" class="dropdown-header">Generated</li>
|
24
|
+
<% end %>
|
25
|
+
<% if document.iiif_download.present? %>
|
26
|
+
<li>
|
27
|
+
<%= link_to "Download JPG", iiif_jpg_url, download: 'trigger' %>
|
28
|
+
</li>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% if document.download_types.present? %>
|
32
|
+
<% document.download_types.each do |type| %>
|
33
|
+
<%= content_tag(:li) do %>
|
34
|
+
<% link_to(download_text(type[0]), '', data: { download_path: "#{download_path(document.id, type: type[0])}", download: 'trigger', download_type: type[0], download_id: document.id }) %>
|
35
|
+
<% end %>
|
36
|
+
<% end %>
|
37
|
+
<% end %>
|
38
|
+
<% end %>
|
39
|
+
</ul>
|
data/geoblacklight.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'blacklight', '~> 6.3'
|
22
22
|
spec.add_dependency 'leaflet-rails', '~> 0.7.3'
|
23
|
-
spec.add_dependency 'font-awesome-rails'
|
23
|
+
spec.add_dependency 'font-awesome-rails'
|
24
24
|
spec.add_dependency 'rails_config', '~> 0.4.2'
|
25
25
|
spec.add_dependency 'faraday'
|
26
26
|
spec.add_dependency 'coderay'
|
@@ -212,6 +212,7 @@ class CatalogController < ApplicationController
|
|
212
212
|
config.add_show_tools_partial :web_services, if: proc { |_context, _config, options| options[:document] && (Settings.WEBSERVICES_SHOWN & options[:document].references.refs.map(&:type).map(&:to_s)).any? }
|
213
213
|
config.add_show_tools_partial :metadata, if: proc { |_context, _config, options| options[:document] && (Settings.METADATA_SHOWN & options[:document].references.refs.map(&:type).map(&:to_s)).any? }
|
214
214
|
config.add_show_tools_partial :exports, partial: 'exports', if: proc { |_context, _config, options| options[:document] }
|
215
|
+
config.add_show_tools_partial :data_dictionary, partial: 'data_dictionary', if: proc { |_context, _config, options| options[:document] }
|
215
216
|
config.add_show_tools_partial :downloads, partial: 'downloads', if: proc { |_context, _config, options| options[:document] }
|
216
217
|
|
217
218
|
# Configure basemap provider for GeoBlacklight maps (uses https only basemap
|
@@ -18,7 +18,8 @@ module Geoblacklight
|
|
18
18
|
feature_layer: 'urn:x-esri:serviceType:ArcGIS#FeatureLayer',
|
19
19
|
tiled_map_layer: 'urn:x-esri:serviceType:ArcGIS#TiledMapLayer',
|
20
20
|
dynamic_map_layer: 'urn:x-esri:serviceType:ArcGIS#DynamicMapLayer',
|
21
|
-
image_map_layer: 'urn:x-esri:serviceType:ArcGIS#ImageMapLayer'
|
21
|
+
image_map_layer: 'urn:x-esri:serviceType:ArcGIS#ImageMapLayer',
|
22
|
+
data_dictionary: 'http://lccn.loc.gov/sh85035852'
|
22
23
|
}.freeze
|
23
24
|
end
|
24
25
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"description": "Schema for GeoBlacklight
|
4
|
-
"id": "http://geoblacklight.org/schema",
|
3
|
+
"description": "Schema for GeoBlacklight. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more details.",
|
4
|
+
"id": "http://geoblacklight.org/v1.0/schema",
|
5
5
|
"title": "GeoBlacklight Schema",
|
6
6
|
"required": [
|
7
7
|
"dc_title_s",
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
feature 'Data dictionary download tool' do
|
4
|
+
feature 'when data_dictionary reference present' do
|
5
|
+
scenario 'shows up in tools' do
|
6
|
+
visit solr_document_path 'nyu_2451_34502'
|
7
|
+
expect(page).to have_css 'li.data_dictionary a', text: 'Documentation'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
feature 'when data_dictionary reference absent' do
|
11
|
+
scenario 'download tool is not rendered' do
|
12
|
+
visit solr_document_path 'stanford-cg357zz0321'
|
13
|
+
expect(page).not_to have_css 'li.data_dictionary a', text: 'Documentation'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -15,7 +15,10 @@ feature 'Download layer' do
|
|
15
15
|
expect(shapefile_download).to receive(:get).and_return('mit-us-ma-e25zcta5dct-2000-shapefile.zip')
|
16
16
|
visit solr_document_path('mit-us-ma-e25zcta5dct-2000')
|
17
17
|
find('a', text: 'Download Shapefile').click
|
18
|
-
expect(page).to have_css(
|
18
|
+
expect(page).to have_css(
|
19
|
+
'a[href="/download/file/mit-us-ma-e25zcta5dct-2000-shapefile.zip"]',
|
20
|
+
text: 'Your file mit-us-ma-e25zcta5dct-2000-shapefile.zip is ready for download'
|
21
|
+
)
|
19
22
|
end
|
20
23
|
scenario 'failed download should return message with link to layer', js: true do
|
21
24
|
expect(shapefile_download).to receive(:get).and_raise(Geoblacklight::Exceptions::ExternalDownloadFailed.new(message: 'Failed', url: 'http://www.example.com/failed'))
|
@@ -29,7 +32,10 @@ feature 'Download layer' do
|
|
29
32
|
visit solr_document_path('mit-us-ma-e25zcta5dct-2000')
|
30
33
|
find('button.download-dropdown-toggle').click
|
31
34
|
find('a', text: 'Download KMZ').click
|
32
|
-
expect(page).to have_css(
|
35
|
+
expect(page).to have_css(
|
36
|
+
'a[href="/download/file/mit-us-ma-e25zcta5dct-2000-kmz.kmz"]',
|
37
|
+
text: 'Your file mit-us-ma-e25zcta5dct-2000-kmz.kmz is ready for download'
|
38
|
+
)
|
33
39
|
end
|
34
40
|
scenario 'jpg download option should be present under toggle' do
|
35
41
|
visit solr_document_path('princeton-02870w62c')
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"dc_identifier_s": "http://hdl.handle.net/2451/34502",
|
3
|
+
"dc_title_s": "2015 New York City Subway Complexes and Ridership",
|
4
|
+
"dc_description_s": "The subway complexes layer was created to represent ridership data for the NYC subway system (Metropolitan Transportation Authority, or MTA). This layer is a subset of the subway stations layer (nyu_2451_34503) that has been combined with MTA statistics on ridership; it was originally created in August 2012 and has been updated annually. Ridership data is not available for each individual subway station, as many stations are linked via common entrances and passageways where transfers are free, and because ridership data is not collected for the Staten Island Railway stations. This layer was created by choosing an individual station from nyu_2451_34503 to represent the entire complex, and modifying the station name and train fields appropriately. It should be used for mapping ridership data or for analysis that requires this data, and not for specifying actual station locations or measuring distances. There are 421 complexes, and the field station_ct indicates how many stations are part of a complex. Annual, average weekday, and average weekend ridership is provided for 2007 to 2014. The unique ID is complex_id, which was created by alphabetizing the complexes by borough and station name and assigning a sequential number to a borough prefix. This layer does not include the new 34th St - 11 Av station on the 7 line; it will be updated in summer 2016 once ridership data becomes available. This layer was created as part of the NYC Geodatabase (NYC GDB) project, a resource designed for basic geographic analysis and thematic mapping within the five boroughs of New York City.",
|
5
|
+
"dc_rights_s": "Public",
|
6
|
+
"dct_provenance_s": "Baruch CUNY",
|
7
|
+
"dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/34502\",\"http://schema.org/downloadUrl\":\"https://archive.nyu.edu/retrieve/74701/nyu_2451_34502.zip\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"http://metadata.geo.nyu.edu/records/edu.nyu/handle/2451/34502/iso19139.xml\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/74755/nyu_2451_34502_doc.zip\"}",
|
8
|
+
"layer_id_s": "sdr:nyu_2451_34502",
|
9
|
+
"layer_slug_s": "nyu_2451_34502",
|
10
|
+
"layer_geom_type_s": "Point",
|
11
|
+
"layer_modified_dt": "2016-5-2T18:21:5Z",
|
12
|
+
"dc_format_s": "Shapefile",
|
13
|
+
"dc_language_s": "English",
|
14
|
+
"dc_type_s": "Dataset",
|
15
|
+
"dc_publisher_s": [
|
16
|
+
"Newman Library (Bernard M. Baruch College)"
|
17
|
+
],
|
18
|
+
"dc_creator_sm": "GIS Lab, Newman Library, Baruch CUNY",
|
19
|
+
"dc_subject_sm": [
|
20
|
+
"Subway stations",
|
21
|
+
"Transportation",
|
22
|
+
"Urban transportation",
|
23
|
+
"Local transit",
|
24
|
+
"Commuting"
|
25
|
+
],
|
26
|
+
"dct_isPartOf_sm": "NYC Geodatabase (version jan2016)",
|
27
|
+
"dct_issued_s": "1/15/2016",
|
28
|
+
"dct_temporal_sm": [
|
29
|
+
"2015"
|
30
|
+
],
|
31
|
+
"dct_spatial_sm": [
|
32
|
+
"New York, New York, United States",
|
33
|
+
"Bronx County, New York, United States",
|
34
|
+
"Kings County, New York, United States",
|
35
|
+
"New York County, New York, United States",
|
36
|
+
"Queens County, New York, United States",
|
37
|
+
"Borough of Bronx, New York, United States",
|
38
|
+
"Borough of Brooklyn, New York, United States",
|
39
|
+
"Borough of Manhattan, New York, United States",
|
40
|
+
"Borough of Queens, New York, United States"
|
41
|
+
],
|
42
|
+
"solr_geom": "ENVELOPE(-74.030876, -73.755405, 40.9031249999998, 40.5761269999998)",
|
43
|
+
"solr_year_i": 2015,
|
44
|
+
"dc_source_sm": [
|
45
|
+
"nyu_2451_34635",
|
46
|
+
"nyu_2451_34636"
|
47
|
+
],
|
48
|
+
"geoblacklight_version": "1.0"
|
49
|
+
}
|
@@ -144,6 +144,26 @@ describe Geoblacklight::SolrDocument do
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
end
|
147
|
+
describe 'data_dictionary_download' do
|
148
|
+
describe 'with a data dictionary reference' do
|
149
|
+
let(:document_attributes) do
|
150
|
+
{
|
151
|
+
references_field => {
|
152
|
+
'http://lccn.loc.gov/sh85035852' => 'https://example.edu/documentation/data_dictionary.zip'
|
153
|
+
}.to_json
|
154
|
+
}
|
155
|
+
end
|
156
|
+
it 'returns a data dictionary download hash' do
|
157
|
+
expect(document.data_dictionary_download[:data_dictionary]).to eq('https://example.edu/documentation/data_dictionary.zip')
|
158
|
+
end
|
159
|
+
end
|
160
|
+
describe 'without a data dictionary download' do
|
161
|
+
let(:document_attributes) { {} }
|
162
|
+
it 'returns nil' do
|
163
|
+
expect(document.data_dictionary_download).to be_nil
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
147
167
|
describe 'item_viewer' do
|
148
168
|
let(:document_attributes) { {} }
|
149
169
|
it 'is a ItemViewer' do
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'catalog/_downloads.html.erb', type: :view do
|
4
|
+
context 'document is downloadable' do
|
5
|
+
it 'renders the button group with primary and secondary partials' do
|
6
|
+
expect(view).to receive(:document_downloadable?).and_return(true)
|
7
|
+
stub_template 'catalog/_downloads_primary.html.erb' => 'stubbed_primary_downloads'
|
8
|
+
stub_template 'catalog/_downloads_secondary.html.erb' => 'stubbed_secondary_downloads'
|
9
|
+
render
|
10
|
+
expect(rendered).to have_css '.btn-group'
|
11
|
+
expect(rendered).to have_content 'stubbed_primary_downloads'
|
12
|
+
expect(rendered).to have_content 'stubbed_secondary_downloads'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
context 'document is not downloadable' do
|
16
|
+
let(:document) { double('document', restricted?: true, same_institution?: true) }
|
17
|
+
before(:each) do
|
18
|
+
expect(view).to receive(:document_downloadable?).and_return(false)
|
19
|
+
end
|
20
|
+
|
21
|
+
context 'when restricted & same institution' do
|
22
|
+
it 'renders login link' do
|
23
|
+
assign :document, document
|
24
|
+
render
|
25
|
+
expect(rendered).to have_css '.panel-body a'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Graves
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-08-
|
14
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: blacklight
|
@@ -45,16 +45,16 @@ dependencies:
|
|
45
45
|
name: font-awesome-rails
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- - "
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: '0'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- - "
|
55
|
+
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: '0'
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rails_config
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -317,9 +317,12 @@ files:
|
|
317
317
|
- app/models/concerns/geoblacklight/solr_document/inspection.rb
|
318
318
|
- app/models/concerns/geoblacklight/spatial_search_behavior.rb
|
319
319
|
- app/presenters/geoblacklight/document_presenter.rb
|
320
|
+
- app/views/catalog/_data_dictionary.html.erb
|
320
321
|
- app/views/catalog/_document_action.html.erb
|
321
322
|
- app/views/catalog/_document_split.html.erb
|
322
323
|
- app/views/catalog/_downloads.html.erb
|
324
|
+
- app/views/catalog/_downloads_primary.html.erb
|
325
|
+
- app/views/catalog/_downloads_secondary.html.erb
|
323
326
|
- app/views/catalog/_exports.html.erb
|
324
327
|
- app/views/catalog/_facet_tag_item.html.erb
|
325
328
|
- app/views/catalog/_facet_tag_layout.html.erb
|
@@ -395,6 +398,7 @@ files:
|
|
395
398
|
- spec/factories/user.rb
|
396
399
|
- spec/features/bookmarks_spec.rb
|
397
400
|
- spec/features/configurable_basemap_spec.rb
|
401
|
+
- spec/features/data_dictionary_download_spec.rb
|
398
402
|
- spec/features/download_layer_spec.rb
|
399
403
|
- spec/features/esri_viewer_spec.rb
|
400
404
|
- spec/features/exports_spec.rb
|
@@ -415,6 +419,7 @@ files:
|
|
415
419
|
- spec/fixtures/solr_documents/actual-point1.json
|
416
420
|
- spec/fixtures/solr_documents/actual-polygon1.json
|
417
421
|
- spec/fixtures/solr_documents/actual-raster1.json
|
422
|
+
- spec/fixtures/solr_documents/baruch_documentation_download.json
|
418
423
|
- spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json
|
419
424
|
- spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json
|
420
425
|
- spec/fixtures/solr_documents/esri-feature-layer.json
|
@@ -458,6 +463,7 @@ files:
|
|
458
463
|
- spec/teaspoon_env.rb
|
459
464
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
460
465
|
- spec/views/catalog/_document_split.html.erb_spec.rb
|
466
|
+
- spec/views/catalog/_downloads.html.erb_spec.rb
|
461
467
|
- spec/views/catalog/_index_split.html.erb_spec.rb
|
462
468
|
- template.rb
|
463
469
|
- vendor/assets/javascripts/esri-leaflet.js
|
@@ -494,6 +500,7 @@ test_files:
|
|
494
500
|
- spec/factories/user.rb
|
495
501
|
- spec/features/bookmarks_spec.rb
|
496
502
|
- spec/features/configurable_basemap_spec.rb
|
503
|
+
- spec/features/data_dictionary_download_spec.rb
|
497
504
|
- spec/features/download_layer_spec.rb
|
498
505
|
- spec/features/esri_viewer_spec.rb
|
499
506
|
- spec/features/exports_spec.rb
|
@@ -514,6 +521,7 @@ test_files:
|
|
514
521
|
- spec/fixtures/solr_documents/actual-point1.json
|
515
522
|
- spec/fixtures/solr_documents/actual-polygon1.json
|
516
523
|
- spec/fixtures/solr_documents/actual-raster1.json
|
524
|
+
- spec/fixtures/solr_documents/baruch_documentation_download.json
|
517
525
|
- spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json
|
518
526
|
- spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json
|
519
527
|
- spec/fixtures/solr_documents/esri-feature-layer.json
|
@@ -557,4 +565,5 @@ test_files:
|
|
557
565
|
- spec/teaspoon_env.rb
|
558
566
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
559
567
|
- spec/views/catalog/_document_split.html.erb_spec.rb
|
568
|
+
- spec/views/catalog/_downloads.html.erb_spec.rb
|
560
569
|
- spec/views/catalog/_index_split.html.erb_spec.rb
|