-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add field to solr document that indicates if a record should be suppr…
…essed
- Loading branch information
1 parent
3e80f4a
commit 6518969
Showing
6 changed files
with
113 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'spec_helper' | ||
|
||
feature 'Search' do | ||
scenario 'Suppressed records are hidden' do | ||
visit '/?q=Sanborn+Map+Company' | ||
expect(page).to have_css '.document', count: 1 | ||
end | ||
|
||
scenario 'When searching child records from a parent record, supressed records are not hidden' do | ||
visit '/?f[dc_source_sm][]=princeton-1r66j405w&q=' | ||
expect(page).to have_css '.document', count: 2 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"call_number_s": "HMC04 (Princeton)", | ||
"dc_creator_sm": [ | ||
"Sanborn Map Company" | ||
], | ||
"dc_description_s": "Title taken from sheet 1 of 1927 map. \"Feb. 1885.\" Includes location map and key. Oriented with the north to the upper left.", | ||
"dc_format_s": "TIFF", | ||
"dc_identifier_s": "ark:/88435/n009w382v", | ||
"dc_language_s": "eng", | ||
"dc_publisher_s": "New York : Sanborn Map & Publishing Co., Limited, 1885.", | ||
"dc_rights_s": "Public", | ||
"dc_subject_sm": [ | ||
"Real property-New Jersey-Princeton-Maps", | ||
"Princeton (N.J.)-Maps" | ||
], | ||
"dc_title_s": "Princeton, Mercer County, New Jersey (Sheet 1)", | ||
"dct_provenance_s": "Princeton", | ||
"dct_references_s": "{\"http://schema.org/url\":\"https://catalog.princeton.edu/catalog/4266648\",\"http://schema.org/downloadUrl\":\"https://figgy.princeton.edu/downloads/b6ba3091-fcf4-4d2d-9d6a-df7df5c8c588/file/ff89fcc8-e61b-4b27-938f-a03e63d4f5f1\",\"http://schema.org/thumbnailUrl\":\"https://figgy.princeton.edu/downloads/b6ba3091-fcf4-4d2d-9d6a-df7df5c8c588/file/0cb6b6c7-bce2-46a8-8c79-2864c7ec5459\",\"http://iiif.io/api/image\":\"https://libimages1.princeton.edu/loris/figgy_prod/5a%2F20%2F58%2F5a20585db50d44959fe5ae44821fd174%2Fintermediate_file.jp2/info.json\",\"http://iiif.io/api/presentation#manifest\":\"https://figgy.princeton.edu/concern/scanned_maps/2806e4cf-effc-4827-b116-952dfe776d14/manifest\"}", | ||
"dc_source_sm": [ | ||
"princeton-1r66j405w" | ||
], | ||
"geoblacklight_version": "1.0", | ||
"layer_geom_type_s": "Image", | ||
"layer_id_s": "public-figgy:p-b6ba3091-fcf4-4d2d-9d6a-df7df5c8c588", | ||
"layer_modified_dt": "2018-06-20T22:23:54Z", | ||
"layer_slug_s": "princeton-n009w382v", | ||
"solr_geom": "ENVELOPE(-74.68, -74.63, 40.37, 40.33)", | ||
"suppressed_b": true, | ||
"uuid": "princeton-n009w382v" | ||
} |
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,30 @@ | ||
{ | ||
"call_number_s": "HMC04 (Princeton)", | ||
"dc_creator_sm": [ | ||
"Sanborn Map Company" | ||
], | ||
"dc_description_s": "Title taken from sheet 1 of 1927 map. \"Feb. 1885.\" Includes location map and key. Oriented with the north to the upper left.", | ||
"dc_format_s": "TIFF", | ||
"dc_identifier_s": "ark:/88435/jq085m62x", | ||
"dc_language_s": "eng", | ||
"dc_publisher_s": "New York : Sanborn Map & Publishing Co., Limited, 1885.", | ||
"dc_rights_s": "Public", | ||
"dc_subject_sm": [ | ||
"Real property-New Jersey-Princeton-Maps", | ||
"Princeton (N.J.)-Maps" | ||
], | ||
"dc_title_s": "Princeton, Mercer County, New Jersey (Sheet 2)", | ||
"dct_provenance_s": "Princeton", | ||
"dct_references_s": "{\"http://schema.org/url\":\"https://catalog.princeton.edu/catalog/4266648\",\"http://schema.org/downloadUrl\":\"https://figgy.princeton.edu/downloads/db890be9-02bf-43c1-85c8-69c0684e25f6/file/dc08e083-5044-4949-bdd1-9d16a1fef818\",\"http://schema.org/thumbnailUrl\":\"https://figgy.princeton.edu/downloads/db890be9-02bf-43c1-85c8-69c0684e25f6/file/342e2f50-c9ff-4f86-9317-f5ce331e766e\",\"http://iiif.io/api/image\":\"https://libimages1.princeton.edu/loris/figgy_prod/a6%2Fb9%2Ff9%2Fa6b9f96251724546ae37ea3fa37a5e57%2Fintermediate_file.jp2/info.json\",\"http://iiif.io/api/presentation#manifest\":\"https://figgy.princeton.edu/concern/scanned_maps/68e90289-74ce-4f21-89e5-852f3e96ce35/manifest\"}", | ||
"dc_source_sm": [ | ||
"princeton-1r66j405w" | ||
], | ||
"geoblacklight_version": "1.0", | ||
"layer_geom_type_s": "Image", | ||
"layer_id_s": "public-figgy:p-db890be9-02bf-43c1-85c8-69c0684e25f6", | ||
"layer_modified_dt": "2018-06-20T22:24:29Z", | ||
"layer_slug_s": "princeton-jq085m62x", | ||
"solr_geom": "ENVELOPE(-74.68, -74.63, 40.37, 40.33)", | ||
"suppressed_b": true, | ||
"uuid": "princeton-jq085m62x" | ||
} |
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,25 @@ | ||
{ | ||
"call_number_s": "HMC04 (Princeton)", | ||
"dc_creator_sm": [ | ||
"Sanborn Map Company" | ||
], | ||
"dc_description_s": "Title taken from sheet 1 of 1927 map. \"Feb. 1885.\" Includes location map and key. Oriented with the north to the upper left.", | ||
"dc_identifier_s": "ark:/88435/1r66j405w", | ||
"dc_language_s": "eng", | ||
"dc_publisher_s": "New York : Sanborn Map & Publishing Co., Limited, 1885.", | ||
"dc_rights_s": "Public", | ||
"dc_subject_sm": [ | ||
"Real property-New Jersey-Princeton-Maps", | ||
"Princeton (N.J.)-Maps" | ||
], | ||
"dc_title_s": "Princeton, Mercer County, New Jersey", | ||
"dct_provenance_s": "Princeton", | ||
"dct_references_s": "{\"http://schema.org/url\":\"https://catalog.princeton.edu/catalog/4266648\",\"http://schema.org/thumbnailUrl\":\"https://figgy.princeton.edu/downloads/b6ba3091-fcf4-4d2d-9d6a-df7df5c8c588/file/0cb6b6c7-bce2-46a8-8c79-2864c7ec5459\",\"http://iiif.io/api/image\":\"https://libimages1.princeton.edu/loris/figgy_prod/5a%2F20%2F58%2F5a20585db50d44959fe5ae44821fd174%2Fintermediate_file.jp2/info.json\",\"http://iiif.io/api/presentation#manifest\":\"https://figgy.princeton.edu/concern/scanned_maps/9a193476-5f2e-4f82-95a5-6db472e39b7b/manifest\"}", | ||
"geoblacklight_version": "1.0", | ||
"layer_geom_type_s": "Image", | ||
"layer_id_s": "ark:/88435/1r66j405w", | ||
"layer_modified_dt": "2018-06-07T05:12:50Z", | ||
"layer_slug_s": "princeton-1r66j405w", | ||
"solr_geom": "ENVELOPE(-74.68, -74.63, 40.37, 40.33)", | ||
"uuid": "princeton-1r66j405w" | ||
} |