blacklight_allmaps 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +107 -0
  3. data/.gitignore +20 -0
  4. data/.standard.yml +1 -0
  5. data/Gemfile +50 -0
  6. data/app/assets/images/blacklight_allmaps/.keep +0 -0
  7. data/app/assets/stylesheets/blacklight/allmaps/base.scss +4 -1
  8. data/app/assets/stylesheets/blacklight/allmaps/modules/leaflet.opacity.css +76 -0
  9. data/app/jobs/blacklight/allmaps/store_sidecar_annotation.rb +3 -0
  10. data/app/models/concerns/.keep +0 -0
  11. data/blacklight_allmaps.gemspec +34 -0
  12. data/doc/Proposal_Eric_Larson_Ian_Spangler_4CE510.pdf +0 -0
  13. data/doc/allmaps_branding_screenshot.png +0 -0
  14. data/doc/allmaps_screenshot.png +0 -0
  15. data/doc/allmaps_screenshot_window.png +0 -0
  16. data/doc/development.md +72 -0
  17. data/doc/gbl_screenshot.png +0 -0
  18. data/doc/gbl_screenshot_window.png +0 -0
  19. data/doc/georeferenced_facet.png +0 -0
  20. data/doc/screenshot_layers.acorn +0 -0
  21. data/doc/screenshot_layers.png +0 -0
  22. data/lib/blacklight/allmaps/tasks/index.rake +1 -0
  23. data/lib/blacklight/allmaps/version.rb +1 -1
  24. data/lib/blacklight/allmaps.rb +10 -2
  25. data/lib/generators/blacklight/allmaps/blacklight_generator.rb +9 -3
  26. data/lib/generators/blacklight/allmaps/config_generator.rb +7 -1
  27. data/lib/generators/blacklight/allmaps/geoblacklight_generator.rb +10 -1
  28. data/lib/generators/blacklight/allmaps/templates/package.json +6 -0
  29. data/package.json +43 -0
  30. data/rollup.config.js +43 -0
  31. data/solr/blacklight/conf/_rest_managed.json +3 -0
  32. data/solr/blacklight/conf/admin-extra.html +31 -0
  33. data/solr/blacklight/conf/elevate.xml +36 -0
  34. data/solr/blacklight/conf/mapping-ISOLatin1Accent.txt +246 -0
  35. data/solr/blacklight/conf/protwords.txt +21 -0
  36. data/solr/blacklight/conf/schema.xml +388 -0
  37. data/solr/blacklight/conf/scripts.conf +24 -0
  38. data/solr/blacklight/conf/solrconfig.xml +265 -0
  39. data/solr/blacklight/conf/spellings.txt +2 -0
  40. data/solr/blacklight/conf/stopwords.txt +58 -0
  41. data/solr/blacklight/conf/stopwords_en.txt +58 -0
  42. data/solr/blacklight/conf/synonyms.txt +31 -0
  43. data/solr/blacklight/conf/xslt/example.xsl +132 -0
  44. data/solr/blacklight/conf/xslt/example_atom.xsl +67 -0
  45. data/solr/blacklight/conf/xslt/example_rss.xsl +66 -0
  46. data/solr/blacklight/conf/xslt/luke.xsl +337 -0
  47. data/solr/geoblacklight/conf/_rest_managed.json +3 -0
  48. data/solr/geoblacklight/conf/admin-extra.html +31 -0
  49. data/solr/geoblacklight/conf/core.properties +5 -0
  50. data/solr/geoblacklight/conf/elevate.xml +36 -0
  51. data/solr/geoblacklight/conf/mapping-ISOLatin1Accent.txt +246 -0
  52. data/solr/geoblacklight/conf/protwords.txt +21 -0
  53. data/solr/geoblacklight/conf/schema.xml +198 -0
  54. data/solr/geoblacklight/conf/scripts.conf +24 -0
  55. data/solr/geoblacklight/conf/solrconfig.xml +243 -0
  56. data/solr/geoblacklight/conf/spellings.txt +2 -0
  57. data/solr/geoblacklight/conf/stopwords.txt +58 -0
  58. data/solr/geoblacklight/conf/stopwords_en.txt +58 -0
  59. data/solr/geoblacklight/conf/synonyms.txt +31 -0
  60. data/solr/geoblacklight/conf/xslt/example.xsl +132 -0
  61. data/solr/geoblacklight/conf/xslt/example_atom.xsl +67 -0
  62. data/solr/geoblacklight/conf/xslt/example_rss.xsl +66 -0
  63. data/solr/geoblacklight/conf/xslt/luke.xsl +337 -0
  64. data/spec/controllers/annotations_controller_spec.rb +74 -0
  65. data/spec/factories/annotations.rb +12 -0
  66. data/spec/features/show_page_spec.rb +35 -0
  67. data/spec/features/sidebar_spec.rb +28 -0
  68. data/spec/fixtures/blacklight_allmaps_sidecars.yml +1203 -0
  69. data/spec/fixtures/solr_documents/README.md +15 -0
  70. data/spec/fixtures/solr_documents/blacklight/README.md +9 -0
  71. data/spec/fixtures/solr_documents/blacklight/bl_georeferenced.json +40 -0
  72. data/spec/fixtures/solr_documents/geoblacklight/gbl_btaa_northwestern_georeferenced.json +57 -0
  73. data/spec/fixtures/solr_documents/geoblacklight/gbl_harvard-g4124-m2-1855-m3_georefereneced.json +68 -0
  74. data/spec/fixtures/solr_documents/geoblacklight/gbl_not_georeferenced.json +67 -0
  75. data/spec/fixtures/solr_documents/geoblacklight/gbl_osu-0r967h708_georeferenced.json +60 -0
  76. data/spec/fixtures/solr_documents/geoblacklight/gbl_p16022coll230:1933_georeferenced.json +60 -0
  77. data/spec/fixtures/solr_documents/geoblacklight/gbl_p16022coll230:360_georeferenced.json +67 -0
  78. data/spec/fixtures/solr_documents/geoblacklight/gbl_p16022coll230:4038_georeferenced.json +53 -0
  79. data/spec/helpers/blacklight/allmaps/application_helper_spec.rb +28 -0
  80. data/spec/models/blacklight/allmaps/sidecar_allmaps_spec.rb +22 -0
  81. data/spec/spec_helper.rb +53 -0
  82. data/spec/test_app_templates/Gemfile.extra +2 -0
  83. data/spec/test_app_templates/lib/generators/test_app_generator.rb +48 -0
  84. data/vendor/assets/images/fullscreen.png +0 -0
  85. data/vendor/assets/images/fullscreen@2x.png +0 -0
  86. data/vendor/assets/images/layers-2x.png +0 -0
  87. data/vendor/assets/images/layers.png +0 -0
  88. data/vendor/assets/images/marker-icon-2x.png +0 -0
  89. data/vendor/assets/images/marker-icon.png +0 -0
  90. data/vendor/assets/images/marker-shadow.png +0 -0
  91. data/vendor/assets/stylesheets/leaflet.css +640 -0
  92. data/vendor/assets/stylesheets/leaflet.fullscreen.css +40 -0
  93. metadata +85 -2
