-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Geoblacklight | ||
module Metadata | ||
class Html < Base | ||
def transform | ||
ActionController::Base.helpers.content_tag(:iframe, | ||
'', | ||
src: @reference.endpoint, | ||
scrolling: 'yes', | ||
frameborder: 0) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"geoblacklight_version": "1.0", | ||
"dc_identifier_s": "https://cugir.library.cornell.edu/catalog/cugir-007741", | ||
"dc_title_s": "Air Monitoring Stations, Adirondack Park, 2000", | ||
"dc_description_s": " This dataset shows the location of each ambient air quality monitoring station currently being operated by the Bureau of Air Quality Surveillance (BAQS), Division of Air Resources, New York State Department of Environmental Conservation.", | ||
"dc_rights_s": "Public", | ||
"dct_provenance_s": "Cornell", | ||
"dct_references_s": "{\"http://schema.org/downloadUrl\":\"https://s3.amazonaws.com/cugir-data/00/77/41/cugir-007741.zip\",\"http://www.opengis.net/cat/csw/csdgm\":\"https://s3.amazonaws.com/cugir-data/00/77/41/fgdc.xml\",\"http://www.w3.org/1999/xhtml\":\"https://s3.amazonaws.com/cugir-data/00/77/41/fgdc.html\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://cugir.library.cornell.edu/geoserver/cugir/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://cugir.library.cornell.edu/geoserver/cugir/wms\"}", | ||
"cugir_addl_downloads_s": "{}", | ||
"layer_id_s": "cugir007741", | ||
"layer_slug_s": "cugir-007741", | ||
"dc_type_s": "Dataset", | ||
"dc_format_s": "Shapefile", | ||
"cugir_filesize_s": "0.07 MB", | ||
"layer_geom_type_s": "Point", | ||
"layer_modified_dt": "2017-10-05T00:00:00Z", | ||
"dc_creator_sm": [ | ||
"New York State Department of Energy Conservation Bureau of Air Quality Surveillance" | ||
], | ||
"dc_publisher_sm": [ | ||
"Geographic Data Presentation Form: Map" | ||
], | ||
"dc_subject_sm": [ | ||
"environment", | ||
"Air quality monitoring stations", | ||
"Air quality management", | ||
"Air--Pollution--Measurement", | ||
"New York State--Dept Energy Conservation" | ||
], | ||
"cugir_category_sm": [ | ||
"environment", | ||
"climate" | ||
], | ||
"dct_spatial_sm": [ | ||
"New York" | ||
], | ||
"dct_issued_s": "2000-06-00", | ||
"dct_temporal_sm": [ | ||
"-Pres" | ||
], | ||
"solr_geom": "ENVELOPE(-74.989258, -73.858335, 44.67778, 43.452994)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'spec_helper' | ||
|
||
describe Geoblacklight::Metadata::Html do | ||
let(:url) { 'https://s3.amazonaws.com/cugir-data/00/77/41/fgdc.html' } | ||
let(:metadata) do | ||
described_class.new( | ||
Geoblacklight::Reference.new( | ||
['http://www.w3.org/1999/xhtml', url] | ||
) | ||
) | ||
end | ||
|
||
describe '#transform' do | ||
it 'renders an iframe with the html endpoint' do | ||
expect(metadata.transform).to include('iframe', url) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters