-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from geoblacklight/move-to-constants
Move to constants and add support for new fields
- Loading branch information
Showing
12 changed files
with
108 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddContentTypeToStatus < ActiveRecord::Migration[5.1] | ||
def change | ||
add_column :geo_monitor_statuses, :content_type, :string | ||
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,6 @@ | ||
class AddMoreLayerFields < ActiveRecord::Migration[5.1] | ||
def change | ||
add_column :geo_monitor_layers, :rights, :string | ||
add_column :geo_monitor_layers, :institution, :string | ||
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
require "geo_monitor/engine" | ||
|
||
module GeoMonitor | ||
extend ActiveSupport::Autoload | ||
|
||
|
||
# A simple structure to conform to Faraday::Response | ||
FailedResponse = Struct.new(:env, :status, :headers) | ||
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
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,6 @@ | ||
module GeoMonitor | ||
module Constants | ||
R = 6_378_137 # Radius of Earth in meters | ||
DEGREES_IN_CIRCLE = 360.0 | ||
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
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,34 @@ | ||
{ | ||
"solr_year_i": "1777", | ||
"dc_description_s": "The provinces of New York, and New Jersey; with part of Pensilvania and the province of Quebec. Drawn by Major Holland, Surveyor General of the Northern District in America", | ||
"layer_modified_dt": "2015-01-25T02:06:19Z", | ||
"dc_creator_sm": [ | ||
"Holland, Samuel,", | ||
"Coentgen, Heinrich Hugo.", | ||
"Brönner, H. L.", | ||
"Fox, N. B.," | ||
], | ||
"layer_id_s": "jd472z992", | ||
"dc_type_s": "Image", | ||
"dc_identifier_s": "jd472z992", | ||
"dct_provenance_s": "Princeton", | ||
"dc_title_s": "The provinces of New York, and New Jersey; with part of Pensilvania and the province of Quebec. Drawn by Major Holland, Surveyor General of the Northern District in America", | ||
"layer_slug_s": "princeton-jd472z992", | ||
"dc_format_s": "Scanned Map", | ||
"dct_references_s": "{\"http://www.loc.gov/standards/marcxml\": \"https://geowebservices.princeton.edu/download/items/jd472z992/marc.xml\", \"http://iiif.io/api/image\": \"https://libimages.princeton.edu/loris/pulmap/jd/47/2z/99/2/00000001.jp2/info.json\"}", | ||
"layer_geom_type_s": "Image", | ||
"dct_temporal_sm": [ | ||
"1777" | ||
], | ||
"solr_geom": "ENVELOPE(-73.727775, -66.8850751, 47.459686, 40.950943)", | ||
"dc_rights_s": "Public", | ||
"dct_spatial_sm": [ | ||
"New England", | ||
"New York (State)", | ||
"New Jersey", | ||
"Québec (Province)", | ||
"New York (State)", | ||
"New Jersey" | ||
], | ||
"geoblacklight_version": "1.0" | ||
} |
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