geoblacklight 3.4.0 → 4.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -0
  3. data/app/assets/images/blacklight/michigan-state-university.svg +0 -1
  4. data/app/assets/images/blacklight/pennsylvania-state-university.svg +0 -1
  5. data/app/assets/images/blacklight/purdue-university.svg +0 -1
  6. data/app/assets/images/blacklight/the-ohio-state-university.svg +0 -1
  7. data/app/assets/images/blacklight/university-of-chicago.svg +0 -1
  8. data/app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg +0 -1
  9. data/app/assets/images/blacklight/university-of-iowa.svg +0 -1
  10. data/app/assets/images/blacklight/university-of-maryland.svg +0 -1
  11. data/app/assets/images/blacklight/university-of-michigan.svg +0 -1
  12. data/app/assets/images/blacklight/university-of-minnesota.svg +0 -1
  13. data/app/assets/images/blacklight/university-of-nebraska-lincoln.svg +0 -1
  14. data/app/assets/images/blacklight/university-of-wisconsin-madison.svg +0 -1
  15. data/app/helpers/geoblacklight_helper.rb +0 -15
  16. data/app/models/concerns/geoblacklight/solr_document/citation.rb +2 -2
  17. data/app/models/concerns/geoblacklight/solr_document.rb +4 -4
  18. data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +3 -3
  19. data/app/views/catalog/_downloads_primary.html.erb +1 -1
  20. data/app/views/catalog/_header_icons.html.erb +1 -1
  21. data/app/views/catalog/_home_text.html.erb +2 -2
  22. data/app/views/relation/_relations.html.erb +15 -0
  23. data/app/views/relation/index.html.erb +5 -17
  24. data/app/views/relation/index.json.jbuilder +6 -2
  25. data/config/initializers/rails_config.rb +0 -8
  26. data/config/locales/geoblacklight.en.yml +8 -0
  27. data/lib/generators/geoblacklight/templates/catalog_controller.rb +82 -36
  28. data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +195 -0
  29. data/lib/generators/geoblacklight/templates/settings.yml +81 -22
  30. data/lib/geoblacklight/download/geojson_download.rb +1 -1
  31. data/lib/geoblacklight/download/geotiff_download.rb +1 -1
  32. data/lib/geoblacklight/download/hgl_download.rb +1 -1
  33. data/lib/geoblacklight/download/kmz_download.rb +1 -1
  34. data/lib/geoblacklight/download/shapefile_download.rb +1 -1
  35. data/lib/geoblacklight/engine.rb +0 -2
  36. data/lib/geoblacklight/references.rb +1 -1
  37. data/lib/geoblacklight/relation/ancestors.rb +4 -3
  38. data/lib/geoblacklight/relation/descendants.rb +4 -3
  39. data/lib/geoblacklight/relation/relation_response.rb +21 -6
  40. data/lib/geoblacklight/version.rb +1 -1
  41. data/schema/{geoblacklight-schema.json → geoblacklight-schema-1.0.json} +1 -1
  42. data/schema/geoblacklight-schema-aardvark.json +211 -0
  43. data/solr/conf/schema.xml +38 -30
  44. data/solr/conf/solrconfig.xml +15 -15
  45. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +1 -1
  46. data/spec/config/initializers/rails_config_spec.rb +5 -8
  47. data/spec/controllers/catalog_controller_spec.rb +6 -6
  48. data/spec/features/download_layer_spec.rb +1 -1
  49. data/spec/features/esri_viewer_spec.rb +0 -1
  50. data/spec/features/home_page_spec.rb +4 -4
  51. data/spec/features/missing_metadata_spec.rb +2 -2
  52. data/spec/features/relations_spec.rb +2 -2
  53. data/spec/features/search_results_map_spec.rb +2 -1
  54. data/spec/features/search_results_overlap_ratio_spec.rb +2 -2
  55. data/spec/features/search_spec.rb +5 -0
  56. data/spec/features/show_page_download_spec.rb +26 -0
  57. data/spec/features/split_view.html.erb_spec.rb +15 -11
  58. data/spec/fixtures/solr_documents/README.md +48 -36
  59. data/spec/fixtures/solr_documents/actual-papermap1.json +41 -18
  60. data/spec/fixtures/solr_documents/actual-point1.json +47 -27
  61. data/spec/fixtures/solr_documents/actual-polygon1.json +43 -18
  62. data/spec/fixtures/solr_documents/actual-raster1.json +52 -23
  63. data/spec/fixtures/solr_documents/all-relationships.json +48 -0
  64. data/spec/fixtures/solr_documents/baruch_ancestor1.json +62 -37
  65. data/spec/fixtures/solr_documents/baruch_ancestor2.json +62 -37
  66. data/spec/fixtures/solr_documents/baruch_documentation_download.json +60 -34
  67. data/spec/fixtures/solr_documents/bbox-spans-180.json +34 -16
  68. data/spec/fixtures/solr_documents/cornell_html_metadata.json +46 -26
  69. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +43 -25
  70. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +45 -28
  71. data/spec/fixtures/solr_documents/esri-feature-layer.json +44 -34
  72. data/spec/fixtures/solr_documents/esri-image-map-layer.json +45 -31
  73. data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +42 -17
  74. data/spec/fixtures/solr_documents/esri-wms-layer.json +46 -21
  75. data/spec/fixtures/solr_documents/harvard_raster.json +55 -36
  76. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +35 -22
  77. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +48 -27
  78. data/spec/fixtures/solr_documents/index-map-polygon.json +48 -27
  79. data/spec/fixtures/solr_documents/index-map-stanford.json +54 -25
  80. data/spec/fixtures/solr_documents/index_map_point.json +54 -26
  81. data/spec/fixtures/solr_documents/metadata_no_geom.json +27 -0
  82. data/spec/fixtures/solr_documents/metadata_no_provider.json +39 -0
  83. data/spec/fixtures/solr_documents/multiple-downloads.json +33 -20
  84. data/spec/fixtures/solr_documents/no_locn_geometry.json +25 -0
  85. data/spec/fixtures/solr_documents/no_spatial.json +37 -19
  86. data/spec/fixtures/solr_documents/oembed.json +34 -17
  87. data/spec/fixtures/solr_documents/princeton-child1.json +45 -28
  88. data/spec/fixtures/solr_documents/princeton-child2.json +45 -28
  89. data/spec/fixtures/solr_documents/princeton-child3.json +45 -28
  90. data/spec/fixtures/solr_documents/princeton-child4.json +45 -28
  91. data/spec/fixtures/solr_documents/princeton-parent.json +46 -23
  92. data/spec/fixtures/solr_documents/public_direct_download.json +48 -21
  93. data/spec/fixtures/solr_documents/public_iiif_princeton.json +49 -24
  94. data/spec/fixtures/solr_documents/public_polygon_mit.json +31 -15
  95. data/spec/fixtures/solr_documents/restricted-line.json +52 -21
  96. data/spec/fixtures/solr_documents/the-related-record.json +27 -0
  97. data/spec/fixtures/solr_documents/tms.json +33 -17
  98. data/spec/fixtures/solr_documents/umn_metro_result1.json +44 -28
  99. data/spec/fixtures/solr_documents/umn_state_result1.json +44 -26
  100. data/spec/fixtures/solr_documents/umn_state_result2.json +45 -24
  101. data/spec/fixtures/solr_documents/uva_slug_colon.json +43 -20
  102. data/spec/helpers/geoblacklight_helper_spec.rb +0 -19
  103. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -1
  104. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -1
  105. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -1
  106. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -1
  107. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -1
  108. data/spec/lib/geoblacklight/download_spec.rb +1 -1
  109. data/spec/lib/geoblacklight/references_spec.rb +2 -2
  110. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +3 -3
  111. data/spec/lib/geoblacklight/relation/descendants_spec.rb +3 -3
  112. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +32 -17
  113. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +4 -4
  114. metadata +22 -24
  115. data/app/views/relation/_ancestors.html.erb +0 -8
  116. data/app/views/relation/_descendants.html.erb +0 -15
  117. data/config/initializers/new_gbl_settings_defaults_3_3.yml +0 -10
  118. data/schema/format-values.md +0 -50
  119. data/schema/geoblacklight-schema-deprecated.md +0 -39
  120. data/schema/geoblacklight-schema.md +0 -323
  121. data/schema/geometry-type-values.md +0 -11
  122. data/schema/references.md +0 -23
  123. data/schema/schema-commentary.md +0 -198
  124. data/schema/subjects.md +0 -41
  125. data/schema/type-values.md +0 -10
  126. data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +0 -30
  127. data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +0 -17
  128. data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +0 -23
