Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor tweaks and fixture updates #47

Merged
merged 1 commit into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class CatalogController < ApplicationController
config.add_facet_field Settings.FIELDS.RIGHTS, label: 'Access', limit: 8, partial: "icon_facet"
config.add_facet_field Settings.FIELDS.GEOM_TYPE, label: 'Data type', limit: 8, partial: "icon_facet"
config.add_facet_field Settings.FIELDS.FILE_FORMAT, :label => 'Format', :limit => 8
config.add_facet_field Settings.FIELDS.ANNOTATION, :label => 'Annotation', :limit => 8
config.add_facet_field Settings.FIELDS.SOURCE, show: false

# Have BL send all facet field names to Solr, which has been the default
Expand Down Expand Up @@ -144,6 +145,7 @@ class CatalogController < ApplicationController
config.add_show_field Settings.FIELDS.RIGHTS_STATEMENTS, label: 'Rights', itemprop: 'rights'
config.add_show_field Settings.FIELDS.PROVENANCE, label: 'Held by', link_to_facet: true
config.add_show_field Settings.FIELDS.FILE_SIZE, label: 'File size'
config.add_show_field Settings.FIELDS.ANNOTATION, label: 'Annotation', link_to_facet: true
config.add_show_field(
Settings.FIELDS.REFERENCES,
label: 'More details at',
Expand Down
6 changes: 6 additions & 0 deletions config/locales/blacklight.en.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
en:
blacklight:
application_name: 'GeoData'
search:
form:
search:
label: "Search %{application_name}"
placeholder: "Enter search terms or select 'Go' to browse"
submit: 'Go'
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ FIELDS:
:UNIQUE_KEY: 'id'
:WXS_IDENTIFIER: 'dcat_servesDataset_s'
:YEAR: 'gbl_indexYear_i'
:ANNOTATION: 'umass_annotated_s'

# Institution deployed at
INSTITUTION: 'UMass Amherst'
Expand Down
Binary file added test/fixtures/files/umass_documents/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"dct_title_s": "1:20k Aerial Photograph (B/W): Town of Bourne, MA, 1951 (dpl-2k-101)",
"dct_description_sm": "Georeferenced black-and-white aerial photograph captured in 1951 of Bourne (Town of Bourne, Barnstable County, MA). The photograph was scanned and manually georeferenced in ArcMap 10.8 against 2019 color orthoimagery from the U.S. Geological Survey.",
"dct_language_sm": "English",
"dct_creator_sm": "MacConnell, William Preston, 1918-",
"dct_publisher_sm": "University of Massachusetts at Amherst. Department of Forestry and Wildlife Management",
"schema_provider_s": "UMass",
"gbl_resourceClass_sm": "Imagery",
"gbl_resourceType_sm": "Raster",
"dct_subject_sm": [
"Environment",
"Imagery and Base Maps",
"Land Cover",
"Planning and Cadastral",
"Structure"
],
"dcat_theme_sm": [
"environment",
"imageryBaseMapsEarthCover",
"inlandWaters",
"planningCadastre",
"structure"
],
"dct_temporal_sm": "1951-10-22",
"dct_issued_s": "1951-10-22",
"gbl_indexYear_i": 1951,
"umass_annotated_s": "none",
"umass_geonames_sm": [
"4931050"
],
"dct_spatial_sm": [
"Bourne, MA",
"Town of Bourne, MA",
"Barnstable County, MA"
],
"locn_geometry": "ENVELOPE(-70.607117, -70.549626, 41.760435, 41.717075)",
"pcdm_memberOf_sm": "William P. MacConnell Aerial Photograph Collection",
"dct_rights_sm": "Requests to publish, redistribute, or replicate this material should be addressed to Special Collections and University Archives, University of Massachusetts Amherst Libraries.",
"dct_rightsHolder_sm": "Special Collections and University Archives, University of Massachusetts Amherst Libraries",
"dct_accessRights_s": "Public",
"dct_format_s": "GeoTIFF",
"gbl_fileSize_s": "90 MB",
"dct_references_s": "{\"http://schema.org/url\":\"https://credo.library.umass.edu/view/full/mufs190-1951-dpl2k101-i001\",\"http://schema.org/downloadUrl\":[{\"url\":\"https://credo.library.umass.edu/media/mufs190-1951-dpl2k101-i001.reference.tif\",\"label\":\"GeoTIFF\"},{\"url\":\"https://credo.library.umass.edu/images/resize/full/mufs190-1951-dpl2k101-i001-001.jpg\",\"label\":\"High-Res JPG\"}],\"http://iiif.io/api/image\":\"https://credo.library.umass.edu/iiif/mufs190-1951-dpl2k101-i001-001.tif/info.json\"}",
"id": "umass-mufs190-1951-dpl2k101-i001",
"dct_identifier_sm": "mufs190-1951-dpl2k101-i001",
"gbl_mdModified_dt": "2021-08-27T17:38:46Z",
"gbl_mdVersion_s": "Aardvark",
"gbl_suppressed_b": false,
"gbl_georeferenced_b": true
}