@@ -0,0 +1,15 @@
1
+ # List of BlacklightAllmaps spec fixtures
2
+
3
+ ## GeoBlacklight Fixtures
4
+
5
+ If you add a new document, please add it to the table below, and indicate its purpose.
6
+
7
+ | Filename | Title | ID | IIIF Manifest | Purpose |
8
+ |---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9
+ | [gbl_btaa_northwestern_georeferenced.json](gbl_btaa_northwestern_georeferenced.json) | Western Africa | [6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30](http://localhost:3000/catalog/6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30) | [IIIF Manifest](https://api.dc.library.northwestern.edu/api/v2/works/6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30?as=iiif) | Georeferenced item
10
+ | [gbl_harvard-g4124-m2-1855-m3_georefereneced.json](gbl_harvard-g4124-m2-1855-m3_georefereneced.json) | Madison, Wisconsin, 1855 (Raster Image) | [harvard-g4124-m2-1855-m3](http://localhost:3000/catalog/harvard-g4124-m2-1855-m3) | [IIIF Manifest](https://www.digitalcommonwealth.org/search/commonwealth:4m90f9436/manifest) |Georeferenced item
11
+ | [gbl_not_georeferenced.json](gbl_not_georeferenced.json) | Map of the city of Minneapolis, Minn. | [p16022coll245:868](http://localhost:3000/catalog/p16022coll245:868) | [IIIF Manifest](https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll245/868/manifest.json) | NOT georeferenced item
12
+ | [gbl_osu-0r967h708_georeferenced.json](gbl_osu-0r967h708_georeferenced.json) | Quaternary geology of Ohio | [osu-0r967h708](http://localhost:3000/catalog/osu-0r967h708) | [IIIF Manifest](https://library.osu.edu/dc/concern/generic_works/0r967h708/manifest.json) | Georeferenced item
13
+ | [gbl_p16022coll230:360_georeferenced.json](gbl_p16022coll230:360_georeferenced.json) | Tourist map of Norway | [p16022coll230:360](http://localhost:3000/catalog/p16022coll230:360) | [IIIF Manifest](https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/360/manifest.json) | Georeferened item (multi-sheets)
14
+ | [gbl_p16022coll230:1933_georeferenced.json](gbl_p16022coll230:1933_georeferenced.json) | Lake Superior and the northern part of Michigan | [p16022coll230:1933](http://localhost:3000/catalog/p16022coll230:1933) | [IIIF Manifest](https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/1933/manifest.json) | Georeferenced item
15
+ | [gbl_p16022coll230:4038_georeferenced.json](gbl_p16022coll230:4038_georeferenced.json) | 1929 Illinois : motor trails are calling | [p16022coll230:4038](http://localhost:3000/catalog/p16022coll230:4038) | [IIIF Manifest](https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/4038/manifest.json) | Georeferenced item
@@ -0,0 +1,9 @@
1
+ # List of BlacklightAllmaps spec fixtures
2
+
3
+ ## Blacklight Fixtures
4
+
5
+ If you add a new document, please add it to the table below, and indicate its purpose.
6
+
7
+ | Filename | Title | ID | IIIF Manifest | Purpose |
8
+ |---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9
+ | [bl_georeferenced.json](bl_georeferenced.json) | Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide | [89696911](http://localhost:3000/catalog/89696911) | [IIIF Manifest](https://www.loc.gov/item/88695674/manifest.json) | Georeferenced item
@@ -0,0 +1,40 @@
1
+ {
2
+ "lc_1letter_ssim": [
3
+ "G - Geography, Anthropology, Recreation"
4
+ ],
5
+ "author_tsim": [
6
+ "United States. National Park Service."
7
+ ],
8
+ "published_ssim": [
9
+ "Washington,D.C.: The Service, [1989]"
10
+ ],
11
+ "lc_callnum_ssim": [
12
+ "G3842.C4 1989 .U5"
13
+ ],
14
+ "title_tsim": [
15
+ "Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide [Allmaps - Georeferenced]"
16
+ ],
17
+ "pub_date_ssim": [
18
+ "1989"
19
+ ],
20
+ "pub_date_si": 1989,
21
+ "format": "Map",
22
+ "material_type_ssim": [
23
+ "1 map: col. ; 55 x 21 cm., on sheet 60 x 21 cm., folded to 10 x 21 cm."
24
+ ],
25
+ "lc_b4cutter_ssim": [
26
+ "G3842.C4"
27
+ ],
28
+ "title_si": "Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide [Allmaps - Georeferenced]",
29
+ "id": 89696911,
30
+ "author_si": "United States. National Park Service.",
31
+ "lc_alpha_ssim": [
32
+ "G"
33
+ ],
34
+ "language_ssim": [
35
+ "English"
36
+ ],
37
+ "iiif_manifest_url_ssi": "https://www.loc.gov/item/88695674/manifest.json",
38
+ "timestamp": "2024-03-25T18:42:53.056Z",
39
+ "marc_ss": "<!-- URL: https://www.loc.gov/item/89696911/ -->\n<!-- MARCXML: https://lccn.loc.gov/89696911/marcxml -->\n<!-- IIIF Manifest: https://www.loc.gov/item/88695674/manifest.json -->\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<record xmlns=\"http://www.loc.gov/MARC21/slim\" xmlns:zs=\"http://docs.oasis-open.org/ns/search-ws/sruResponse\">\n <leader>02265cem a2200481 a 4500</leader>\n <controlfield tag=\"001\">5511356</controlfield>\n <controlfield tag=\"005\">20180117141654.0</controlfield>\n <controlfield tag=\"007\">aj|canzn</controlfield>\n <controlfield tag=\"007\">cr |||||||||||</controlfield>\n <controlfield tag=\"008\">891025s1989 dcu a f 0 eng </controlfield>\n <datafield ind1=\" \" ind2=\" \" tag=\"035\">\n <subfield code=\"9\">(DLC) 89696911</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"906\">\n <subfield code=\"a\">7</subfield>\n <subfield code=\"b\">cbc</subfield>\n <subfield code=\"c\">orignew</subfield>\n <subfield code=\"d\">u</subfield>\n <subfield code=\"e\">ncip</subfield>\n <subfield code=\"f\">19</subfield>\n <subfield code=\"g\">y-geogmaps</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"955\">\n <subfield code=\"i\">ga05; ga15</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"010\">\n <subfield code=\"a\"> 89696911 </subfield>\n </datafield>\n <datafield ind1=\"1\" ind2=\" \" tag=\"034\">\n <subfield code=\"a\">a</subfield>\n <subfield code=\"b\">325000</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"040\">\n <subfield code=\"a\">DLC</subfield>\n <subfield code=\"c\">DLC</subfield>\n <subfield code=\"d\">DLC</subfield>\n </datafield>\n <datafield ind1=\"0\" ind2=\"0\" tag=\"050\">\n <subfield code=\"a\">G3842.C4 1989</subfield>\n <subfield code=\"b\">.U5</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"052\">\n <subfield code=\"a\">3842</subfield>\n <subfield code=\"b\">C4</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"052\">\n <subfield code=\"a\">3792</subfield>\n <subfield code=\"b\">C4</subfield>\n </datafield>\n <datafield ind1=\"1\" ind2=\" \" tag=\"110\">\n <subfield code=\"a\">United States.</subfield>\n <subfield code=\"b\">National Park Service.</subfield>\n </datafield>\n <datafield ind1=\"1\" ind2=\"0\" tag=\"245\">\n <subfield code=\"a\">Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide /</subfield>\n <subfield code=\"c\">National Park Service, U.S. Department of the Interior.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"250\">\n <subfield code=\"a\">[1989 rev. ed.].</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"255\">\n <subfield code=\"a\">Scale [ca. 1:325,000].</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"260\">\n <subfield code=\"a\">[Washington, D.C.] :</subfield>\n <subfield code=\"b\">The Service,</subfield>\n <subfield code=\"c\">[1989]</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"300\">\n <subfield code=\"a\">1 map :</subfield>\n <subfield code=\"b\">col. ;</subfield>\n <subfield code=\"c\">55 x 21 cm., on sheet 60 x 21 cm., folded to 10 x 21 cm.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"500\">\n <subfield code=\"a\">\"*GPO: 1989--242-345/00044. Reprint 1989.\"</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"500\">\n <subfield code=\"a\">Title at top: Chesapeake and Ohio Canal National Historical Park.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"500\">\n <subfield code=\"a\">Oriented with north toward the upper right.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"500\">\n <subfield code=\"a\">Text, map of lower canal, and ill. on verso.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"530\">\n <subfield code=\"a\">Available also through the Library of Congress Web site as a raster image.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\"0\" tag=\"651\">\n <subfield code=\"a\">Chesapeake and Ohio Canal (Md. and Washington, D.C.)</subfield>\n <subfield code=\"v\">Maps.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\"0\" tag=\"651\">\n <subfield code=\"a\">Chesapeake and Ohio Canal National Historical Park</subfield>\n <subfield code=\"v\">Maps.</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"662\">\n <subfield code=\"a\">United States</subfield>\n <subfield code=\"b\">Maryland</subfield>\n <subfield code=\"c\">Chesapeake and Ohio Canal.</subfield>\n <subfield code=\"2\">lcsh</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"662\">\n <subfield code=\"a\">United States</subfield>\n <subfield code=\"b\">District of Columbia</subfield>\n <subfield code=\"c\">Chesapeake and Ohio Canal.</subfield>\n <subfield code=\"2\">lcsh</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"662\">\n <subfield code=\"a\">United States</subfield>\n <subfield code=\"b\">Maryland</subfield>\n <subfield code=\"c\">Chesapeake and Ohio Canal National Historical Park.</subfield>\n <subfield code=\"2\">lcsh</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"662\">\n <subfield code=\"a\">United States</subfield>\n <subfield code=\"b\">District of Columbia</subfield>\n <subfield code=\"c\">Chesapeake and Ohio Canal National Historical Park.</subfield>\n <subfield code=\"2\">lcsh</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"662\">\n <subfield code=\"a\">United States</subfield>\n <subfield code=\"b\">West Virginia</subfield>\n <subfield code=\"c\">Chesapeake and Ohio Canal National Historical Park.</subfield>\n <subfield code=\"2\">lcsh</subfield>\n </datafield>\n <datafield ind1=\"0\" ind2=\" \" tag=\"740\">\n <subfield code=\"a\">Chesapeake and Ohio Canal National Historical Park.</subfield>\n </datafield>\n <datafield ind1=\"0\" ind2=\" \" tag=\"852\">\n <subfield code=\"a\">Library of Congress</subfield>\n <subfield code=\"b\">Geography and Map Division</subfield>\n <subfield code=\"e\">Washington, D.C. 20540-4650 USA</subfield>\n <subfield code=\"n\">dcu</subfield>\n </datafield>\n <datafield ind1=\"4\" ind2=\"1\" tag=\"856\">\n <subfield code=\"d\">g3842c</subfield>\n <subfield code=\"f\">ct008616</subfield>\n <subfield code=\"u\">http://hdl.loc.gov/loc.gmd/g3842c.ct008616</subfield>\n <subfield code=\"q\">c</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"985\">\n <subfield code=\"a\">GMD/CT</subfield>\n <subfield code=\"e\">ammem</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"985\">\n <subfield code=\"a\">GMD/GNRLMAP</subfield>\n <subfield code=\"e\">ammem</subfield>\n <subfield code=\"h\">20180213</subfield>\n </datafield>\n <datafield ind1=\" \" ind2=\" \" tag=\"991\">\n <subfield code=\"b\">c-G&amp;M</subfield>\n <subfield code=\"h\">G3842.C4 1989</subfield>\n <subfield code=\"i\">.U5</subfield>\n <subfield code=\"t\">Copy 1</subfield>\n <subfield code=\"w\">MAPS</subfield>\n </datafield>\n</record>\n"
40
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "id": "6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30",
3
+ "gbl_mdVersion_s": "Aardvark",
4
+ "dct_title_s": "Western Africa",
5
+ "dct_description_sm": [
6
+ "1 map : hand colored; 41 x 51 cm",
7
+ "by Sidney Hall ; Scale approximately 1:8,000,000(W 15⁰--E 15⁰/N 20⁰--S 5⁰) ; Prime meridian: Greenwich ; Covers Western Africa and part of Central Africa ; Relief shown by hachures ; Shows routes of exploration in West Africa ; In margin: XLI, 41 ; London : Longman, Rees, Orme, Brown & Green"
8
+ ],
9
+ "dct_creator_sm": [
10
+ "Longman, Rees, Orme, Brown, and Green",
11
+ "Hall, Sidney"
12
+ ],
13
+ "dct_publisher_sm": [
14
+ "Longman, Rees, Orme, Brown & Green"
15
+ ],
16
+ "schema_provider_s": "Northwestern University",
17
+ "gbl_resourceClass_sm": [
18
+ "Maps"
19
+ ],
20
+ "dct_subject_sm": [
21
+ "Discovery and exploration"
22
+ ],
23
+ "dct_temporal_sm": [
24
+ "1829"
25
+ ],
26
+ "gbl_indexYear_im": [
27
+ 1829
28
+ ],
29
+ "gbl_dateRange_drsim": [
30
+ "[1829 TO 1829]"
31
+ ],
32
+ "dct_spatial_sm": [
33
+ "Africa",
34
+ "West Africa",
35
+ "Central Africa"
36
+ ],
37
+ "locn_geometry": "POLYGON((-15.0 20.0, 15.0 20.0, 15.0 -5.0, -15.0 -5.0, -15.0 20.0))",
38
+ "dcat_bbox": "ENVELOPE(-15.0,15.0,20.0,-5.0)",
39
+ "dcat_centroid": "7.5,0.0",
40
+ "pcdm_memberOf_sm": [
41
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
42
+ ],
43
+ "dct_isPartOf_sm": [
44
+ "15d-01"
45
+ ],
46
+ "dct_rights_sm": [
47
+ "No Copyright - United States",
48
+ "The images on this web site, from maps in the collection of the Melville J. Herskovits Library of African Studies and housed in the Government & Geographic Information Collection of Northwestern University Libraries are in the public domain in the United States, and as such, not subject to copyright restriction. The Libraries request users cite both the URL and Northwestern University Libraries if they wish to reproduce images from the repository. For access to higher resolution images please contact repository@northwestern.edu"
49
+ ],
50
+ "dct_accessRights_s": "Public",
51
+ "dct_references_s": "{\"http://schema.org/url\":\"https://dc.library.northwestern.edu/items/6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30\",\"http://iiif.io/api/presentation#manifest\":\"https://api.dc.library.northwestern.edu/api/v2/works/6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30?as=iiif\"}",
52
+ "dct_identifier_sm": [
53
+ "9943163944202441",
54
+ "ark:/81985/n2dn4042x"
55
+ ],
56
+ "gbl_mdModified_dt": "2024-02-29T19:28:55Z"
57
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "id": "harvard-g4124-m2-1855-m3",
3
+ "dct_identifier_sm": [
4
+ "https://hgl.harvard.edu/catalog/harvard-g4124-m2-1855-m3"
5
+ ],
6
+ "dct_title_s": "Madison, Wisconsin, 1855 (Raster Image) [Allmaps - Georeferenced]",
7
+ "dct_description_sm": [
8
+ "This layer is a georeferenced raster image of the historic paper map entitled: Map of Madison and the Four Lake Country : Dane Co. Wis. It was published in 1855. Scale [ca. 1:53,000]. The image inside the map neatline is georeferenced to the surface of the earth and fit to the Wisconsin South NAD 1983 coordinate system (in Feet) (Fipszone 4803). All map collar and inset information is also available as part of the raster image, including any inset maps, profiles, statistical tables, directories, text, illustrations, index maps, legends, or other information associated with the principal map. This map shows features such as roads, railroads (active and projected), drainage, selected points of interest, township and range boundaries, and more. Includes index and text.This layer is part of a selection of digitally scanned and georeferenced historic maps from the Harvard Map Collection. These maps typically portray both natural and manmade features. The selection represents a range of originators, ground condition dates, scales, and map purposes."
9
+ ],
10
+ "dct_creator_sm": [
11
+ "Harvard Map Collection, Harvard College Library"
12
+ ],
13
+ "dct_publisher_sm": [
14
+ "Harvard Map Collection, Harvard College Library"
15
+ ],
16
+ "gbl_resourceClass_sm": [
17
+ "Datasets"
18
+ ],
19
+ "gbl_resourceType_sm": [
20
+ "Raster data"
21
+ ],
22
+ "dct_subject_sm": [
23
+ "Maps",
24
+ "Human settlements",
25
+ "Cities and towns",
26
+ "Administrative and political divisions",
27
+ "Landforms",
28
+ "Bodies of water",
29
+ "Land use",
30
+ "Infrastructure (Economics)",
31
+ "Transportation",
32
+ "Railroads",
33
+ "imageryBaseMapsEarthCover",
34
+ "boundaries",
35
+ "transportation"
36
+ ],
37
+ "dcat_theme_sm": [
38
+ "Society",
39
+ "Boundaries",
40
+ "Inland Waters",
41
+ "Economy",
42
+ "Transportation",
43
+ "Imagery"
44
+ ],
45
+ "dct_temporal_sm": [
46
+ "1855"
47
+ ],
48
+ "dct_issued_s": "2011-11",
49
+ "gbl_indexYear_im": [
50
+ 1855
51
+ ],
52
+ "dct_spatial_sm": [
53
+ "Wisconsin",
54
+ "Madison"
55
+ ],
56
+ "locn_geometry": "ENVELOPE(-89.601158, -89.043662, 43.246841, 42.824728)",
57
+ "dcat_bbox": "ENVELOPE(-89.601158, -89.043662, 43.246841, 42.824728)",
58
+ "dct_accessRights_s": "Public",
59
+ "dct_format_s": "GeoTIFF",
60
+ "gbl_wxsIdentifier_s": "mapimages_public:G4124_M2_1855_M3",
61
+ "dct_references_s": "{\"http://www.opengis.net/cat/csw/csdgm\":\"https://raw.githubusercontent.com/harvard-library/harvard-geodata/main/fgdc/G4124_M2_1855_M3.xml\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geodata-proxy.lib.harvard.edu/geoserver/proxy/requestfile/wms\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geodata-proxy.lib.harvard.edu/geoserver/proxy/requestfile/wfs\",\"http://schema.org/DownloadAction\":\"https://geodata-proxy.lib.harvard.edu/geoserver/proxy/downloadfile\",\"http://iiif.io/api/presentation#manifest\":\"https://www.digitalcommonwealth.org/search/commonwealth:4m90f9436/manifest\"}",
62
+ "schema_provider_s": "Harvard",
63
+ "gbl_mdModified_dt": "2024-03-04T20:42:11Z",
64
+ "gbl_mdVersion_s": "Aardvark",
65
+ "harvard_collectionID_sm": [
66
+ "990114834000203941"
67
+ ]
68
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "id": "p16022coll245:868",
3
+ "gbl_mdVersion_s": "Aardvark",
4
+ "dct_title_s": "Map of the city of Minneapolis, Minn. [Allmaps - NOT Georeferenced]",
5
+ "dct_description_sm": [
6
+ "Includes street index. Shows ward boundaries.",
7
+ "60 x 45 centimeters",
8
+ "Minneapolis and St. Paul Maps and Atlases"
9
+ ],
10
+ "dct_language_sm": [
11
+ "eng"
12
+ ],
13
+ "b1g_language_sm": [
14
+ "English"
15
+ ],
16
+ "dct_creator_sm": [
17
+ "Minneapolis Directory Company"
18
+ ],
19
+ "dct_publisher_sm": [
20
+ "Minneapolis Directory Co. (Minneapolis, Minn.)"
21
+ ],
22
+ "schema_provider_s": "University of Minnesota",
23
+ "gbl_resourceClass_sm": [
24
+ "Maps"
25
+ ],
26
+ "dcat_keyword_sm": [
27
+ "Election Districts Minnesota Minneapolis Maps",
28
+ "Minneapolis (Minn.) Maps",
29
+ "Maps",
30
+ "2022-creator-sprint"
31
+ ],
32
+ "dct_temporal_sm": [
33
+ "1920"
34
+ ],
35
+ "dct_issued_s": "1920",
36
+ "gbl_indexYear_im": [
37
+ 1920
38
+ ],
39
+ "gbl_dateRange_drsim": [
40
+ "[1920 TO 1920]"
41
+ ],
42
+ "dct_spatial_sm": [
43
+ "Minnesota--Minneapolis",
44
+ "Minnesota"
45
+ ],
46
+ "locn_geometry": "POLYGON((-93.328 45.051, -93.197 45.051, -93.197 44.905, -93.328 44.905, -93.328 45.051))",
47
+ "dcat_bbox": "ENVELOPE(-93.328,-93.197,45.051,44.905)",
48
+ "dcat_centroid": "44.978,-93.2625",
49
+ "pcdm_memberOf_sm": [
50
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
51
+ ],
52
+ "dct_isPartOf_sm": [
53
+ "05d-01",
54
+ "p16022coll245"
55
+ ],
56
+ "dct_rights_sm": [
57
+ "Use of this item may be governed by US and international copyright laws. You may be able to use this item, but copyright and other considerations may apply. For possible additional information or guidance on your use, please contact the contributing organization."
58
+ ],
59
+ "dct_accessRights_s": "Public",
60
+ "dct_format_s": "JPEG",
61
+ "dct_references_s": "{\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll245/868/info.json\",\"http://schema.org/url\":\"https://umedia.lib.umn.edu/item/p16022coll245:868\",\"http://iiif.io/api/presentation#manifest\":\"https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll245/868/manifest.json\"}",
62
+ "geomg_id_s": "p16022coll245:868",
63
+ "dct_identifier_sm": [
64
+ "UMN_ALMA:993881089000170"
65
+ ],
66
+ "gbl_mdModified_dt": "2023-12-29T21:01:40Z"
67
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "dct_title_s": "Quaternary geology of Ohio",
3
+ "dct_description_sm": [
4
+ "Scale 1:500,000 ; Lambert conformal conic projection, standard parallels 33⁰ and 45⁰",
5
+ "Includes text and 2 key maps showing compilation responsibility and data sources.",
6
+ "Includes bibliographical references.",
7
+ "\"Base by the U.S. Geological Survey 1997.\"",
8
+ "compiled by Richard R. Pavey [and others] ; Ohio Department of Natural Resources, Division of Geological Survey."
9
+ ],
10
+ "dct_language_sm": [
11
+ "eng"
12
+ ],
13
+ "dct_creator_sm": [
14
+ "Ohio. Division of Geological Survey"
15
+ ],
16
+ "dct_publisher_sm": [
17
+ "Ohio. Division of Geological Survey"
18
+ ],
19
+ "schema_provider_s": "The Ohio State University",
20
+ "gbl_resourceClass_sm": [
21
+ "Maps"
22
+ ],
23
+ "gbl_resourceType_sm": [
24
+ "Thematic maps"
25
+ ],
26
+ "dct_subject_sm": [
27
+ "Geology"
28
+ ],
29
+ "dct_issued_s": "1999.0",
30
+ "gbl_indexYear_im": [
31
+ 1999
32
+ ],
33
+ "gbl_dateRange_drsim": [
34
+ "[1999 TO 1999]"
35
+ ],
36
+ "dct_spatial_sm": [
37
+ "Ohio"
38
+ ],
39
+ "locn_geometry": "POLYGON((-84.8203361 42.3232365, -80.518979 42.3232365, -80.518979 38.4031419, -84.8203361 38.4031419, -84.8203361 42.3232365))",
40
+ "dcat_bbox": "ENVELOPE(-84.8203361, -80.518979, 42.3232365, 38.4031419)",
41
+ "dcat_centroid": "40.3631892,-82.66965755000001",
42
+ "pcdm_memberOf_sm": [
43
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
44
+ ],
45
+ "dct_isPartOf_sm": [
46
+ "11d-02"
47
+ ],
48
+ "dct_rights_sm": [
49
+ "This item, made available for research and educational purposes, may be protected by copyright; the user is responsible for making a final determination of copyright status."
50
+ ],
51
+ "dct_accessRights_s": "Public",
52
+ "dct_format_s": "TIFF",
53
+ "dct_references_s": "{\"http://schema.org/url\":\"https://hdl.handle.net/1811/7bb2e628-711a-46aa-9e97-cf5f1d51a5ea\",\"http://iiif.io/api/presentation#manifest\":\"https://library.osu.edu/dc/concern/generic_works/0r967h708/manifest.json\"}",
54
+ "id": "osu-0r967h708",
55
+ "dct_identifier_sm": [
56
+ "https://hdl.handle.net/1811/7bb2e628-711a-46aa-9e97-cf5f1d51a5ea"
57
+ ],
58
+ "gbl_mdModified_dt": "2023-06-16T20:04:05Z",
59
+ "gbl_mdVersion_s": "Aardvark"
60
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "dct_title_s": "Lake Superior and the northern part of Michigan",
3
+ "dct_description_sm": [
4
+ "Relief shown by hachures.; Prime meridians: Greenwich and Washington.; \"Entered according to act of Congress in the year 1855 by J.H. Colton & Co. ...\"; From Colton's atlas of the world. New York: J.H. Colton & Co., 1855?. No. 43.",
5
+ "29 x 42 centimeters",
6
+ "Scale approximately 1:1,625,000",
7
+ "General Map Collection"
8
+ ],
9
+ "dct_language_sm": [
10
+ "eng"
11
+ ],
12
+ "dct_creator_sm": [
13
+ "J.H. Colton & Co."
14
+ ],
15
+ "dct_publisher_sm": [
16
+ "J.H. Colton & Co (New York)"
17
+ ],
18
+ "schema_provider_s": "University of Minnesota",
19
+ "gbl_resourceClass_sm": [
20
+ "Maps"
21
+ ],
22
+ "dcat_keyword_sm": [
23
+ "",
24
+ "2022-creator-sprint"
25
+ ],
26
+ "dct_temporal_sm": [
27
+ "1855"
28
+ ],
29
+ "dct_issued_s": "1855",
30
+ "gbl_indexYear_im": [
31
+ 1855
32
+ ],
33
+ "gbl_dateRange_drsim": [
34
+ "[1855 TO 1855]"
35
+ ],
36
+ "dct_spatial_sm": [
37
+ "Michigan"
38
+ ],
39
+ "locn_geometry": "POLYGON((-92.250 49.167, -83.417 49.167, -83.417 45.000, -92.250 45.000, -92.250 49.167))",
40
+ "dcat_bbox": "ENVELOPE(-92.250,-83.417,49.167,45.000)",
41
+ "dcat_centroid": "47.0835,-87.8335",
42
+ "pcdm_memberOf_sm": [
43
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
44
+ ],
45
+ "dct_isPartOf_sm": [
46
+ "05d-01",
47
+ "p16022coll230"
48
+ ],
49
+ "dct_rights_sm": [
50
+ "Use of this item may be governed by US and international copyright laws. You may be able to use this item, but copyright and other considerations may apply. For possible additional information or guidance on your use, please contact the contributing organization."
51
+ ],
52
+ "dct_accessRights_s": "Public",
53
+ "dct_format_s": "JPEG",
54
+ "dct_references_s": "{\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll230/1933/info.json\",\"http://schema.org/url\":\"https://umedia.lib.umn.edu/item/p16022coll230:1933\",\"http://iiif.io/api/presentation#manifest\":\"https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/1933/manifest.json\"}",
55
+ "id": "p16022coll230:1933",
56
+ "dct_identifier_sm": [
57
+ "UMN_ALMA:9920722310001701"
58
+ ],
59
+ "gbl_mdVersion_s": "Aardvark"
60
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "dct_title_s": "Tourist map of Norway",
3
+ "dct_description_sm": [
4
+ "Cartographic Details: Scale approximately 1:1,612,903. (E 4°--E 32°/N 72°--N 58°). Panel title. Relief shown by hachures and spot heights. Location map of Scandanavia inset on recto. Photos credited to Wilse and text on verso. Text in English; map legend in Norwegian, English, French, and German.",
5
+ "1 map in 2 parts on 1 sheet : color ; 101 x 47 centimeters, folded to 18 x 13 centimeters",
6
+ "Scale approximately 1:1,612,903",
7
+ "General Map Collection"
8
+ ],
9
+ "dct_language_sm": [
10
+ "eng",
11
+ "nor",
12
+ "fre",
13
+ "ger"
14
+ ],
15
+ "dct_creator_sm": [
16
+ "Landslaget for reiselivet i Norge"
17
+ ],
18
+ "dct_publisher_sm": [
19
+ "Emil Moestue (Norway)"
20
+ ],
21
+ "schema_provider_s": "University of Minnesota",
22
+ "gbl_resourceClass_sm": [
23
+ "Maps"
24
+ ],
25
+ "dcat_keyword_sm": [
26
+ "Roads Norway Maps",
27
+ "Railroads Norway Maps",
28
+ "Norway Maps",
29
+ "Tourist Maps",
30
+ "Maps",
31
+ "2022-creator-sprint"
32
+ ],
33
+ "dct_temporal_sm": [
34
+ "1920"
35
+ ],
36
+ "dct_issued_s": "1920",
37
+ "gbl_indexYear_im": [
38
+ 1920
39
+ ],
40
+ "gbl_dateRange_drsim": [
41
+ "[1920 TO 1920]"
42
+ ],
43
+ "dct_spatial_sm": [
44
+ "Norway"
45
+ ],
46
+ "locn_geometry": "POLYGON((4.000 72.000, 64.000 72.000, 64.000 58.000, 4.000 58.000, 4.000 72.000))",
47
+ "dcat_bbox": "ENVELOPE(4.000,64.000,72.000,58.000)",
48
+ "dcat_centroid": "65.0,34.0",
49
+ "pcdm_memberOf_sm": [
50
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
51
+ ],
52
+ "dct_isPartOf_sm": [
53
+ "05d-01",
54
+ "p16022coll230"
55
+ ],
56
+ "dct_rights_sm": [
57
+ "Use of this item may be governed by US and international copyright laws. You may be able to use this item, but copyright and other considerations may apply. For possible additional information or guidance on your use, please contact the contributing organization."
58
+ ],
59
+ "dct_accessRights_s": "Public",
60
+ "dct_format_s": "JPEG",
61
+ "dct_references_s": "{\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll230/360/info.json\",\"http://schema.org/url\":\"https://umedia.lib.umn.edu/item/p16022coll230:360\",\"http://iiif.io/api/presentation#manifest\":\"https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/360/manifest.json\"}",
62
+ "id": "p16022coll230:360",
63
+ "dct_identifier_sm": [
64
+ "UMN_ALMA:9921525920001701"
65
+ ],
66
+ "gbl_mdVersion_s": "Aardvark"
67
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "dct_title_s": "1929 Illinois : motor trails are calling",
3
+ "dct_description_sm": [
4
+ "Panel title.; Plate no. C-131 J.C.; Maps on verso (29 x 44 cm. and 21 x 19 cm.): Standard Oil Company (Indiana) territorial road map [of the midwest United States] -- Chicago and vicinity.; Panel art: Standard Oil Company logo.",
5
+ "58 x 38 Centimeters",
6
+ "Scale not given",
7
+ "General Map Collection"
8
+ ],
9
+ "dct_language_sm": [
10
+ "eng"
11
+ ],
12
+ "dct_creator_sm": [
13
+ "Standard Oil Company (Ind.)"
14
+ ],
15
+ "dct_publisher_sm": [
16
+ "H.M. Gousha Company (Chicago)"
17
+ ],
18
+ "schema_provider_s": "University of Minnesota",
19
+ "gbl_resourceClass_sm": [
20
+ "Maps"
21
+ ],
22
+ "dct_issued_s": "1929",
23
+ "gbl_indexYear_im": [
24
+ 1929
25
+ ],
26
+ "gbl_dateRange_drsim": [
27
+ "[1929 TO 1929]"
28
+ ],
29
+ "dct_spatial_sm": [
30
+ "Illinois"
31
+ ],
32
+ "locn_geometry": "POLYGON((-91.500 42.500, -87.017 42.500, -87.017 36.967, -91.500 36.967, -91.500 42.500))",
33
+ "dcat_bbox": "ENVELOPE(-91.500,-87.017,42.500,36.967)",
34
+ "dcat_centroid": "39.7335,-89.2585",
35
+ "pcdm_memberOf_sm": [
36
+ "64bd8c4c-8e60-4956-b43d-bdc3f93db488"
37
+ ],
38
+ "dct_isPartOf_sm": [
39
+ "05d-01",
40
+ "p16022coll230"
41
+ ],
42
+ "dct_rights_sm": [
43
+ "Use of this item may be governed by US and international copyright laws. You may be able to use this item, but copyright and other considerations may apply. For possible additional information or guidance on your use, please contact the contributing organization."
44
+ ],
45
+ "dct_accessRights_s": "Public",
46
+ "dct_format_s": "JPEG",
47
+ "dct_references_s": "{\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll230/4038/info.json\",\"http://schema.org/url\":\"https://umedia.lib.umn.edu/item/p16022coll230:4038\",\"http://iiif.io/api/presentation#manifest\":\"https://cdm16022.contentdm.oclc.org/iiif/info/p16022coll230/4038/manifest.json\"}",
48
+ "id": "p16022coll230:4038",
49
+ "dct_identifier_sm": [
50
+ "UMN_ALMA:9976369504001701"
51
+ ],
52
+ "gbl_mdVersion_s": "Aardvark"
53
+ }
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ # @TODO: GeoBlacklight dependent
6
+ describe Blacklight::Allmaps::ApplicationHelper, type: :helper do
7
+ let(:document) { SolrDocument.new(document_attributes) }
8
+
9
+ describe "GEOBLACKLIGHT - #georeferenceable?" do
10
+ context "when iiif_manifest_url is present" do
11
+ let(:document_attributes) { {dct_references_s: "{\"http://iiif.io/api/presentation#manifest\":\"https://example.com/manifest\"}"} }
12
+
13
+ it "returns true" do
14
+ skip("GBL") unless defined?(Geoblacklight)
15
+ expect(georeferenceable?(document)).to be_truthy
16
+ end
17
+ end
18
+
19
+ context "when iiif_manifest_url is not present" do
20
+ let(:document_attributes) { {dct_references_s: "{}"} }
21
+
22
+ it "returns false" do
23
+ skip("GBL") unless defined?(Geoblacklight)
24
+ expect(georeferenceable?(document)).to be_falsey
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ describe Blacklight::Allmaps::Sidecar do
6
+ let(:document) { SolrDocument.new(document_attributes) }
7
+
8
+ describe "#sidecar_allmaps" do
9
+ let(:document_attributes) {}
10
+
11
+ it "responds to attribute methods" do
12
+ expect(document.sidecar_allmaps).to respond_to :solr_document_id
13
+ expect(document.sidecar_allmaps).to respond_to :document_type
14
+ expect(document.sidecar_allmaps).to respond_to :manifest_id
15
+ expect(document.sidecar_allmaps).to respond_to :annotated
16
+ expect(document.sidecar_allmaps).to respond_to :allmaps_id
17
+ expect(document.sidecar_allmaps).to respond_to :iiif_manifest
18
+ expect(document.sidecar_allmaps).to respond_to :allmaps_annotation
19
+ expect(document.sidecar_allmaps).to respond_to :solr_version
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ ENV["RAILS_ENV"] ||= "test"
4
+
5
+ require "action_cable/engine"
6
+ require "engine_cart"
7
+ EngineCart.load_application!
8
+
9
+ require "rails-controller-testing" if Rails::VERSION::MAJOR >= 5
10
+ require "rspec/rails"
11
+ require "capybara/rspec"
12
+ require "webdrivers"
13
+ require "factory_bot_rails"
14
+
15
+ Capybara.register_driver :headless_chrome do |app|
16
+ Capybara::Selenium::Driver.load_selenium
17
+ browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
18
+ opts.args << "--headless"
19
+ opts.args << "--disable-gpu"
20
+ opts.args << "--no-sandbox"
21
+ opts.args << "--window-size=1280,1696"
22
+ end
23
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
24
+ end
25
+
26
+ Capybara.javascript_driver = :headless_chrome
27
+
28
+ require "blacklight/allmaps"
29
+ require "blacklight/allmaps/version"
30
+
31
+ # Requires supporting ruby files with custom matchers and macros, etc,
32
+ # in spec/support/ and its subdirectories.
33
+ Dir[Pathname.new(File.expand_path("support/**/*.rb", __dir__))].sort.each { |f| require f }
34
+
35
+ puts "\n\n=== Testing against Blacklight\n\n" unless defined?(Geoblacklight)
36
+ puts "\n\n=== Testing against GeoBlacklight\n\n" if defined?(Geoblacklight)
37
+
38
+ RSpec.configure do |config|
39
+ # rspec-rails 3 will no longer automatically infer an example group's spec type
40
+ # from the file location. You can explicitly opt-in to the feature using this
41
+ # config option.
42
+ # To explicitly tag specs without using automatic inference, set the `:type`
43
+ # metadata manually:
44
+ #
45
+ # describe ThingsController, :type => :controller do
46
+ # # Equivalent to being in spec/controllers
47
+ # end
48
+ config.infer_spec_type_from_file_location!
49
+ config.fixture_paths = ["spec/fixtures"]
50
+
51
+ config.include FactoryBot::Syntax::Methods
52
+ config.include Devise::Test::ControllerHelpers, type: :controller
53
+ end
@@ -0,0 +1,2 @@
1
+ gem 'rails-controller-testing'
2
+ gem 'blacklight', ENV['BLACKLIGHT_VERSION'] if ENV['BLACKLIGHT_VERSION']