@@ -2,7 +2,7 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::GeotiffDownload do
5
- let(:document) { SolrDocument.new(layer_slug_s: 'test', layer_id_s: 'stanford-test', solr_geom: 'ENVELOPE(-180, 180, 90, -90)') }
5
+ let(:document) { SolrDocument.new(Settings.FIELDS.ID => 'test', Settings.FIELDS.WXS_IDENTIFIER => 'stanford-test', Settings.FIELDS.SPATIAL_EXTENT => 'ENVELOPE(-180, 180, 90, -90)') }
6
6
  let(:download) { described_class.new(document) }
7
7
  describe '#initialize' do
8
8
  it 'initializes as a GeotiffDownload object with specific options' do
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
  describe Geoblacklight::HglDownload do
5
5
  subject(:download) { described_class.new(document, options) }
6
6
 
7
- let(:document) { SolrDocument.new(layer_slug_s: 'test', layer_id_s: 'cite:harvard-test') }
7
+ let(:document) { SolrDocument.new(Settings.FIELDS.ID => 'test', Settings.FIELDS.WXS_IDENTIFIER => 'cite:harvard-test') }
8
8
  let(:options) { 'foo@example.com' }
9
9
 
10
10
  describe '#initialize' do
@@ -2,7 +2,7 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::KmzDownload do
5
- let(:document) { SolrDocument.new(Settings.FIELDS.UNIQUE_KEY => 'test', solr_wfs_url: 'http://www.example.com/wfs', Settings.FIELDS.WXS_IDENTIFIER => 'stanford-test', Settings.FIELDS.GEOMETRY => 'ENVELOPE(-180, 180, 90, -90)') }
5
+ let(:document) { SolrDocument.new(Settings.FIELDS.ID => 'test', solr_wfs_url: 'http://www.example.com/wfs', Settings.FIELDS.WXS_IDENTIFIER => 'stanford-test', Settings.FIELDS.SPATIAL_EXTENT => 'ENVELOPE(-180, 180, 90, -90)') }
6
6
  let(:download) { described_class.new(document) }