This file was deleted.

50 changes: 50 additions & 0 deletions test/fixtures/files/umass_documents/mufs190-1951-dpl2k3-i001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"dct_title_s": "1:20k Aerial Photograph (B/W): Town of Sandwich, MA, 1951 (dpl-2k-3)",
"dct_description_sm": "Georeferenced black-and-white aerial photograph captured in 1951 of Scorton Shores (Town of Sandwich, Barnstable County, MA). The photograph was scanned and manually georeferenced in ArcMap 10.8 against 2019 color orthoimagery from the U.S. Geological Survey.",
"dct_language_sm": "English",
"dct_creator_sm": "MacConnell, William Preston, 1918-",
"dct_publisher_sm": "University of Massachusetts at Amherst. Department of Forestry and Wildlife Management",
"schema_provider_s": "UMass",
"gbl_resourceClass_sm": "Imagery",
"gbl_resourceType_sm": "Raster",
"dct_subject_sm": [
"Environment",
"Imagery and Base Maps",
"Land Cover",
"Planning and Cadastral",
"Structure"
],
"dcat_theme_sm": [
"environment",
"imageryBaseMapsEarthCover",
"inlandWaters",
"planningCadastre",
"structure"
],
"dct_temporal_sm": "1951-10-22",
"dct_issued_s": "1951-10-22",
"gbl_indexYear_i": 1951,
"umass_annotated_s": "none",
"umass_geonames_sm": [
"4950427"
],
"dct_spatial_sm": [
"Scorton Shores, MA",
"Town of Sandwich, MA",
"Barnstable County, MA"
],
"locn_geometry": "ENVELOPE(-70.416495, -70.357003, 41.762370, 41.718035)",
"pcdm_memberOf_sm": "William P. MacConnell Aerial Photograph Collection",
"dct_rights_sm": "Requests to publish, redistribute, or replicate this material should be addressed to Special Collections and University Archives, University of Massachusetts Amherst Libraries.",
"dct_rightsHolder_sm": "Special Collections and University Archives, University of Massachusetts Amherst Libraries",
"dct_accessRights_s": "Public",
"dct_format_s": "GeoTIFF",
"gbl_fileSize_s": "90 MB",
"dct_references_s": "{\"http://schema.org/url\":\"https://credo.library.umass.edu/view/full/mufs190-1951-dpl2k3-i001\",\"http://schema.org/downloadUrl\":[{\"url\":\"https://credo.library.umass.edu/media/mufs190-1951-dpl2k3-i001.reference.tif\",\"label\":\"GeoTIFF\"},{\"url\":\"https://credo.library.umass.edu/images/resize/full/mufs190-1951-dpl2k3-i001-001.jpg\",\"label\":\"High-Res JPG\"}],\"http://iiif.io/api/image\":\"https://credo.library.umass.edu/iiif/mufs190-1951-dpl2k3-i001-001.tif/info.json\"}",
"id": "umass-mufs190-1951-dpl2k3-i001",
"dct_identifier_sm": "mufs190-1951-dpl2k3-i001",
"gbl_mdModified_dt": "2021-08-27T17:38:46Z",
"gbl_mdVersion_s": "Aardvark",
"gbl_suppressed_b": false,
"gbl_georeferenced_b": true
}

