geoblacklight 3.3.0 → 4.0.0.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +34 -28
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +11 -6
- data/README.md +1 -1
- data/Rakefile +7 -8
- data/app/assets/images/blacklight/michigan-state-university.svg +6 -0
- data/app/assets/images/blacklight/pennsylvania-state-university.svg +6 -0
- data/app/assets/images/blacklight/purdue-university.svg +6 -0
- data/app/assets/images/blacklight/the-ohio-state-university.svg +7 -0
- data/app/assets/images/blacklight/university-of-chicago.svg +6 -0
- data/app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg +6 -0
- data/app/assets/images/blacklight/university-of-iowa.svg +5 -0
- data/app/assets/images/blacklight/university-of-maryland.svg +5 -0
- data/app/assets/images/blacklight/university-of-michigan.svg +5 -0
- data/app/assets/images/blacklight/university-of-minnesota.svg +5 -0
- data/app/assets/images/blacklight/university-of-nebraska-lincoln.svg +8 -0
- data/app/assets/images/blacklight/university-of-wisconsin-madison.svg +5 -0
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +41 -0
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +6 -0
- data/app/components/geoblacklight/homepage_feature_facet_component.html.erb +11 -0
- data/app/components/geoblacklight/homepage_feature_facet_component.rb +13 -0
- data/{lib → app/helpers}/geoblacklight/geoblacklight_helper_behavior.rb +6 -4
- data/app/helpers/geoblacklight_helper.rb +1 -22
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +2 -2
- data/app/models/concerns/geoblacklight/solr_document.rb +4 -4
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +3 -3
- data/app/views/catalog/_arcgis.html.erb +1 -1
- data/app/views/catalog/_data_dictionary.html.erb +1 -2
- data/app/views/catalog/_downloads_primary.html.erb +1 -1
- data/app/views/catalog/_header_icons.html.erb +1 -1
- data/app/views/catalog/_home_text.html.erb +7 -29
- data/app/views/catalog/_show_header_default.html.erb +1 -1
- data/app/views/relation/_relations.html.erb +15 -0
- data/app/views/relation/index.html.erb +4 -16
- data/app/views/relation/index.json.jbuilder +6 -2
- data/config/initializers/new_gbl_settings_defaults_3_4.yml +6 -0
- data/config/initializers/rails_config.rb +0 -4
- data/config/locales/geoblacklight.en.yml +8 -0
- data/geoblacklight.gemspec +1 -1
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +82 -35
- data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +195 -0
- data/lib/generators/geoblacklight/templates/settings.yml +87 -22
- data/lib/geoblacklight/download/geojson_download.rb +1 -1
- data/lib/geoblacklight/download/geotiff_download.rb +1 -1
- data/lib/geoblacklight/download/hgl_download.rb +1 -1
- data/lib/geoblacklight/download/kmz_download.rb +1 -1
- data/lib/geoblacklight/download/shapefile_download.rb +1 -1
- data/lib/geoblacklight/engine.rb +0 -2
- data/lib/geoblacklight/geometry.rb +18 -3
- data/lib/geoblacklight/references.rb +1 -1
- data/lib/geoblacklight/relation/ancestors.rb +4 -3
- data/lib/geoblacklight/relation/descendants.rb +4 -3
- data/lib/geoblacklight/relation/relation_response.rb +21 -6
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/geoblacklight/view_helper_override.rb +1 -1
- data/lib/geoblacklight.rb +0 -1
- data/schema/{geoblacklight-schema.json → geoblacklight-schema-1.0.json} +1 -1
- data/schema/geoblacklight-schema-aardvark.json +211 -0
- data/solr/conf/schema.xml +38 -30
- data/solr/conf/solrconfig.xml +15 -15
- data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +39 -0
- data/spec/config/initializers/rails_config_spec.rb +9 -8
- data/spec/controllers/catalog_controller_spec.rb +6 -6
- data/spec/features/download_layer_spec.rb +1 -1
- data/spec/features/esri_viewer_spec.rb +1 -1
- data/spec/features/home_page_spec.rb +4 -4
- data/spec/features/layer_opacity_spec.rb +1 -0
- data/spec/features/metadata_panel_spec.rb +1 -1
- data/spec/features/missing_metadata_spec.rb +2 -2
- data/spec/features/relations_spec.rb +2 -2
- data/spec/features/search_results_map_spec.rb +2 -1
- data/spec/features/search_results_overlap_ratio_spec.rb +2 -2
- data/spec/features/split_view.html.erb_spec.rb +15 -11
- data/spec/fixtures/solr_documents/README.md +48 -36
- data/spec/fixtures/solr_documents/actual-papermap1.json +41 -18
- data/spec/fixtures/solr_documents/actual-point1.json +47 -27
- data/spec/fixtures/solr_documents/actual-polygon1.json +43 -18
- data/spec/fixtures/solr_documents/actual-raster1.json +52 -23
- data/spec/fixtures/solr_documents/all-relationships.json +48 -0
- data/spec/fixtures/solr_documents/baruch_ancestor1.json +62 -37
- data/spec/fixtures/solr_documents/baruch_ancestor2.json +62 -37
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +60 -34
- data/spec/fixtures/solr_documents/bbox-spans-180.json +34 -16
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +46 -26
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +43 -25
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +45 -28
- data/spec/fixtures/solr_documents/esri-feature-layer.json +44 -34
- data/spec/fixtures/solr_documents/esri-image-map-layer.json +45 -31
- data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +42 -17
- data/spec/fixtures/solr_documents/esri-wms-layer.json +46 -21
- data/spec/fixtures/solr_documents/harvard_raster.json +55 -36
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +35 -22
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +48 -27
- data/spec/fixtures/solr_documents/index-map-polygon.json +48 -27
- data/spec/fixtures/solr_documents/index-map-stanford.json +54 -25
- data/spec/fixtures/solr_documents/index_map_point.json +54 -26
- data/spec/fixtures/solr_documents/metadata_no_geom.json +27 -0
- data/spec/fixtures/solr_documents/metadata_no_provider.json +39 -0
- data/spec/fixtures/solr_documents/multiple-downloads.json +33 -20
- data/spec/fixtures/solr_documents/no_locn_geometry.json +25 -0
- data/spec/fixtures/solr_documents/no_spatial.json +37 -19
- data/spec/fixtures/solr_documents/oembed.json +34 -17
- data/spec/fixtures/solr_documents/princeton-child1.json +45 -28
- data/spec/fixtures/solr_documents/princeton-child2.json +45 -28
- data/spec/fixtures/solr_documents/princeton-child3.json +45 -28
- data/spec/fixtures/solr_documents/princeton-child4.json +45 -28
- data/spec/fixtures/solr_documents/princeton-parent.json +46 -23
- data/spec/fixtures/solr_documents/public_direct_download.json +48 -21
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +49 -24
- data/spec/fixtures/solr_documents/public_polygon_mit.json +31 -15
- data/spec/fixtures/solr_documents/restricted-line.json +52 -21
- data/spec/fixtures/solr_documents/the-related-record.json +27 -0
- data/spec/fixtures/solr_documents/tms.json +33 -17
- data/spec/fixtures/solr_documents/umn_metro_result1.json +44 -28
- data/spec/fixtures/solr_documents/umn_state_result1.json +44 -26
- data/spec/fixtures/solr_documents/umn_state_result2.json +45 -24
- data/spec/fixtures/solr_documents/uva_slug_colon.json +43 -20
- data/spec/{lib → helpers}/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +0 -19
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download_spec.rb +1 -1
- data/spec/lib/geoblacklight/geometry_spec.rb +15 -4
- data/spec/lib/geoblacklight/references_spec.rb +2 -2
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +3 -3
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +3 -3
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +32 -17
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +4 -4
- data/spec/spec_helper.rb +2 -0
- data/spec/support/view_component_capybara_test_helpers.rb +8 -0
- metadata +41 -29
- data/app/views/catalog/_document_action.html.erb +0 -6
- data/app/views/catalog/_facet_tag_item.html.erb +0 -3
- data/app/views/catalog/_facet_tag_layout.html.erb +0 -2
- data/app/views/relation/_ancestors.html.erb +0 -8
- data/app/views/relation/_descendants.html.erb +0 -15
- data/config/initializers/new_gbl_settings_defaults_3_3.yml +0 -10
- data/schema/format-values.md +0 -50
- data/schema/geoblacklight-schema-deprecated.md +0 -39
- data/schema/geoblacklight-schema.md +0 -323
- data/schema/geometry-type-values.md +0 -11
- data/schema/references.md +0 -23
- data/schema/schema-commentary.md +0 -198
- data/schema/subjects.md +0 -41
- data/schema/type-values.md +0 -10
- data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +0 -30
- data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +0 -17
- data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +0 -23
data/schema/subjects.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
These charts lists the most common terms and spellings for Subjects
|
2
|
-
in the GeoBlacklight community.
|
3
|
-
|
4
|
-
## Geospatial Data
|
5
|
-
|
6
|
-
Common spelling | Related terms
|
7
|
-
|----|-------------
|
8
|
-
Farming | Agriculture
|
9
|
-
Biota | Biology |ISO Topic Category
|
10
|
-
Boundaries | Administrative and political boundaries; Cities and towns
|
11
|
-
Climatology, Meteorology, and Atmosphere | Climate
|
12
|
-
Economy
|
13
|
-
Elevation
|
14
|
-
Environment |
|
15
|
-
Geoscientific Information | Geology
|
16
|
-
Health ||
|
17
|
-
Imagery and Base Maps | Imagery; Basemaps; Landcover
|
18
|
-
Intelligence and Military |
|
19
|
-
Inland Waters |
|
20
|
-
Location |
|
21
|
-
Oceans |
|
22
|
-
Planning and Cadastral | Property
|
23
|
-
Society |
|
24
|
-
Structure | Facilities and Structures
|
25
|
-
Transportation |
|
26
|
-
Utilities and Communications | Utilities
|
27
|
-
|
28
|
-
## Maps
|
29
|
-
|
30
|
-
Common spelling | Related terms
|
31
|
-
|:---- |:------------- |
|
32
|
-
Aeronautical charts
|
33
|
-
Atlases
|
34
|
-
Bathymetric maps
|
35
|
-
Cadastral maps
|
36
|
-
Fire insurance maps
|
37
|
-
Geological maps
|
38
|
-
Road maps
|
39
|
-
Thematic maps
|
40
|
-
Topographic maps
|
41
|
-
Tourist maps
|
data/schema/type-values.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
## GeoBlacklight Type Values
|
2
|
-
|
3
|
-
| Label | Dublin Core Link | Definition|
|
4
|
-
|:----------------------------|:-------------|:---------------------------------------------------------|
|
5
|
-
|Dataset|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-Dataset)|Data encoded in a defined structure. Includes geospatial formats as vector, raster, and tabular data.|
|
6
|
-
|Image|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-Image)|A visual representation other than text. Includes static born-digital maps, scanned map images, and aerial photography.|
|
7
|
-
|Collection|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-Collection)|An aggregation of resources. Describes a group of resources that may or may not be separately described.|
|
8
|
-
|Interactive Resource|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-InteractiveResource)|External web applications that require the user to input information to generate a filtered dataset|
|
9
|
-
|Collection|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-Collection)|An aggregation of resources. Describes a group of resources that may or may not be separately described.|
|
10
|
-
|Physical Object|[DCMI Link](http://dublincore.org/documents/dcmi-terms/#dcmitype-PhysicalObject)|Non-digital resource, such as a paper map or a globe|
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"geoblacklight_version": "1.0",
|
3
|
-
"layer_modified_dt": "2019-12-16T15:57:35Z",
|
4
|
-
"layer_slug_s": "99-0001-noProvenance",
|
5
|
-
"dc_identifier_s": "99-0001-noProvenance",
|
6
|
-
"dc_title_s": "Social Explorer",
|
7
|
-
"dct_temporal_sm": [
|
8
|
-
"1790-present"
|
9
|
-
],
|
10
|
-
"dc_description_s": "Requires creating a free account or logging in through an organization with licensed access. This interactive website includes the entire US census history from 1790 to 2000, the American Community Survey (ACS), and the Religious Congregations and Membership Study (RCMS) from 1980 to 2000? the most complete census available on religion in the U.S. Overall, the site contains 39 billion data points, 200,000 variables, and 15,000 interactive maps",
|
11
|
-
"dc_subject_sm": [
|
12
|
-
"Society"
|
13
|
-
],
|
14
|
-
"dc_type_sm": [
|
15
|
-
"Interactive Resource"
|
16
|
-
],
|
17
|
-
"dc_rights_s": "Restricted",
|
18
|
-
"layer_geom_type_s": "Table",
|
19
|
-
"solr_geom": "ENVELOPE(-179.9,-64.4,71.6,-14.8)",
|
20
|
-
"dc_publisher_sm": [
|
21
|
-
"Social Explorer"
|
22
|
-
],
|
23
|
-
"dc_creator_sm": [
|
24
|
-
"Queens College (New York, N.Y.). Department of Sociology"
|
25
|
-
],
|
26
|
-
"dct_spatial_sm": [
|
27
|
-
"United States"
|
28
|
-
],
|
29
|
-
"dct_references_s": "{\"http://schema.org/url\":\"https://www.socialexplorer.com/\"}"
|
30
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"geoblacklight_version": "1.0",
|
3
|
-
"layer_modified_dt": "2020-01-17T15:31:30Z",
|
4
|
-
"layer_slug_s": "05d-03-noGeomType",
|
5
|
-
"dc_identifier_s": "05d-03-noGeomType",
|
6
|
-
"dc_title_s": "University of Minnesota Digital Conservancy DRUM",
|
7
|
-
"dc_description_s": "DRUM is a publicly available collection of digital research data generated by University of Minnesota researchers, students, and staff. Anyone can search and download the data housed in the repository, instantly or by request.",
|
8
|
-
"dc_publisher_sm": [
|
9
|
-
"University of Minnesota Digital Conservancy"
|
10
|
-
],
|
11
|
-
"dc_type_sm": [
|
12
|
-
"Collection"
|
13
|
-
],
|
14
|
-
"dct_provenance_s": "Minnesota",
|
15
|
-
"dc_rights_s": "Public",
|
16
|
-
"dct_references_s": "{\"http://schema.org/url\":\"https://conservancy.umn.edu/handle/11299/166578\"}"
|
17
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"geoblacklight_version": "1.0",
|
3
|
-
"layer_modified_dt": "2020-01-23T14:01:19Z",
|
4
|
-
"layer_slug_s": "05d-p16022coll246-noGeo",
|
5
|
-
"dc_identifier_s": "05d-p16022coll246-noGeo",
|
6
|
-
"dc_title_s": "Ames Library of South Asia Maps",
|
7
|
-
"dc_description_s": "A collection of maps covering Asia held by the University of Minnesota's Ames Library of South Asia.",
|
8
|
-
"dc_publisher_sm": [
|
9
|
-
"University of Minnesota"
|
10
|
-
],
|
11
|
-
"dc_type_sm": [
|
12
|
-
"Collection"
|
13
|
-
],
|
14
|
-
"layer_geom_type_s": "Table",
|
15
|
-
"dct_provenance_s": "Minnesota",
|
16
|
-
"dct_spatial_sm": [
|
17
|
-
"Asia",
|
18
|
-
"India",
|
19
|
-
"Afghanistan"
|
20
|
-
],
|
21
|
-
"dc_rights_s": "Public",
|
22
|
-
"dct_references_s": "{\"http://schema.org/url\":\"https://umedia.lib.umn.edu/search?facets[collection_name_s][]=Ames+Library+of+South+Asia+Maps\"}"
|
23
|
-
}
|