7
7
  describe '#initialize' do
8
8
  it 'initializes as a KmzDownload object with specific options' do
@@ -2,7 +2,7 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::ShapefileDownload do
5
- let(:document) { SolrDocument.new(layer_slug_s: 'test', solr_wfs_url: 'http://www.example.com/wfs', layer_id_s: 'stanford-test', solr_geom: 'ENVELOPE(-180, 180, 90, -90)') }
5
+ let(:document) { SolrDocument.new(Settings.FIELDS.ID => 'test', solr_wfs_url: 'http://www.example.com/wfs', Settings.FIELDS.WXS_IDENTIFIER => 'stanford-test', Settings.FIELDS.SPATIAL_EXTENT => 'ENVELOPE(-180, 180, 90, -90)') }
6
6
  let(:download) { described_class.new(document) }
7
7
  describe '#initialize' do
8
8
  it 'initializes as a ShapefileDownload object with specific options' do
@@ -7,7 +7,7 @@ describe Geoblacklight::Download do
7
7
  let(:faraday_connection) { instance_double(Faraday::Connection) }
8
8
  let(:faraday_response) { instance_double(Faraday::Response) }
9
9
  let(:references_field) { Settings.FIELDS.REFERENCES }
10
- let(:document) { SolrDocument.new("#{Settings.FIELDS.UNIQUE_KEY}": 'test', references_field => { 'http://www.opengis.net/def/serviceType/ogc/wms' => 'http://www.example.com/wms' }.to_json) }
10
+ let(:document) { SolrDocument.new("#{Settings.FIELDS.ID}": 'test', references_field => { 'http://www.opengis.net/def/serviceType/ogc/wms' => 'http://www.example.com/wms' }.to_json) }
11
11
  let(:options) { { type: 'shapefile', extension: 'zip', service_type: 'wms', content_type: 'application/zip' } }
12
12
 
13
13
  describe '#initialize' do
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::References do
5
5
  let(:references_field) { Settings.FIELDS.REFERENCES }
6
- let(:file_format_field) { Settings.FIELDS.FILE_FORMAT }
6
+ let(:file_format_field) { Settings.FIELDS.FORMAT }
7
7
  let(:typical_ogp_shapefile) do
