Skip to content

Commit

Permalink
Update some fixture data
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Jun 28, 2024
1 parent b3227b2 commit 1184ef4
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 89 deletions.
2 changes: 1 addition & 1 deletion spec/features/canonical_urls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

it 'not Stanford' do
visit solr_document_path 'mit-us-ma-e25zcta5dct-2000'
visit solr_document_path 'princeton-02870w62c'
expect(page).to have_no_css 'link[rel="canonical"]', visible: false
end
end
2 changes: 1 addition & 1 deletion spec/features/page_title_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
describe 'Show page' do
it 'have title' do
visit solr_document_path 'stanford-cg357zz0321'
expect(page.title).to eq '10 Meter Countours: Russian River Basin, California in EarthWorks'
expect(page.title).to eq '10 Meter Contours: Russian River Basin, California in EarthWorks'
end
end
1 change: 1 addition & 0 deletions spec/fixtures/solr_documents/harvard_raster.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dct_language_sm": ["eng"],
"dct_publisher_sm": ["Harvard Map Collection, Harvard College Library"],
"dct_accessRights_s": "Public",
"dct_license_sm": ["example.com/license"],
"dct_subject_sm": [
"Maps",
"Human",
Expand Down
43 changes: 24 additions & 19 deletions spec/fixtures/solr_documents/public-stanford.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
{
"dct_identifier_sm": ["http://purl.stanford.edu/cz128vq0535"],
"id": ["stanford-cz128vq0535"],
"dct_title_s": "2005 Rural Poverty GIS Database: Uganda",
"dct_description_sm": [
"This polygon shapefile contains 2005 poverty data for 855 rural subcounties in Uganda. These data are intended for researchers, students, policy makers and the general public for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production."
"This polygon shapefile contains 2005 poverty data for 855 rural subcounties in Uganda.",
"These data are intended for researchers, students, policy makers and the general public for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production."
],
"dct_accessRights_s": "Public",
"schema_provider_s": "Stanford",
"dct_references_s": "{\"http://schema.org/url\":\"http://purl.stanford.edu/cz128vq0535\",\"http://schema.org/downloadUrl\":\"http://stacks.stanford.edu/file/druid:cz128vq0535/data.zip\",\"http://www.loc.gov/mods/v3\":\"http://purl.stanford.edu/cz128vq0535.mods\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cz128vq0535/iso19139.xml\",\"http://www.w3.org/1999/xhtml\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cz128vq0535/default.html\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geowebservices.stanford.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geowebservices.stanford.edu/geoserver/wms\"}",
"gbl_wxsIdentifier_s": "druid:cz128vq0535",
"id": "stanford-cz128vq0535",
"gbl_mdModified_dt": "2015-01-13T18:46:38Z",
"dct_format_s": "Shapefile",
"dct_language_sm": ["eng"],
"dct_publisher_sm": ["Uganda Bureau of Statistics"],
"dct_creator_sm": ["Uganda Bureau of Statistics"],
"dct_subject_sm": ["Poverty", "Statistics"],
"dct_publisher_sm": ["Uganda Bureau of Statistics"],
"dct_issued_s": "2005",
"dct_temporal_sm": ["2005"],
"dct_subject_sm": ["Poverty", "Statistics"],
"dct_spatial_sm": ["Uganda"],
"dc_relation_sm": ["http://sws.geonames.org/226074/about.rdf"],
"georss_box_s": "-1.478794 29.572742 4.234077 35.000308",
"georss_polygon_s": "-1.478794 29.572742 4.234077 29.572742 4.234077 35.000308 -1.478794 35.000308 -1.478794 29.572742",
"dcat_bbox": "ENVELOPE(29.572742, 35.000308, 4.234077, -1.478794)",
"locn_geometry": "ENVELOPE(29.572742, 35.000308, 4.234077, -1.478794)",
"dct_temporal_sm": ["2005"],
"gbl_dateRange_drsim": ["[2005 TO 2005]"],
"gbl_indexYear_im": [2005],
"stanford_rights_metadata_s": "<rightsMetadata><access type=\"discover\"><machine><world /></machine></access><access type=\"read\"><machine><world /></machine></access><use><human type=\"useAndReproduction\">This item is in the public domain. There are no restrictions on use.</human><human type=\"creativeCommons\">Attribution Share Alike 3.0 Unported</human><machine type=\"creativeCommons\">by-sa</machine></use><copyright><human>This work is in the Public Domain, meaning that it is not subject to copyright.</human></copyright></rightsMetadata>",
"schema_provider_s": "Stanford",
"dct_identifier_sm": ["https://purl.stanford.edu/cz128vq0535"],
"gbl_resourceClass_sm": ["Datasets"],
"gbl_resourceType_sm": ["Polygon data"],
"gbl_mdVersion_s": "Aardvark"
"dct_format_s": "Shapefile",
"locn_geometry": "ENVELOPE(29.572742, 35.000308, 4.234077, -1.478794)",
"dcat_bbox": "ENVELOPE(29.572742, 35.000308, 4.234077, -1.478794)",
"pcdm_memberOf_sm": ["stanford-rb371kw9607"],
"dct_rights_sm": [
"This item is in the public domain. There are no restrictions on use."
],
"dct_rightsHolder_sm": [
"This work is in the Public Domain, meaning that it is not subject to copyright."
],
"dct_accessRights_s": "Public",
"gbl_mdModified_dt": "2022-04-27T07:27:29Z",
"gbl_mdVersion_s": "Aardvark",
"gbl_wxsIdentifier_s": "druid:cz128vq0535",
"dct_references_s": "{\"http://schema.org/url\":\"https://purl.stanford.edu/cz128vq0535\",\"http://schema.org/downloadUrl\":\"https://stacks.stanford.edu/object/cz128vq0535\",\"https://oembed.com\":\"https://purl.stanford.edu/embed.json?hide_title=true\\u0026url=https%3A%2F%2Fpurl.stanford.edu%2Fcz128vq0535\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geowebservices.stanford.edu/geoserver/wms\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geowebservices.stanford.edu/geoserver/wfs\"}"
}
49 changes: 25 additions & 24 deletions spec/fixtures/solr_documents/restricted-line.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
{
"dct_identifier_sm": ["http://purl.stanford.edu/cg357zz0321"],
"dct_title_s": "10 Meter Countours: Russian River Basin, California",
"id": ["stanford-cg357zz0321"],
"dct_title_s": "10 Meter Contours: Russian River Basin, California",
"dct_description_sm": [
"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.This layer can be used for watershed analysis and planning in the Russian River region of California."
"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.",
"This layer can be used for watershed analysis and planning in the Russian River region of California.",
"This layer is presented in the WGS84 coordinate system for web display purposes. Downloadable data are provided in native coordinate system or projection."
],
"dct_accessRights_s": "Restricted",
"schema_provider_s": "Stanford",
"dct_references_s": "{\"http://schema.org/url\":\"http://purl.stanford.edu/cg357zz0321\",\"http://schema.org/downloadUrl\":\"http://stacks.stanford.edu/file/druid:cg357zz0321/data.zip\",\"http://www.loc.gov/mods/v3\":\"http://purl.stanford.edu/cg357zz0321.mods\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cg357zz0321/iso19139.xml\",\"http://www.w3.org/1999/xhtml\":\"http://opengeometadata.stanford.edu/metadata/edu.stanford.purl/druid:cg357zz0321/default.html\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"http://geowebservices-restricted.stanford.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"http://geowebservices-restricted.stanford.edu/geoserver/wms\"}",
"gbl_wxsIdentifier_s": "druid:cg357zz0321",
"id": "stanford-cg357zz0321",
"gbl_mdModified_dt": "2014-12-03T01:20:46Z",
"dct_format_s": "Shapefile",
"dct_language_sm": ["eng"],
"dct_publisher_sm": ["Circuit Rider Productions"],
"dct_creator_sm": [
"United States. National Oceanic and Atmospheric Administration",
"Circuit Rider Productions"
],
"dct_publisher_sm": ["Circuit Rider Productions"],
"dct_issued_s": "2002",
"dct_subject_sm": ["Contours (Cartography)", "Elevation", "Inland Waters"],
"dct_issued_s": "2003",
"dct_temporal_sm": ["2002"],
"dct_spatial_sm": ["Sonoma County (Calif.)", "Mendocino County (Calif.)"],
"dc_relation_sm": [
"http://sws.geonames.org/5397100/about.rdf",
"http://sws.geonames.org/5372163/about.rdf"
],
"georss_box_s": "38.302994 -123.387366 39.398403 -122.52958",
"georss_polygon_s": "38.302994 -123.387366 39.398403 -123.387366 39.398403 -122.52958 38.302994 -122.52958 38.302994 -123.387366",
"dcat_bbox": "ENVELOPE(-123.387366, -122.52958, 39.398403, 38.302994)",
"locn_geometry": "ENVELOPE(-123.387366, -122.52958, 39.398403, 38.302994)",
"dcat_theme_sm": ["Elevation", "Inland Waters"],
"dct_temporal_sm": ["2002"],
"gbl_dateRange_drsim": ["[2002 TO 2002]"],
"gbl_indexYear_im": [2002],
"stanford_rights_metadata_s": "<rightsMetadata><access type=\"discover\"><machine><world /></machine></access><access type=\"read\"><machine><group>Stanford</group></machine></access><use><human 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. These data may not be reproduced or used for any purpose without permission. For more information please contact [email protected].</human><human type=\"creativeCommons\" /><machine type=\"creativeCommons\" /></use><copyright><human>Copyright ownership resides with the originator.</human></copyright></rightsMetadata>",
"layer_availability_score_f": 0.8,
"schema_provider_s": "Stanford",
"dct_identifier_sm": ["https://purl.stanford.edu/cg357zz0321"],
"gbl_resourceClass_sm": ["Datasets"],
"gbl_resourceType_sm": ["Line data"],
"gbl_mdVersion_s": "Aardvark"
"dct_format_s": "Shapefile",
"locn_geometry": "ENVELOPE(-123.387366, -122.52958, 39.398403, 38.302994)",
"dcat_bbox": "ENVELOPE(-123.387366, -122.52958, 39.398403, 38.302994)",
"pcdm_memberOf_sm": ["stanford-zt526qk7324"],
"dct_rights_sm": [
"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."
],
"dct_rightsHolder_sm": ["Copyright ownership resides with the originator."],
"dct_accessRights_s": "Restricted",
"gbl_mdModified_dt": "2022-04-27T02:34:01Z",
"gbl_mdVersion_s": "Aardvark",
"gbl_wxsIdentifier_s": "druid:cg357zz0321",
"dct_references_s": "{\"http://schema.org/url\":\"https://purl.stanford.edu/cg357zz0321\",\"http://schema.org/downloadUrl\":\"https://stacks.stanford.edu/object/cg357zz0321\",\"https://oembed.com\":\"https://purl.stanford.edu/embed.json?hide_title=true\\u0026url=https%3A%2F%2Fpurl.stanford.edu%2Fcg357zz0321\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geowebservices-restricted.stanford.edu/geoserver/wms\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geowebservices-restricted.stanford.edu/geoserver/wfs\"}"
}
50 changes: 27 additions & 23 deletions spec/fixtures/solr_documents/stanford-dy750qs3024.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
{
"dct_identifier_sm": ["http://purl.stanford.edu/dy750qs3024"],
"id": ["stanford-dy750qs3024"],
"dct_title_s": "Tōa yochizu",
"dct_description_sm": [
"Dai Nihon Teikoku Rikuchi Sokuryōbu. Relief shown by shading. Each sheet includes index to adjoining sheets. Title sheet includes legend. Various issues of some sheets. Covers Mongolia, China (Tibet not included), Russia, Central Asia. Some sheets are 1947 reprints by Kyodo Printing Co. Ltd. In Japanese. Gaihōzu. 大日本帝國陸地測量部."
"Relief shown by shading.",
"Each sheet includes index to adjoining sheets.",
"Title sheet includes legend.",
"Various issues of some sheets.",
"Covers Mongolia, China (Tibet not included), Russia, Central Asia.",
"Some sheets are 1947 reprints by Kyodo Printing Co. Ltd.",
"In Japanese."
],
"dct_accessRights_s": "Public",
"gbl_mdModified_dt": "2021-02-12T21:38:15Z",
"dct_issued_s": "Meiji 30 [1896]-",
"dct_format_s": "JPEG 2000",
"dct_language_sm": ["Japanese"],
"dct_language_sm": ["jpn"],
"dct_spatial_sm": ["Asia", "East Asia"],
"dct_publisher_sm": ["Dai Nihon Teikoku Rikuchi Sokuryōbu"],
"dct_creator_sm": ["Japan Rikuchi Sokuryōbu", "Japan 陸地測量部"],
"layer_availability_score_f": 1.0,
"gbl_mdVersion_s": "Aardvark",
"dct_references_s": "{\"http://schema.org/url\":\"https://purl.stanford.edu/dy750qs3024\",\"http://www.loc.gov/mods/v3\":\"https://purl.stanford.edu/dy750qs3024.mods\",\"https://oembed.com\":\"https://purl.stanford.edu/embed.json?&hide_title=true&url=https://purl.stanford.edu/dy750qs3024\",\"http://iiif.io/api/presentation#manifest\":\"https://purl.stanford.edu/dy750qs3024/iiif/manifest\"}",
"dcat_bbox": "ENVELOPE(50.0, 160.0, 60.0, 20.0)",
"locn_geometry": "ENVELOPE(50.0, 160.0, 60.0, 20.0)",
"id": "stanford-dy750qs3024",
"gbl_wxsIdentifier_s": "druid:dy750qs3024",
"schema_provider_s": "Stanford",
"stanford_rights_metadata_s": "<rightsMetadata>\n <copyright>\n <human type=\"copyright\">Property rights reside with the repository. Copyright © Stanford University. All Rights Reserved.</human>\n </copyright>\n <access type=\"discover\">\n <machine>\n <world/>\n </machine>\n </access>\n <access type=\"read\">\n <machine>\n <world/>\n </machine>\n </access>\n <use>\n <human type=\"useAndReproduction\">Image from the Map Collections courtesy Stanford University Libraries. If you have questions, please contact the Branner Earth Science Library &amp; Map Collections at [email protected].</human>\n <machine type=\"creativeCommons\">by-nc</machine>\n <human type=\"creativeCommons\">Attribution Non-Commercial 3.0 Unported</human>\n </use>\n </rightsMetadata>",
"stanford_license_s": "<div class='cc-by-nc'><a href='http://creativecommons.org/licenses/by-nc/3.0/'>This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 Unported License</a></div>",
"stanford_use_and_reproduction_s": "Image from the Map Collections courtesy Stanford University Libraries. If you have questions, please contact the Branner Earth Science Library & Map Collections at [email protected].",
"stanford_copyright_s": "Property rights reside with the repository. Copyright © Stanford University. All Rights Reserved.",
"gbl_indexYear_im": [1896],
"timestamp": "2021-06-15T17:09:29.938Z",
"gbl_resourceClass_sm": ["Imagery"]
"dct_identifier_sm": ["https://purl.stanford.edu/dy750qs3024"],
"gbl_resourceClass_sm": ["Maps"],
"dct_format_s": "JPEG2000",
"locn_geometry": "ENVELOPE(50.0, 160.0, 60.0, 20.0)",
"dcat_bbox": "ENVELOPE(50.0, 160.0, 60.0, 20.0)",
"dct_rights_sm": [
"Image from the Map Collections courtesy Stanford University Libraries. If you have questions, please contact the Branner Earth Science Library & Map Collections at [email protected]."
],
"dct_rightsHolder_sm": [
"Property rights reside with the repository. Copyright © Stanford University. All Rights Reserved."
],
"dct_license_sm": [
"https://creativecommons.org/licenses/by-nc/3.0/legalcode"
],
"dct_accessRights_s": "Public",
"gbl_mdModified_dt": "2012-05-06T01:47:02Z",
"gbl_mdVersion_s": "Aardvark",
"dct_references_s": "{\"http://schema.org/url\":\"https://purl.stanford.edu/dy750qs3024\",\"http://schema.org/downloadUrl\":\"https://stacks.stanford.edu/object/dy750qs3024\",\"https://oembed.com\":\"https://purl.stanford.edu/embed.json?hide_title=true\\u0026url=https%3A%2F%2Fpurl.stanford.edu%2Fdy750qs3024\",\"http://iiif.io/api/presentation#manifest\":\"https://purl.stanford.edu/dy750qs3024/iiif3/manifest\"}"
}
Loading

0 comments on commit 1184ef4

Please sign in to comment.