This file was deleted.

51 changes: 51 additions & 0 deletions test/fixtures/files/umass_documents/mufs190-1951-dpl2k4-i001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"dct_title_s": "1:20k Aerial Photograph (B/W): City of Barnstable Town, MA, 1951 (dpl-2k-4)",
"dct_description_sm": "Georeferenced black-and-white aerial photograph captured in 1951 of West Barnstable (City of Barnstable Town, Barnstable County, MA). The photograph was scanned and manually georeferenced in ArcMap 10.8 against 2019 color orthoimagery from the U.S. Geological Survey.",
"dct_language_sm": "English",
"dct_creator_sm": "MacConnell, William Preston, 1918-",
"dct_publisher_sm": "University of Massachusetts at Amherst. Department of Forestry and Wildlife Management",
"schema_provider_s": "UMass",
"gbl_resourceClass_sm": "Imagery",
"gbl_resourceType_sm": "Raster",
"dct_subject_sm": [
"Environment",
"Imagery and Base Maps",
"Land Cover",
"Planning and Cadastral",
"Structure"
],
"dcat_theme_sm": [
"environment",
"imageryBaseMapsEarthCover",
"inlandWaters",
"planningCadastre",
"structure"
],
"dct_temporal_sm": "1951-10-22",
"dct_issued_s": "1951-10-22",
"gbl_indexYear_i": 1951,
"umass_annotated_s": "full",
"umass_geonames_sm": [
"4832322",
"4950427"
],
"dct_spatial_sm": [
"West Barnstable, MA",
"City of Barnstable Town, MA",
"Barnstable County, MA"
],
"locn_geometry": "ENVELOPE(-70.417115, -70.355968, 41.745119, 41.699576)",
"pcdm_memberOf_sm": "William P. MacConnell Aerial Photograph Collection",
"dct_rights_sm": "Requests to publish, redistribute, or replicate this material should be addressed to Special Collections and University Archives, University of Massachusetts Amherst Libraries.",
"dct_rightsHolder_sm": "Special Collections and University Archives, University of Massachusetts Amherst Libraries",
"dct_accessRights_s": "Public",
"dct_format_s": "GeoTIFF",
"gbl_fileSize_s": "90 MB",
"dct_references_s": "{\"http://schema.org/url\":\"https://credo.library.umass.edu/view/full/mufs190-1951-dpl2k4-i001\",\"http://schema.org/downloadUrl\":[{\"url\":\"https://credo.library.umass.edu/media/mufs190-1951-dpl2k4-i001.reference.tif\",\"label\":\"GeoTIFF\"},{\"url\":\"https://credo.library.umass.edu/images/resize/full/mufs190-1951-dpl2k4-i001-001.jpg\",\"label\":\"High-Res JPG\"}],\"http://iiif.io/api/image\":\"https://credo.library.umass.edu/iiif/mufs190-1951-dpl2k4-i001-001.tif/info.json\"}",
"id": "umass-mufs190-1951-dpl2k4-i001",
"dct_identifier_sm": "mufs190-1951-dpl2k4-i001",
"gbl_mdModified_dt": "2021-08-27T17:38:46Z",
"gbl_mdVersion_s": "Aardvark",
"gbl_suppressed_b": false,
"gbl_georeferenced_b": true
}

This file was deleted.

Loading