geoblacklight 2.1.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +117 -99
- data/.gitignore +3 -1
- data/.rubocop.yml +4 -2
- data/.rubocop_todo.yml +11 -198
- data/Gemfile +3 -8
- data/README.md +5 -6
- data/app/assets/images/blacklight/arrow-circle-down.svg +3 -0
- data/app/assets/images/blacklight/baruch-cuny.svg +3 -0
- data/app/assets/images/blacklight/berkeley.svg +4 -0
- data/app/assets/images/blacklight/book.svg +3 -0
- data/app/assets/images/blacklight/bookmark.svg +3 -0
- data/app/assets/images/blacklight/cd-rom.svg +3 -0
- data/app/assets/images/blacklight/chicago.svg +4 -0
- data/app/assets/images/blacklight/citation.svg +3 -0
- data/app/assets/images/blacklight/collection.svg +3 -0
- data/app/assets/images/blacklight/columbia.svg +3 -0
- data/app/assets/images/blacklight/cornell.svg +5 -0
- data/app/assets/images/blacklight/dvd-rom.svg +3 -0
- data/app/assets/images/blacklight/email.svg +3 -0
- data/app/assets/images/blacklight/esri-globe.svg +31 -37
- data/app/assets/images/blacklight/geoblacklight-icons.json +2079 -0
- data/app/assets/images/blacklight/globe.svg +3 -0
- data/app/assets/images/blacklight/harvard.svg +3 -0
- data/app/assets/images/blacklight/home.svg +3 -0
- data/app/assets/images/blacklight/illinois.svg +4 -0
- data/app/assets/images/blacklight/image.svg +3 -0
- data/app/assets/images/blacklight/indiana.svg +3 -0
- data/app/assets/images/blacklight/iowa.svg +3 -0
- data/app/assets/images/blacklight/leaf.svg +3 -0
- data/app/assets/images/blacklight/lewis-clark.svg +5 -0
- data/app/assets/images/blacklight/line.svg +4 -0
- data/app/assets/images/blacklight/logo.svg +1 -0
- data/app/assets/images/blacklight/map-marker.svg +3 -0
- data/app/assets/images/blacklight/map.svg +3 -0
- data/app/assets/images/blacklight/maryland.svg +3 -0
- data/app/assets/images/blacklight/massgis.svg +3 -0
- data/app/assets/images/blacklight/metadata.svg +3 -0
- data/app/assets/images/blacklight/michigan-state.svg +4 -0
- data/app/assets/images/blacklight/michigan.svg +3 -0
- data/app/assets/images/blacklight/minnesota.svg +3 -0
- data/app/assets/images/blacklight/mit.svg +3 -0
- data/app/assets/images/blacklight/mixed.svg +5 -0
- data/app/assets/images/blacklight/multilinestring.svg +6 -0
- data/app/assets/images/blacklight/multipoint.svg +3 -0
- data/app/assets/images/blacklight/multipolygon.svg +6 -0
- data/app/assets/images/blacklight/nyu.svg +6 -0
- data/app/assets/images/blacklight/ohio-state.svg +5 -0
- data/app/assets/images/blacklight/pagelines-brands.svg +3 -0
- data/app/assets/images/blacklight/paper-map.svg +3 -0
- data/app/assets/images/blacklight/penn-state.svg +4 -0
- data/app/assets/images/blacklight/point.svg +3 -0
- data/app/assets/images/blacklight/polygon.svg +4 -0
- data/app/assets/images/blacklight/polyline.svg +6 -0
- data/app/assets/images/blacklight/princeton.svg +3 -0
- data/app/assets/images/blacklight/public.svg +3 -0
- data/app/assets/images/blacklight/purdue.svg +4 -0
- data/app/assets/images/blacklight/raster.svg +3 -0
- data/app/assets/images/blacklight/restricted.svg +3 -0
- data/app/assets/images/blacklight/sms.svg +3 -0
- data/app/assets/images/blacklight/stanford.svg +3 -0
- data/app/assets/images/blacklight/table.svg +3 -0
- data/app/assets/images/blacklight/tags.svg +3 -0
- data/app/assets/images/blacklight/texas.svg +3 -0
- data/app/assets/images/blacklight/tufts.svg +3 -0
- data/app/assets/images/blacklight/ucla.svg +3 -0
- data/app/assets/images/blacklight/uva.svg +3 -0
- data/app/assets/images/blacklight/web_services.svg +3 -0
- data/app/assets/images/blacklight/wisconsin.svg +3 -0
- data/app/assets/javascripts/geoblacklight/basemaps.js +18 -0
- data/app/assets/javascripts/geoblacklight/modules/geosearch.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/help_text.js +7 -0
- data/app/assets/javascripts/geoblacklight/modules/home.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/item.js +19 -2
- data/app/assets/javascripts/geoblacklight/modules/results.js +4 -2
- data/app/assets/javascripts/geoblacklight/viewers/oembed.js +13 -0
- data/app/assets/stylesheets/geoblacklight/_blacklight_overrides.scss +8 -9
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +49 -59
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +16 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +59 -28
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +4 -0
- data/app/helpers/geoblacklight_helper.rb +97 -7
- data/app/models/concerns/geoblacklight/solr_document.rb +12 -3
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +28 -0
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +5 -0
- data/app/views/catalog/_citation.html.erb +11 -0
- data/app/views/catalog/_data_dictionary.html.erb +3 -2
- data/app/views/catalog/_document_action.html.erb +1 -1
- data/app/views/catalog/_document_split.html.erb +1 -1
- data/app/views/catalog/_exports.html.erb +2 -10
- data/app/views/catalog/_home_text.html.erb +5 -5
- data/app/views/catalog/_index_split_default.html.erb +18 -10
- data/app/views/catalog/_show_default_viewer_container.html.erb +6 -1
- data/app/views/catalog/_show_header_default.html.erb +2 -4
- data/app/views/catalog/_web_services_wfs.html.erb +3 -3
- data/app/views/catalog/_web_services_wms.html.erb +3 -3
- data/app/views/catalog/metadata.html.erb +3 -1
- data/app/views/catalog/web_services.html.erb +9 -7
- data/app/views/relation/_ancestors.html.erb +2 -1
- data/app/views/relation/_descendants.html.erb +2 -1
- data/app/views/shared/_header_navbar.html.erb +3 -1
- data/config/locales/geoblacklight.en.yml +72 -0
- data/geoblacklight.gemspec +4 -4
- data/lib/generators/geoblacklight/install_generator.rb +5 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +3 -0
- data/lib/generators/geoblacklight/templates/geoblacklight.js +0 -1
- data/lib/generators/geoblacklight/templates/package.json +1 -1
- data/lib/generators/geoblacklight/templates/settings.yml +23 -0
- data/lib/generators/geoblacklight/webpacker_generator.rb +1 -1
- data/lib/geoblacklight/catalog_helper_override.rb +1 -1
- data/lib/geoblacklight/constants.rb +3 -2
- data/lib/geoblacklight/download.rb +4 -4
- data/lib/geoblacklight/item_viewer.rb +5 -1
- data/lib/geoblacklight/metadata/base.rb +15 -10
- data/lib/geoblacklight/reference.rb +2 -1
- data/lib/geoblacklight/relation/ancestors.rb +1 -1
- data/lib/geoblacklight/relation/descendants.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/geoblacklight/view_helper_override.rb +1 -1
- data/lib/geoblacklight/wms_layer.rb +2 -2
- data/lib/tasks/geoblacklight.rake +1 -1
- data/package.json +4 -0
- data/schema/references.md +2 -1
- data/solr/conf/schema.xml +5 -5
- data/spec/controllers/download_controller_spec.rb +1 -1
- data/spec/controllers/wms_controller_spec.rb +1 -1
- data/spec/features/configurable_basemap_spec.rb +9 -0
- data/spec/features/esri_viewer_spec.rb +0 -1
- data/spec/features/exports_spec.rb +9 -0
- data/spec/features/help_text_spec.rb +8 -0
- data/spec/features/metadata_panel_spec.rb +51 -8
- data/spec/features/missing_metadata_spec.rb +12 -0
- data/spec/features/oembed_spec.rb +9 -0
- data/spec/features/relations_spec.rb +2 -1
- data/spec/features/search_results_map_spec.rb +1 -1
- data/spec/features/split_view.html.erb_spec.rb +3 -3
- data/spec/features/suppressed_records_spec.rb +14 -0
- data/spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml +1 -0
- data/spec/fixtures/iso19139/stanford-cg357zz0321.xml +581 -0
- data/spec/fixtures/mods/fb897vt9938.mods +111 -0
- data/spec/fixtures/mods/stanford-cg357zz0321.mods +113 -0
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
- data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +30 -0
- data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +17 -0
- data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +23 -0
- data/spec/fixtures/solr_documents/oembed.json +24 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +43 -7
- data/spec/javascripts/metadata_download_button_spec.js +1 -1
- data/spec/lib/geoblacklight/download_spec.rb +2 -2
- data/spec/lib/geoblacklight/metadata/base_spec.rb +21 -7
- data/spec/lib/geoblacklight/reference_spec.rb +30 -0
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +1 -1
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +1 -1
- data/spec/lib/geoblacklight/wms_layer_spec.rb +2 -2
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +13 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +46 -0
- data/spec/spec_helper.rb +8 -5
- data/spec/support/fixtures.rb +7 -0
- data/spec/tasks/geoblacklight_spec.rb +18 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/template.rb +1 -1
- data/vendor/assets/javascripts/readmore.js +0 -0
- data/vendor/assets/javascripts/readmore.min.js +0 -11
- data/vendor/assets/stylesheets/leaflet.css +0 -1
- metadata +126 -31
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/geoblacklight/modules/collapse.js +0 -7
@@ -0,0 +1,111 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" version="3.4" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
|
3
|
+
<titleInfo>
|
4
|
+
<title>Dabao Kinbōzu, Maps Index</title>
|
5
|
+
</titleInfo>
|
6
|
+
<titleInfo>
|
7
|
+
<title type="alternative">Davao (Philippines), 1:50000 Maps Index</title>
|
8
|
+
</titleInfo>
|
9
|
+
<titleInfo>
|
10
|
+
<title displayLabel="Alternative title">Davao (Philippines), 1:50000 Maps Index</title>
|
11
|
+
</titleInfo>
|
12
|
+
<name type="corporate">
|
13
|
+
<namePart>Stanford Geospatial Center</namePart>
|
14
|
+
<role>
|
15
|
+
<roleTerm type="text" authority="marcrelator">creator</roleTerm>
|
16
|
+
</role>
|
17
|
+
</name>
|
18
|
+
<typeOfResource>cartographic</typeOfResource>
|
19
|
+
<typeOfResource>software, multimedia</typeOfResource>
|
20
|
+
<genre authority="lcgft" valueURI="http://id.loc.gov/authorities/genreForms/gf2011026297">Geospatial data</genre>
|
21
|
+
<genre authority="rdacontent" valueURI="http://rdvocab.info/termList/RDAContentType/1001">cartographic dataset</genre>
|
22
|
+
<originInfo>
|
23
|
+
<publisher>Stanford Digital Repository</publisher>
|
24
|
+
<place>
|
25
|
+
<placeTerm type="text">Stanford, California,</placeTerm>
|
26
|
+
</place>
|
27
|
+
<dateIssued encoding="w3cdtf" keyDate="yes">2016</dateIssued>
|
28
|
+
</originInfo>
|
29
|
+
<language>
|
30
|
+
<languageTerm authority="iso639-2b">eng</languageTerm>
|
31
|
+
</language>
|
32
|
+
<physicalDescription>
|
33
|
+
<form>Shapefile</form>
|
34
|
+
<extent>0.001</extent>
|
35
|
+
<digitalOrigin>born digital</digitalOrigin>
|
36
|
+
</physicalDescription>
|
37
|
+
<subject authority="EPSG" valueURI="http://opengis.net/def/crs/EPSG/0/4326" displayLabel="WGS84">
|
38
|
+
<cartographics>
|
39
|
+
<scale>Scale not given.</scale>
|
40
|
+
<projection>EPSG::4326</projection>
|
41
|
+
<coordinates>(E 125°--E 126°/N 7°20ʹ--N 6°40ʹ)</coordinates>
|
42
|
+
</cartographics>
|
43
|
+
</subject>
|
44
|
+
<abstract displayLabel="Abstract" lang="eng">This polygon shapefile is an index to 1:50000 scale maps of Davao (Philippines), titled 'Dabao Kinbōzu -- ダバオ近傍圖/Dabao Kinbōzu.’ This map series was originally produced by the Japanese Land Survey Department of the General Staff Headquarters in 1944. Stanford University Libraries holds a large collection of Japanese military and imperial maps, referred to as gaihōzu, or "maps of outer lands." These maps were produced starting in the early Meiji (1868-1912) era and the end of World War II by the Land Survey Department of the General Staff Headquarters, the former Japanese Army. The Library is in the process of scanning and making available all of the maps in the collection. To create this index, footprints were generated using the fishnet tool, and metadata were supplied for the digitized paper maps by Stanford University Libraries. After the footprints were created, the shapefile was trimmed and labeled according to the sources.</abstract>
|
45
|
+
<abstract displayLabel="Purpose" lang="eng">This layer provides an index map that can be used to locate individual scanned map sheets.</abstract>
|
46
|
+
<note displayLabel="Preferred citation" lang="eng">Stanford Geospatial Center. (2016). Dabao Kinbōzu, Maps Index. Stanford Digital Repository. Available at: http://purl.stanford.edu/fb897vt9938.</note>
|
47
|
+
<relatedItem type="isReferencedBy">
|
48
|
+
<titleInfo>
|
49
|
+
<title>Dabao Kinbōzu [cartographic material]</title>
|
50
|
+
</titleInfo>
|
51
|
+
</relatedItem>
|
52
|
+
<subject>
|
53
|
+
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Military maps</topic>
|
54
|
+
</subject>
|
55
|
+
<subject>
|
56
|
+
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Topographic maps</topic>
|
57
|
+
</subject>
|
58
|
+
<subject>
|
59
|
+
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Index maps</topic>
|
60
|
+
</subject>
|
61
|
+
<subject>
|
62
|
+
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Grids (Cartography)</topic>
|
63
|
+
</subject>
|
64
|
+
<subject>
|
65
|
+
<geographic lang="eng">Davao (Philippines)</geographic>
|
66
|
+
</subject>
|
67
|
+
<subject>
|
68
|
+
<temporal encoding="w3cdtf">1944</temporal>
|
69
|
+
</subject>
|
70
|
+
<subject>
|
71
|
+
<topic authority="ISO19115TopicCategory" authorityURI="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode" valueURI="boundaries">Boundaries</topic>
|
72
|
+
</subject>
|
73
|
+
<subject>
|
74
|
+
<topic authority="ISO19115TopicCategory" authorityURI="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode" valueURI="intelligenceMilitary">Military</topic>
|
75
|
+
</subject>
|
76
|
+
<location>
|
77
|
+
<url>http://purl.stanford.edu/fb897vt9938</url>
|
78
|
+
</location>
|
79
|
+
<recordInfo>
|
80
|
+
<recordContentSource>Stanford</recordContentSource>
|
81
|
+
<recordIdentifier>edu.stanford.purl:fb897vt9938</recordIdentifier>
|
82
|
+
<recordOrigin>This record was translated from ISO 19139 to MODS v.3 using an xsl transformation.</recordOrigin>
|
83
|
+
<languageOfCataloging>
|
84
|
+
<languageTerm authority="iso639-2b" type="code">eng</languageTerm>
|
85
|
+
</languageOfCataloging>
|
86
|
+
</recordInfo>
|
87
|
+
<extension displayLabel="geo">
|
88
|
+
<rdf:RDF xmlns:gml="http://www.opengis.net/gml/3.2/" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
89
|
+
<rdf:Description rdf:about="http://purl.stanford.edu/fb897vt9938">
|
90
|
+
<dc:format>application/x-esri-shapefile; format=Shapefile</dc:format>
|
91
|
+
<dc:type>Dataset#Polygon</dc:type>
|
92
|
+
<gml:boundedBy>
|
93
|
+
<gml:Envelope gml:srsName="EPSG:4326">
|
94
|
+
<gml:lowerCorner>125.0 6.6666</gml:lowerCorner>
|
95
|
+
<gml:upperCorner>126.0 7.3333</gml:upperCorner>
|
96
|
+
</gml:Envelope>
|
97
|
+
</gml:boundedBy>
|
98
|
+
</rdf:Description>
|
99
|
+
</rdf:RDF>
|
100
|
+
</extension>
|
101
|
+
<relatedItem type="host">
|
102
|
+
<titleInfo>
|
103
|
+
<title>Topographic Map Indexes</title>
|
104
|
+
</titleInfo>
|
105
|
+
<location>
|
106
|
+
<url>https://purl.stanford.edu/ch237ht4777</url>
|
107
|
+
</location>
|
108
|
+
<typeOfResource collection="yes"/>
|
109
|
+
</relatedItem>
|
110
|
+
<accessCondition type="useAndReproduction">This item is in the public domain. There are no restrictions on use.</accessCondition>
|
111
|
+
</mods>
|
@@ -0,0 +1,113 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" version="3.4" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
|
3
|
+
<titleInfo>
|
4
|
+
<title>10 Meter Contours: Russian River Basin, California</title>
|
5
|
+
</titleInfo>
|
6
|
+
<name type="corporate">
|
7
|
+
<namePart>United States. National Oceanic and Atmospheric Administration</namePart>
|
8
|
+
<role>
|
9
|
+
<roleTerm type="text" authority="marcrelator">creator</roleTerm>
|
10
|
+
</role>
|
11
|
+
</name>
|
12
|
+
<name type="corporate">
|
13
|
+
<namePart>Circuit Rider Productions</namePart>
|
14
|
+
<role>
|
15
|
+
<roleTerm type="text" authority="marcrelator">creator</roleTerm>
|
16
|
+
</role>
|
17
|
+
</name>
|
18
|
+
<typeOfResource>cartographic</typeOfResource>
|
19
|
+
<typeOfResource>software, multimedia</typeOfResource>
|
20
|
+
<genre authority="lcgft" valueURI="http://id.loc.gov/authorities/genreForms/gf2011026297">Geospatial data</genre>
|
21
|
+
<genre authority="rdacontent" valueURI="http://rdvocab.info/termList/RDAContentType/1001">cartographic dataset</genre>
|
22
|
+
<originInfo>
|
23
|
+
<publisher>Circuit Rider Productions</publisher>
|
24
|
+
<place>
|
25
|
+
<placeTerm type="text">Windsor, California, US</placeTerm>
|
26
|
+
</place>
|
27
|
+
<dateIssued encoding="w3cdtf" keyDate="yes">2002</dateIssued>
|
28
|
+
<dateValid encoding="w3cdtf">2002</dateValid>
|
29
|
+
</originInfo>
|
30
|
+
<language>
|
31
|
+
<languageTerm authority="iso639-2b">eng</languageTerm>
|
32
|
+
</language>
|
33
|
+
<physicalDescription>
|
34
|
+
<form>Shapefile</form>
|
35
|
+
<extent>74.767</extent>
|
36
|
+
<digitalOrigin>born digital</digitalOrigin>
|
37
|
+
</physicalDescription>
|
38
|
+
<subject>
|
39
|
+
<cartographics>
|
40
|
+
<scale>Scale not given.</scale>
|
41
|
+
<projection>Custom projection</projection>
|
42
|
+
<coordinates>(W 123°23ʹ15ʺ--W 122°31ʹ24ʺ/N 39°23ʹ55ʺ--N 38°18ʹ8ʺ)</coordinates>
|
43
|
+
</cartographics>
|
44
|
+
</subject>
|
45
|
+
<abstract displayLabel="Abstract" lang="eng">This line shapefile contains contours that were derived from a mosiac of 10 meter digital elevation models for the extent of the Russian River basin, located in Sonoma and Mendocino Counties, California.</abstract>
|
46
|
+
<abstract displayLabel="Purpose" lang="eng">This layer can be used for watershed analysis and planning in the Russian River region of California.</abstract>
|
47
|
+
<note displayLabel="Preferred citation" lang="eng">Circuit Rider Productions and National Oceanic and Atmospheric Administration (2002) 10 Meter Contours: Russian River Basin, California. Circuit Rider Productions.</note>
|
48
|
+
<note displayLabel="Supplemental information">The 7.5-minute digital elevation model (DEM) data are digital representations of cartographic information in a raster form. The DEMs consist of an array of elevations for ground positions at regularly spaced intervals. The data are produced in 7.5- by 7.5-minute blocks from either digitized cartographic map contour overlays of a scanned National Aerial Photography Program (NAPP) photographs. The DEM data are stored as profiles with a 10- or 30-meter square grid spacing along and between each profile. Approximate file sizes are 9.9 megabytes for a 10-meter resolution and 1.1 megabytes for a 30-meter horizontal resolution. Data profiles for this product do not always have the same number of elevations because of the variable angle between true north and grid north in the Universal Transverse Mercator (UTM)
|
49
|
+
projection coordinate system. The DEM data for 7.5-minute units correspond to the USGS 7.5-minute topographic quadrangle map series for all of the United States and its territories except Alaska.</note>
|
50
|
+
<subject>
|
51
|
+
<topic authority="lcsh" lang="eng">Contours (Cartography)</topic>
|
52
|
+
</subject>
|
53
|
+
<subject>
|
54
|
+
<geographic lang="eng" valueURI="http://sws.geonames.org/5397100/" authority="geonames" authorityURI="http://www.geonames.org/ontology#">Sonoma County (Calif.)</geographic>
|
55
|
+
</subject>
|
56
|
+
<subject>
|
57
|
+
<geographic lang="eng" valueURI="http://sws.geonames.org/5372163/" authority="geonames" authorityURI="http://www.geonames.org/ontology#">Mendocino County (Calif.)</geographic>
|
58
|
+
</subject>
|
59
|
+
<subject>
|
60
|
+
<temporal encoding="w3cdtf">2002</temporal>
|
61
|
+
</subject>
|
62
|
+
<subject>
|
63
|
+
<topic authority="ISO19115TopicCategory" authorityURI="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode" valueURI="elevation">Elevation</topic>
|
64
|
+
</subject>
|
65
|
+
<subject>
|
66
|
+
<topic authority="ISO19115TopicCategory" authorityURI="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode" valueURI="inlandWaters">Inland Waters</topic>
|
67
|
+
</subject>
|
68
|
+
<location>
|
69
|
+
<url>http://purl.stanford.edu/cg357zz0321</url>
|
70
|
+
</location>
|
71
|
+
<recordInfo>
|
72
|
+
<recordContentSource>Stanford</recordContentSource>
|
73
|
+
<recordIdentifier>edu.stanford.purl:cg357zz0321</recordIdentifier>
|
74
|
+
<recordOrigin>This record was translated from ISO 19139 to MODS v.3 using an xsl transformation.</recordOrigin>
|
75
|
+
<languageOfCataloging>
|
76
|
+
<languageTerm authority="iso639-2b" type="code">eng</languageTerm>
|
77
|
+
</languageOfCataloging>
|
78
|
+
</recordInfo>
|
79
|
+
<extension displayLabel="geo">
|
80
|
+
<rdf:RDF xmlns:gml="http://www.opengis.net/gml/3.2/" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
81
|
+
<rdf:Description rdf:about="http://purl.stanford.edu/cg357zz0321">
|
82
|
+
<dc:format>application/x-esri-shapefile; format=Shapefile</dc:format>
|
83
|
+
<dc:type>Dataset#LineString</dc:type>
|
84
|
+
<gml:boundedBy>
|
85
|
+
<gml:Envelope gml:srsName="EPSG:4326">
|
86
|
+
<gml:lowerCorner>-123.387366 38.302994</gml:lowerCorner>
|
87
|
+
<gml:upperCorner>-122.52958 39.398403</gml:upperCorner>
|
88
|
+
</gml:Envelope>
|
89
|
+
</gml:boundedBy>
|
90
|
+
<dc:coverage rdf:resource="http://sws.geonames.org/5397100/" dc:language="eng" dc:title="Sonoma County (Calif.)"/>
|
91
|
+
<dc:coverage rdf:resource="http://sws.geonames.org/5372163/" dc:language="eng" dc:title="Mendocino County (Calif.)"/>
|
92
|
+
</rdf:Description>
|
93
|
+
</rdf:RDF>
|
94
|
+
</extension>
|
95
|
+
<subject authority="EPSG" valueURI="http://opengis.net/def/crs/EPSG/0/4326" displayLabel="WGS84">
|
96
|
+
<cartographics>
|
97
|
+
<scale>Scale not given.</scale>
|
98
|
+
<projection>EPSG::4326</projection>
|
99
|
+
<coordinates>W 123°23ʹ15ʺ--W 122°31ʹ46ʺ/N 39°23ʹ54ʺ--N 38°18ʹ11ʺ</coordinates>
|
100
|
+
</cartographics>
|
101
|
+
</subject>
|
102
|
+
<note displayLabel="WGS84 Cartographics">This layer is presented in the WGS84 coordinate system for web display purposes. Downloadable data are provided in native coordinate system or projection.</note>
|
103
|
+
<relatedItem type="host">
|
104
|
+
<titleInfo>
|
105
|
+
<title>Russian River watershed GIS</title>
|
106
|
+
</titleInfo>
|
107
|
+
<location>
|
108
|
+
<url>https://purl.stanford.edu/zt526qk7324</url>
|
109
|
+
</location>
|
110
|
+
<typeOfResource collection="yes"/>
|
111
|
+
</relatedItem>
|
112
|
+
<accessCondition type="useAndReproduction">These data are licensed by Stanford Libraries and are available to Stanford University affiliates only. Affiliates are limited to current faculty, staff and students. Non affiliates seeking access should contact the publisher directly. These data may not be reproduced or used for any purpose without permission.</accessCondition>
|
113
|
+
</mods>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"Bowen, Emanuel (-1767)"
|
15
15
|
],
|
16
16
|
"dct_provenance_s": "Minnesota",
|
17
|
-
"dct_references_s": "{\"http://schema.org/url\":\"http://purl.umn.edu/200804\",\"http://
|
17
|
+
"dct_references_s": "{\"http://schema.org/url\":\"http://purl.umn.edu/200804\",\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll246/224/info.json\"}",
|
18
18
|
"dct_isPartOf_sm": [
|
19
19
|
"John R. Borchert Map Library"
|
20
20
|
],
|
@@ -0,0 +1,30 @@
|
|
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
|
+
}
|
@@ -0,0 +1,17 @@
|
|
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
|
+
}
|
@@ -0,0 +1,23 @@
|
|
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
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"dc_identifier_s": "http://purl.stanford.edu/dc482zx1528",
|
3
|
+
"dc_title_s": "Jōshū Kusatsu Onsenzu",
|
4
|
+
"dc_description_s": "Publication date estimate from dealer description.",
|
5
|
+
"dc_rights_s": "Public",
|
6
|
+
"dct_provenance_s": "Stanford",
|
7
|
+
"dct_references_s": "{\"http://schema.org/url\":\"http://purl.stanford.edu/dc482zx1528\",\"https://oembed.com\":\"https://purl.stanford.edu/embed.json?&hide_title=true&url=https://purl.stanford.edu/dc482zx1528\"}",
|
8
|
+
"layer_slug_s": "stanford-dc482zx1528",
|
9
|
+
"layer_geom_type_s": "Image",
|
10
|
+
"dc_format_s": "JPEG",
|
11
|
+
"dc_language_s": "Japanese",
|
12
|
+
"dc_type_s": "Image",
|
13
|
+
"dc_publisher_s": "Kikyōya Genkichi han",
|
14
|
+
"dc_subject_sm": [
|
15
|
+
"Hot springs",
|
16
|
+
"Kusatsu-machi",
|
17
|
+
"Maps"
|
18
|
+
],
|
19
|
+
"dct_spatial_sm": [
|
20
|
+
"Japan"
|
21
|
+
],
|
22
|
+
"solr_geom": "ENVELOPE(138.523426, 138.630362, 36.656354, 36.597519)",
|
23
|
+
"geoblacklight_version": "1.0"
|
24
|
+
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe GeoblacklightHelper, type: :helper do
|
4
|
+
include BlacklightHelper
|
4
5
|
include ActionView::Helpers::UrlHelper
|
5
6
|
include ActionView::Helpers::TranslationHelper
|
6
7
|
describe '#render_facet_links' do
|
@@ -16,24 +17,20 @@ describe GeoblacklightHelper, type: :helper do
|
|
16
17
|
end
|
17
18
|
|
18
19
|
describe '#geoblacklight_icon' do
|
19
|
-
it 'replaces special characters, lowercases, and subs spaces for hyphens' do
|
20
|
-
html = Capybara.string(geoblacklight_icon('TEst & 123'))
|
21
|
-
expect(html).to have_css '.geoblacklight-test-123'
|
22
|
-
end
|
23
20
|
it 'supports in use cases' do
|
24
21
|
{
|
25
22
|
'Paper map' => 'paper-map',
|
26
23
|
'Michigan State' => 'michigan-state',
|
27
24
|
'CD ROM' => 'cd-rom',
|
28
25
|
'Lewis & Clark' => 'lewis-clark'
|
29
|
-
}.
|
26
|
+
}.each_key do |key|
|
30
27
|
html = Capybara.string(geoblacklight_icon(key))
|
31
|
-
expect(html).to
|
28
|
+
expect(html).to have_xpath "//*[local-name() = 'svg']"
|
32
29
|
end
|
33
30
|
end
|
34
31
|
it 'handles nil values' do
|
35
32
|
html = Capybara.string(geoblacklight_icon(nil))
|
36
|
-
expect(html).to have_css '.
|
33
|
+
expect(html).to have_css '.icon-missing'
|
37
34
|
end
|
38
35
|
end
|
39
36
|
|
@@ -303,4 +300,43 @@ describe GeoblacklightHelper, type: :helper do
|
|
303
300
|
expect(helper.first_metadata?(document, metadata)).to be true
|
304
301
|
end
|
305
302
|
end
|
303
|
+
|
304
|
+
describe '#show_help_text?' do
|
305
|
+
let(:feature) { 'viewer_protocol' }
|
306
|
+
let(:translation_key) { 'wms' }
|
307
|
+
|
308
|
+
it 'confirms help text is available' do
|
309
|
+
expect(helper.show_help_text?(feature, translation_key)).to be true
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
describe '#render_help_text_entry' do
|
314
|
+
let(:feature) { 'viewer_protocol' }
|
315
|
+
let(:translation_key) { 'wms' }
|
316
|
+
|
317
|
+
context 'valid entry' do
|
318
|
+
it 'renders help text entry for the wms viewer protocol' do
|
319
|
+
expect(helper.render_help_text_entry(feature, translation_key)).to eq '<h3 class="help-text viewer_protocol h6"><a data-toggle="popover" data-title="Web Map Service (WMS)" data-content="A Web Map Service displays a geospatial dataset as map images.">Web Map Service (WMS)</a></h3>'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
context 'invalid entry' do
|
324
|
+
it 'renders an empty span' do
|
325
|
+
expect(helper.render_help_text_entry('foo', 'bar')).to eq '<span class="help-text translation-missing"></span>'
|
326
|
+
end
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
describe '#relations_icon' do
|
331
|
+
it 'renders a goemetry type if configured' do
|
332
|
+
allow(Settings).to receive(:USE_GEOM_FOR_RELATIONS_ICON).and_return(true)
|
333
|
+
html = Capybara.string(helper.relations_icon({ 'layer_geom_type_s' => 'polygon' }, 'leaf'))
|
334
|
+
expect(html.title.strip).to eq 'Polygon'
|
335
|
+
end
|
336
|
+
it 'renders provided icon if not configured to use geometry' do
|
337
|
+
allow(Settings).to receive(:USE_GEOM_FOR_RELATIONS_ICON).and_return(false)
|
338
|
+
html = Capybara.string(helper.relations_icon({ 'layer_geom_type_s' => 'polygon' }, 'leaf'))
|
339
|
+
expect(html.title.strip).to eq 'Leaf'
|
340
|
+
end
|
341
|
+
end
|
306
342
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
describe('MetadataDownloadButton', function() {
|
4
4
|
describe('initialize', function() {
|
5
|
-
fixture.set('<button id="foo" data-ref-endpoint="http://testdomain" data-ref-download="#bar">test element</button><a href="http://
|
5
|
+
fixture.set('<button id="foo" data-ref-endpoint="http://testdomain" data-ref-download="#bar">test element</button><a href="http://testdomain" id="bar">another test element</a>');
|
6
6
|
|
7
7
|
it('creates a new instance and sets the download button @href value', function() {
|
8
8
|
var button = new GeoBlacklight.MetadataDownloadButton('#foo');
|
@@ -141,14 +141,14 @@ describe Geoblacklight::Download do
|
|
141
141
|
|
142
142
|
it 'raises Geoblacklight::Exceptions::ExternalDownloadFailed with a connection failure' do
|
143
143
|
expect(faraday_connection).to receive(:url_prefix).and_return 'http://www.example.com/wms'
|
144
|
-
expect(faraday_connection).to receive(:get).and_raise(Faraday::
|
144
|
+
expect(faraday_connection).to receive(:get).and_raise(Faraday::ConnectionFailed.new('Failed'))
|
145
145
|
expect(Faraday).to receive(:new).with(url: 'http://www.example.com/wms').and_return(faraday_connection)
|
146
146
|
expect { download.initiate_download }.to raise_error(Geoblacklight::Exceptions::ExternalDownloadFailed)
|
147
147
|
end
|
148
148
|
|
149
149
|
it 'raises Geoblacklight::Exceptions::ExternalDownloadFailed with a connection timout' do
|
150
150
|
expect(faraday_connection).to receive(:url_prefix).and_return 'http://www.example.com/wms'
|
151
|
-
expect(faraday_connection).to receive(:get).and_raise(Faraday::
|
151
|
+
expect(faraday_connection).to receive(:get).and_raise(Faraday::TimeoutError)
|
152
152
|
expect(Faraday).to receive(:new).with(url: 'http://www.example.com/wms').and_return(faraday_connection)
|
153
153
|
expect { download.initiate_download }.to raise_error(Geoblacklight::Exceptions::ExternalDownloadFailed)
|
154
154
|
end
|
@@ -9,11 +9,11 @@ describe Geoblacklight::Metadata::Base do
|
|
9
9
|
Geoblacklight::Reference.new(['http://www.loc.gov/mods/v3', 'http://purl.stanford.edu/cg357zz0321.mods'])
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
12
|
+
before do
|
13
|
+
allow(Faraday).to receive(:new).with(url: 'http://purl.stanford.edu/cg357zz0321.mods').and_return(connection)
|
14
|
+
end
|
16
15
|
|
16
|
+
describe '#document' do
|
17
17
|
context 'with valid XML data at an endpoint URL' do
|
18
18
|
before do
|
19
19
|
allow(response).to receive(:status).and_return(200)
|
@@ -30,7 +30,7 @@ describe Geoblacklight::Metadata::Base do
|
|
30
30
|
subject { metadata.document }
|
31
31
|
|
32
32
|
before do
|
33
|
-
allow(connection).to receive(:get).and_raise(Faraday::
|
33
|
+
allow(connection).to receive(:get).and_raise(Faraday::ConnectionFailed, 'test connection failures')
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'returns nil when a connection error' do
|
@@ -40,6 +40,20 @@ describe Geoblacklight::Metadata::Base do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
context 'when attempts to connect to an endpoint URL raise an OpenSSL error' do
|
44
|
+
subject { metadata.document }
|
45
|
+
|
46
|
+
before do
|
47
|
+
expect(Geoblacklight.logger).to receive(:error).with(/dh key too small/)
|
48
|
+
allow(connection).to receive(:get).and_raise(OpenSSL::SSL::SSLError, 'dh key too small')
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'returns nil when a connection error' do
|
52
|
+
expect(subject).to be_a Nokogiri::XML::Document
|
53
|
+
expect(subject.children.empty?).to be true
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
43
57
|
describe '#blank?' do
|
44
58
|
before do
|
45
59
|
allow(Faraday).to receive(:new).with(url: 'http://purl.stanford.edu/cg357zz0321.mods').and_return(connection)
|
@@ -59,7 +73,7 @@ describe Geoblacklight::Metadata::Base do
|
|
59
73
|
|
60
74
|
context 'when attempts to connect to an endpoint URL fail' do
|
61
75
|
before do
|
62
|
-
allow(connection).to receive(:get).and_raise(Faraday::
|
76
|
+
allow(connection).to receive(:get).and_raise(Faraday::ConnectionFailed, 'test connection failures')
|
63
77
|
end
|
64
78
|
|
65
79
|
it 'returns true' do
|
@@ -130,7 +144,7 @@ describe Geoblacklight::Metadata::Base do
|
|
130
144
|
context 'when requesting the metadata resource times out' do
|
131
145
|
before do
|
132
146
|
allow(geocombine_metadata).to receive(:to_html).and_return('')
|
133
|
-
allow(connection).to receive(:get).and_raise(Faraday::
|
147
|
+
allow(connection).to receive(:get).and_raise(Faraday::TimeoutError)
|
134
148
|
allow(Geoblacklight.logger).to receive(:error).with('#<Faraday::TimeoutError #<Faraday::TimeoutError: timeout>>')
|
135
149
|
end
|
136
150
|
|