8
8
  described_class.new(
9
9
  SolrDocument.new(
@@ -135,7 +135,7 @@ describe Geoblacklight::References do
135
135
  let(:settings_klass) { class_double('Settings').as_stubbed_const }
136
136
  before do
137
137
  allow(settings_klass).to receive(:METADATA_SHOWN).and_return %w[iso19139 mods]
138
- allow(settings_klass).to receive(:FIELDS).and_return OpenStruct.new(FILE_FORMAT: 'dc_format_s')
138
+ allow(settings_klass).to receive(:FIELDS).and_return OpenStruct.new(FORMAT: 'dc_format_s')
139
139
  end
140
140
  it 'is ordered by the configuration' do
141
141
  expect(complex_shapefile.shown_metadata_refs.first.type.to_s).to eq 'iso19139'
@@ -3,12 +3,12 @@ require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::Relation::Ancestors do
5
5
  let(:repository) { Blacklight::Solr::Repository.new(CatalogController.blacklight_config) }
6
- let(:ancestors) { described_class.new('nyu_2451_34502', repository) }
7
- let(:empty_ancestors) { described_class.new('harvard-g7064-s2-1834-k3', repository) }
6
+ let(:ancestors) { described_class.new('nyu_2451_34502', Settings.FIELDS.SOURCE, repository) }
7
+ let(:empty_ancestors) { described_class.new('harvard-g7064-s2-1834-k3', Settings.FIELDS.SOURCE, repository) }
8
8
 
9
9
  describe '#create_search_params' do
10
10
  it 'assembles the correct search params for finding ancestor documents' do
11
- expect(ancestors.create_search_params).to eq(fq: ["{!join from=#{Settings.FIELDS.SOURCE} to=#{Settings.FIELDS.UNIQUE_KEY}}#{Settings.FIELDS.UNIQUE_KEY}:nyu_2451_34502"], fl: [Settings.FIELDS.TITLE.to_s, Settings.FIELDS.UNIQUE_KEY, Settings.FIELDS.GEOM_TYPE])
11
+ expect(ancestors.create_search_params).to eq(fq: ["{!join from=#{Settings.FIELDS.SOURCE} to=#{Settings.FIELDS.ID}}#{Settings.FIELDS.ID}:nyu_2451_34502"], fl: [Settings.FIELDS.TITLE.to_s, Settings.FIELDS.ID, Settings.FIELDS.RESOURCE_TYPE])
12
12
  end
13
13
  end
14
14
 
@@ -3,12 +3,12 @@ require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::Relation::Descendants do
5
5
  let(:repository) { Blacklight::Solr::Repository.new(CatalogController.blacklight_config) }
6
- let(:descendants) { described_class.new('nyu_2451_34636', repository) }
7
- let(:empty_descendants) { described_class.new('harvard-g7064-s2-1834-k3', repository) }
6
+ let(:descendants) { described_class.new('nyu_2451_34636', Settings.FIELDS.SOURCE, repository) }
7
+ let(:empty_descendants) { described_class.new('harvard-g7064-s2-1834-k3', Settings.FIELDS.SOURCE, repository) }
8
8
 
9
9
  describe '#create_search_params' do
10
10
  it 'assembles the correct search params for finding descendant documents' do
11
- expect(descendants.create_search_params).to eq(fq: "#{Settings.FIELDS.SOURCE}:nyu_2451_34636", fl: [Settings.FIELDS.TITLE.to_s, Settings.FIELDS.UNIQUE_KEY, Settings.FIELDS.GEOM_TYPE])
11
+ expect(descendants.create_search_params).to eq(fq: "#{Settings.FIELDS.SOURCE}:nyu_2451_34636", fl: [Settings.FIELDS.TITLE.to_s, Settings.FIELDS.ID, Settings.FIELDS.RESOURCE_TYPE])
12
12
  end
13
13
  end
14
14
 
@@ -11,34 +11,49 @@ describe Geoblacklight::Relation::RelationResponse do
11
11
  end
12
12
  end
13
13
 
14
- describe '#ancestors' do
14
+ describe '#method_missing' do
15
15
  it 'returns a hash of ancestor documents' do
16
- expect(relation_resp.ancestors).to include('numFound')
17
- expect(relation_resp.ancestors).to include('docs')
16
+ expect(relation_resp.SOURCE_ANCESTORS).to include('numFound')
17
+ expect(relation_resp.SOURCE_ANCESTORS).to include('docs')
18
18
  end
19
- end
20
19
 
21
- describe '#descendants' do
22
20
  it 'returns a hash of descendant documents' do
23
- expect(relation_resp.ancestors).to include('numFound')
24
- expect(relation_resp.ancestors).to include('docs')
21
+ expect(relation_resp.SOURCE_DESCENDANTS).to include('numFound')
22
+ expect(relation_resp.SOURCE_DESCENDANTS).to include('docs')
23
+ end
24
+
25
+ it 'raises no method error' do
26
+ expect { relation_resp.FAIL }.to raise_error NoMethodError
25
27
  end
26
28
  end
27
29
 
28
- describe '#empty?' do
29
- it 'returns false if document has ancestors or descendants' do
30
- expect(relation_resp.empty?).to be false
30
+ describe '#respond_to_missing?' do
31
+ it 'returns true for configured relationships' do
32
+ Settings.RELATIONSHIPS_SHOWN.each_key do |key|
33
+ expect(relation_resp).to respond_to(key)
34
+ end
31
35
  end
32
- it 'returns true if document has neither ancestors nor descendants' do
33
- expect(empty_relation_resp.empty?).to be true
36
+
37
+ it 'returns false for non-configured options' do
38
+ expect(relation_resp).not_to respond_to('fail')
34
39
  end
40
+ end
35
41
 
36
- context 'with a layer slug containing a colon' do
37
- let(:empty_relation_resp) { described_class.new('uva-Norfolk:police_point', repository) }
42
+ describe '#query_type' do
43
+ it 'fails for a bad query type request' do
44
+ Settings.add_source!({
45
+ RELATIONSHIPS_SHOWN: {
46
+ BAD: {
47
+ field: 'dct_source_sm',
48
+ query_type: 'bad_query_type',
49
+ icon: 'pagelines-brands',
50
+ label: 'geoblacklight.relations.ancestor'
51
+ }
52
+ }
53
+ })
54
+ Settings.reload!
38
55
 
39
- it 'returns true if document has neither ancestors nor descendants' do
40
- expect(empty_relation_resp.empty?).to be true
41
- end
56
+ expect { relation_resp.BAD }.to raise_error(ArgumentError)
42
57
  end
43
58
  end
44
59
  end
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::SolrDocument do
5
5
  let(:document) { SolrDocument.new(document_attributes) }
6
- let(:rights_field) { Settings.FIELDS.RIGHTS }
7
- let(:provenance_field) { Settings.FIELDS.PROVENANCE }
6
+ let(:rights_field) { Settings.FIELDS.ACCESS_RIGHTS }
7
+ let(:provider_field) { Settings.FIELDS.PROVIDER }
8
8
  let(:references_field) { Settings.FIELDS.REFERENCES }
9
9
  describe '#available?' do
10
10
  let(:document_attributes) { {} }
@@ -80,7 +80,7 @@ describe Geoblacklight::SolrDocument do
80
80
  end
81
81
  describe '#same_institution?' do
82
82
  describe 'within the same institution' do
83
- let(:document_attributes) { { provenance_field => 'STANFORD' } }
83
+ let(:document_attributes) { { provider_field => 'STANFORD' } }
84
84
  it 'is true' do
85
85
  allow(Settings).to receive('Institution').and_return('Stanford')
86
86
  expect(document.same_institution?).to be_truthy
@@ -91,7 +91,7 @@ describe Geoblacklight::SolrDocument do
91
91
  end
92
92
  end
93
93
  describe 'within a different institution' do
94
- let(:document_attributes) { { provenance_field => 'MIT' } }
94
+ let(:document_attributes) { { provider_field => 'MIT' } }
95
95
  it 'is false' do
96
96
  allow(Settings).to receive('Institution').and_return('Stanford')
97
97
  expect(document.same_institution?).to be_falsey
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 4.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
8
8
  - Darren Hardy
9
9
  - Eliot Jordan
10
10
  - Jack Reed
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-09-03 00:00:00.000000000 Z
14
+ date: 2021-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -571,14 +571,12 @@ files:
571
571
  - app/views/catalog/metadata/_missing.html.erb
572
572
  - app/views/catalog/web_services.html.erb
573
573
  - app/views/download/hgl.html.erb
574
- - app/views/relation/_ancestors.html.erb
575
- - app/views/relation/_descendants.html.erb
574
+ - app/views/relation/_relations.html.erb
576
575
  - app/views/relation/index.html.erb
577
576
  - app/views/relation/index.json.jbuilder
578
577
  - app/views/shared/_header_navbar.html.erb
579
578
  - babel.config.json
580
579
  - bin/coverage.rb
581
- - config/initializers/new_gbl_settings_defaults_3_3.yml
582
580
  - config/initializers/new_gbl_settings_defaults_3_4.yml
583
581
  - config/initializers/rails_config.rb
584
582
  - config/locales/geoblacklight.en.yml
@@ -594,6 +592,7 @@ files:
594
592
  - lib/generators/geoblacklight/templates/assets/geoblacklight.js
595
593
  - lib/generators/geoblacklight/templates/catalog_controller.rb
596
594
  - lib/generators/geoblacklight/templates/package.json
595
+ - lib/generators/geoblacklight/templates/settings.gbl_v1.yml
597
596
  - lib/generators/geoblacklight/templates/settings.yml
598
597
  - lib/generators/geoblacklight/templates/webpacker.yml
599
598
  - lib/generators/geoblacklight/webpacker_generator.rb
@@ -635,15 +634,8 @@ files:
635
634
  - lib/geoblacklight/wms_layer/feature_info_response.rb
636
635
  - lib/tasks/geoblacklight.rake
637
636
  - package.json
638
- - schema/format-values.md
639
- - schema/geoblacklight-schema-deprecated.md
640
- - schema/geoblacklight-schema.json
641
- - schema/geoblacklight-schema.md
642
- - schema/geometry-type-values.md
643
- - schema/references.md
644
- - schema/schema-commentary.md
645
- - schema/subjects.md
646
- - schema/type-values.md
637
+ - schema/geoblacklight-schema-1.0.json
638
+ - schema/geoblacklight-schema-aardvark.json
647
639
  - setupJest.js
648
640
  - solr/conf/_rest_managed.json
649
641
  - solr/conf/admin-extra.html
@@ -695,6 +687,7 @@ files:
695
687
  - spec/features/search_results_map_spec.rb
696
688
  - spec/features/search_results_overlap_ratio_spec.rb
697
689
  - spec/features/search_spec.rb
690
+ - spec/features/show_page_download_spec.rb
698
691
  - spec/features/show_page_metadata_spec.rb
699
692
  - spec/features/sms_spec.rb
700
693
  - spec/features/split_view.html.erb_spec.rb
@@ -710,6 +703,7 @@ files:
710
703
  - spec/fixtures/solr_documents/actual-point1.json
711
704
  - spec/fixtures/solr_documents/actual-polygon1.json
712
705
  - spec/fixtures/solr_documents/actual-raster1.json
706
+ - spec/fixtures/solr_documents/all-relationships.json
713
707
  - spec/fixtures/solr_documents/baruch_ancestor1.json
714
708
  - spec/fixtures/solr_documents/baruch_ancestor2.json
715
709
  - spec/fixtures/solr_documents/baruch_documentation_download.json
@@ -727,10 +721,10 @@ files:
727
721
  - spec/fixtures/solr_documents/index-map-polygon.json
728
722
  - spec/fixtures/solr_documents/index-map-stanford.json
729
723
  - spec/fixtures/solr_documents/index_map_point.json
730
- - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
731
- - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
732
- - spec/fixtures/solr_documents/metadata_no_solr_geom.json
724
+ - spec/fixtures/solr_documents/metadata_no_geom.json
725
+ - spec/fixtures/solr_documents/metadata_no_provider.json
733
726
  - spec/fixtures/solr_documents/multiple-downloads.json
727
+ - spec/fixtures/solr_documents/no_locn_geometry.json
734
728
  - spec/fixtures/solr_documents/no_spatial.json
735
729
  - spec/fixtures/solr_documents/oembed.json
736
730
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -742,6 +736,7 @@ files:
742
736
  - spec/fixtures/solr_documents/public_iiif_princeton.json
743
737
  - spec/fixtures/solr_documents/public_polygon_mit.json
744
738
  - spec/fixtures/solr_documents/restricted-line.json
739
+ - spec/fixtures/solr_documents/the-related-record.json
745
740
  - spec/fixtures/solr_documents/tms.json
746
741
  - spec/fixtures/solr_documents/umn_metro_result1.json
747
742
  - spec/fixtures/solr_documents/umn_state_result1.json
@@ -823,7 +818,7 @@ homepage: http://github.com/geoblacklight/geoblacklight
823
818
  licenses:
824
819
  - Apache 2.0
825
820
  metadata: {}
826
- post_install_message:
821
+ post_install_message:
827
822
  rdoc_options: []
828
823
  require_paths:
829
824
  - lib
@@ -838,8 +833,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
838
833
  - !ruby/object:Gem::Version
839
834
  version: 2.5.2
840
835
  requirements: []
841
- rubygems_version: 3.2.15
842
- signing_key:
836
+ rubygems_version: 3.2.22
837
+ signing_key:
843
838
  specification_version: 4
844
839
  summary: A discovery platform for geospatial holdings
845
840
  test_files:
@@ -876,6 +871,7 @@ test_files:
876
871
  - spec/features/search_results_map_spec.rb
877
872
  - spec/features/search_results_overlap_ratio_spec.rb
878
873
  - spec/features/search_spec.rb
874
+ - spec/features/show_page_download_spec.rb
879
875
  - spec/features/show_page_metadata_spec.rb
880
876
  - spec/features/sms_spec.rb
881
877
  - spec/features/split_view.html.erb_spec.rb
@@ -891,6 +887,7 @@ test_files:
891
887
  - spec/fixtures/solr_documents/actual-point1.json
892
888
  - spec/fixtures/solr_documents/actual-polygon1.json
893
889
  - spec/fixtures/solr_documents/actual-raster1.json
890
+ - spec/fixtures/solr_documents/all-relationships.json
894
891
  - spec/fixtures/solr_documents/baruch_ancestor1.json
895
892
  - spec/fixtures/solr_documents/baruch_ancestor2.json
896
893
  - spec/fixtures/solr_documents/baruch_documentation_download.json
@@ -908,10 +905,10 @@ test_files:
908
905
  - spec/fixtures/solr_documents/index-map-polygon.json
909
906
  - spec/fixtures/solr_documents/index-map-stanford.json
910
907
  - spec/fixtures/solr_documents/index_map_point.json
911
- - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
912
- - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
913
- - spec/fixtures/solr_documents/metadata_no_solr_geom.json
908
+ - spec/fixtures/solr_documents/metadata_no_geom.json
909
+ - spec/fixtures/solr_documents/metadata_no_provider.json
914
910
  - spec/fixtures/solr_documents/multiple-downloads.json
911
+ - spec/fixtures/solr_documents/no_locn_geometry.json
915
912
  - spec/fixtures/solr_documents/no_spatial.json
916
913
  - spec/fixtures/solr_documents/oembed.json
917
914
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -923,6 +920,7 @@ test_files:
923
920
  - spec/fixtures/solr_documents/public_iiif_princeton.json
924
921
  - spec/fixtures/solr_documents/public_polygon_mit.json
925
922
  - spec/fixtures/solr_documents/restricted-line.json
923
+ - spec/fixtures/solr_documents/the-related-record.json
926
924
  - spec/fixtures/solr_documents/tms.json
927
925
  - spec/fixtures/solr_documents/umn_metro_result1.json
928
926
  - spec/fixtures/solr_documents/umn_state_result1.json
@@ -1,8 +0,0 @@
1
- <% @relations.ancestors['docs'].each do |ancestor| %>
2
- <li class="list-group-item border-bottom-0">
3
- <%= link_to solr_document_path(ancestor[Settings.FIELDS.UNIQUE_KEY]) do %>
4
- <%= relations_icon(ancestor, 'pagelines-brands') %>
5
- <%= ancestor[Settings.FIELDS.TITLE] %>
6
- <% end %>
7
- </li>
8
- <% end %>
@@ -1,15 +0,0 @@
1
- <% @relations.descendants['docs'][0..2].each do |descendant| %>
2
- <li class="list-group-item border-bottom-0">
3
- <%= link_to solr_document_path(descendant[Settings.FIELDS.UNIQUE_KEY]) do %>
4
- <%= relations_icon(descendant, 'leaf') %>
5
- <%= descendant[Settings.FIELDS.TITLE] %>
6
- <% end %>
7
- </li>
8
- <% end %>
9
- <% unless (@relations.descendants['numFound'].to_i <= 3) %>
10
- <li class="list-group-item border-bottom-0">
11
- <%= link_to search_catalog_path({f: {"#{Settings.FIELDS.SOURCE}" => [@relations.link_id]}}) do %>
12
- <%= t('geoblacklight.relations.browse_all', count: @relations.descendants['numFound']) %>
13
- <% end %>
14
- </li>
15
- <% end %>
@@ -1,10 +0,0 @@
1
- # New GeoBlacklight v3.3 Solr field mappings
2
- FIELDS:
3
- :IDENTIFIER: 'dc_identifier_s'
4
- :LANGUAGE: 'dc_language_s'
5
- :LAYER_MODIFIED: 'layer_modified_dt'
6
- :OVERLAP_FIELD: 'solr_bboxtype'
7
- :SOURCE: 'dc_source_sm'
8
- :SUPPRESSED: 'suppressed_b'
9
- :TYPE: 'dc_type_s'
10
- :UNIQUE_KEY: 'layer_slug_s'
@@ -1,50 +0,0 @@
1
- ## GeoBlacklight Format Controlled Vocabulary
2
-
3
- #### Type: Dataset
4
- | Format | Associated Geometry Type(s) |
5
- |:----------------------------|:-------------|
6
- |ArcGRID |Raster |
7
- |CD-ROM |Vector or Raster |
8
- |DEM |Vector or Raster |
9
- |DVD-ROM |Vector or Raster |
10
- |Feature Class |Vector or Raster |
11
- |Geodatabase |Vector or Raster |
12
- |GeoJPEG |Raster |
13
- |GeoJSON |Vector |
14
- |GeoPackage |Vector or Raster |
15
- |GeoPDF |Vector or Raster |
16
- |GeoTIFF |Raster |
17
- |KML |Vector |
18
- |KMZ |Vector or Raster |
19
- |LAS | |
20
- |LAZ | |
21
- |Mixed |Vector or Raster |
22
- |Pulsewaves | |
23
- |Raster Dataset |Raster |
24
- |Shapefile |Vector |
25
- |SQLite Database|Vector or Raster |
26
- |Tabular Data |- |
27
-
28
- #### Type: Image
29
-
30
- | Format |
31
- |:----------------------------|
32
- |JPEG |
33
- |JPEG2000 |
34
- |Mixed |
35
- |MrSID |
36
- |PDF |
37
- |PNG |
38
- |TIFF |
39
-
40
-
41
- #### Type: Interactive Resource
42
- | Format |
43
- |:----------------------------|
44
- |Web Application|
45
-
46
- #### Type: Physical Object
47
- | Format |
48
- |:----------------------------|
49
- |Cartographic Material|
50
- |Paper Map|
@@ -1,39 +0,0 @@
1
- ## <a name="resource-layer">layer</a>
2
-
3
-
4
- A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bb/099/zb/1450/geoblacklight.json) metadata layer.
5
-
6
- ### Attributes
7
-
8
- | Name | Type | Description | Example |
9
- | ------- | ------- | ------- | ------- |
10
- | **dc_creator_sm** | *array* | Author(s) of the layer. *Optional* | `"George Washington, Thomas Jefferson"` |
11
- | **dc_description_s** | *string* | Description for the layer. *Optional* | `"My Description"` |
12
- | **dc_format_s** | *string* | File format for the layer, ideally using a controlled vocabulary. *Optional* | `"Shapefile, GeoTIFF, ArcGRID"` |
13
- | **dc_identifier_s** | *string* | Unique identifier for layer as a URI. It should be globally unique across all institutions, assumed not to be end-user visible, and is usually of the form `http://institution/id`. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation. | `"http://purl.stanford.edu/vr593vj7147"` |
14
- | **dc_language_s** | *string* | Language for the layer. *Optional*. Note that future versions of the schema may make this a multi-valued field. | `"English"` |
15
- | **dc_publisher_s** | *string* | Publisher of the layer. *Optional* | `"ML InfoMap"` |
16
- | **dc_relation_sm** | *array* | *DEPRECATED* (use `dct_isPartOf_sm`). A reference to a related resource for this layer. *Optional* | `"http://purl.stanford.edu/vr593vj7147"` |
17
- | **dc_rights_s** | *string* | Access rights for the layer.<br/> **one of:**`"Public"` or `"Restricted"` | `"Public"` |
18
- | **dc_source_sm** | *array* | The identity of a layer from which this layer's data was derived. *Optional* | `"stanford-vr593vj7147"` |
19
- | **dc_subject_sm** | *array* | Subjects for the layer, preferrably in a controlled vocabulary. *Optional* | `"Census, Human settlements"` |
20
- | **dc_title_s** | *string* | Title for the layer. | `"My Title"` |
21
- | **dc_type_s** | *string* | Resource type of the layer, using DCMI Type Vocabulary, usually a `Dataset`. *Optional*<br/> **one of:**`"Dataset"` or `"Image"` or `"PhysicalObject"` | `"Dataset"` |
22
- | **dct_isPartOf_sm** | *array* | Holding entity for the layer, such as the title of a collection. *Optional* | `"Village Maps of India"` |
23
- | **dct_issued_dt** | *date-time* | Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional* | `"2015-01-01T12:00:00Z"` |
24
- | **dct_provenance_s** | *string* | Institution who holds the layer. | `"Stanford"` |
25
- | **dct_references_s** | *string* | External resources that are available for the layer. The value is a JSON hash where each key is a URI for the protocol or format, and the value is the URL to the external resource. See `dct_references_s` [detailed documentation](http://geoblacklight.org/tutorial/2015/02/09/geoblacklight-overview.html). *Optional*<br/> **pattern:** `\{.*\}` | `"{ ... }"` |
26
- | **dct_spatial_sm** | *array* | Spatial coverage and place names for the layer, preferrably in a controlled vocabulary. *Optional* | `"Paris, San Francisco"` |
27
- | **dct_temporal_sm** | *array* | Temporal coverage for the layer, typically years or dates. Note that this field is not in a specific date format. *Optional* | `"1989, circa 2010, 2007-2009"` |
28
- | **geoblacklight_version** | *string* | The version of the GeoBlacklight Schema to which this metadata record conforms.<br/> **one of:**`"1.0"` | `"1.0"` |
29
- | **georss_box_s** | *string* | *DEPRECATED* (use `solr_geom`): Bounding box for the layer, as maximum values for S W N E. | `"12.6 -119.4 19.9 84.8"` |
30
- | **georss_point_s** | *string* | *DEPRECATED* (use `georss_box_s`): Point representation for layer as y, x - i.e., centroid | `"12.6 -119.4"` |
31
- | **layer_geom_type_s** | *string* | Geometry type for layer data, using controlled vocabulary.<br/> **one of:**`"Point"` or `"Line"` or `"Polygon"` or `"Raster"` or `"Scanned Map"` or `"Image"` or `"Mixed"` | `"Point"` |
32
- | **layer_id_s** | *string* | The complete identifier for the layer via WMS/WFS/WCS protocol. *Optional* | `"druid:vr593vj7147"` |
33
- | **layer_modified_dt** | *date-time* | Last modification date for the metadata record, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional* | `"2015-01-01T12:00:00Z"` |
34
- | **layer_slug_s** | *string* | Identifies a layer in human-readable keywords. Note this value is visible to the user, and used for Permalinks. The value should be alpha-numeric characters separated by dashes, and is typically of the form `institution-keyword1-keyword2`. It should also be globally unique across all institutions in *your* GeoBlacklight index. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation.<br/> **pattern:** `^[-a-zA-Z0-9]+$` | `"stanford-andhra-pradesh-village-boundaries"` |
35
- | **solr_geom** | *string* | Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. Note that this field is indexed as a Solr spatial (RPT) field.<br/> **pattern:** `ENVELOPE(.*,.*,.*,.*)` | `"ENVELOPE(76.76, 84.76, 19.91, 12.62)"` |
36
- | **solr_year_i** | *integer* | *DEPRECATED* (only used by the Blacklight range plugin, not core GeoBlacklight, and generally you want a multi-valued field here): *Derived from* `dct_temporal_sm`. Year for which layer is valid and only a single value. Note that this field is indexed as a Solr numeric field. | `"1989"` |
37
- | **uuid** | *string* | *DEPRECATED* (use `dc_identifier_s`): Unique identifier for layer that is globally unique. | `"http://purl.stanford.edu/vr593vj7147"` |
38
-
39
-