geo_concerns 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc +8 -0
- data/.gitignore +1 -2
- data/.rubocop.yml +1 -0
- data/.travis.yml +7 -8
- data/Gemfile +1 -3
- data/README.md +3 -2
- data/app/assets/javascripts/geo_concerns/application.js +0 -1
- data/app/assets/javascripts/geo_concerns/bounding_box_selector.js +1 -2
- data/app/assets/javascripts/geo_concerns/es6-modules.js +7 -0
- data/app/assets/javascripts/geo_concerns/geo_concerns_boot.es6 +8 -0
- data/app/assets/javascripts/geo_concerns/relationships.js +3 -0
- data/app/assets/javascripts/geo_concerns/relationships/child_works.es6 +20 -0
- data/app/assets/javascripts/geo_concerns/relationships/parent_works.es6 +20 -0
- data/app/assets/javascripts/geo_concerns/relationships/related_works.es6 +187 -0
- data/app/assets/stylesheets/geo_concerns/related_works.scss +29 -0
- data/app/assets/stylesheets/geo_concerns/thumbnails.scss +12 -6
- data/app/helpers/geo_concerns/populate_metadata_helper.rb +7 -0
- data/app/jobs/delivery_job.rb +18 -0
- data/app/models/concerns/geo_concerns/file_set/derivatives.rb +9 -0
- data/app/models/concerns/geo_concerns/metadata_extraction_helper.rb +7 -8
- data/app/models/concerns/geo_concerns/solr_document_behavior.rb +17 -1
- data/app/presenters/geo_concerns/geo_concerns_show_presenter.rb +9 -1
- data/app/processors/geo_concerns/processors/base_geo_processor.rb +7 -7
- data/app/services/geo_concerns/delivery/geoserver.rb +64 -0
- data/app/services/geo_concerns/delivery_service.rb +11 -0
- data/app/services/geo_concerns/derivative_path.rb +1 -1
- data/app/services/geo_concerns/discovery/abstract_document.rb +4 -4
- data/app/services/geo_concerns/discovery/document_builder/basic_metadata_builder.rb +5 -12
- data/app/services/geo_concerns/discovery/document_builder/date_builder.rb +19 -8
- data/app/services/geo_concerns/discovery/document_builder/spatial_builder.rb +3 -8
- data/app/services/geo_concerns/discovery/geoblacklight_document.rb +32 -17
- data/app/views/curation_concerns/image_works/show.html.erb +1 -5
- data/app/views/curation_concerns/raster_works/_show_actions.html.erb +0 -14
- data/app/views/curation_concerns/raster_works/show.html.erb +1 -5
- data/app/views/curation_concerns/vector_works/show.html.erb +1 -5
- data/app/views/geo_concerns/_form_additional_information.html.erb +8 -8
- data/app/views/geo_concerns/_form_populate_metadata.html.erb +1 -1
- data/app/views/geo_concerns/_form_required_information.html.erb +0 -2
- data/app/views/geo_concerns/_related.html.erb +4 -0
- data/app/views/geo_concerns/file_sets/actions/_image_actions.html.erb +1 -1
- data/app/views/geo_concerns/file_sets/actions/_raster_actions.html.erb +2 -2
- data/app/views/geo_concerns/file_sets/actions/_vector_actions.html.erb +2 -2
- data/app/views/geo_concerns/related/_child_member.html.erb +13 -0
- data/app/views/geo_concerns/related/_child_works.html.erb +24 -0
- data/app/views/geo_concerns/related/_external_metadata_file_member.html.erb +8 -0
- data/app/views/geo_concerns/{_related_external_metadata_files.html.erb → related/_external_metadata_files.html.erb} +1 -2
- data/app/views/geo_concerns/{_related_geo_files.html.erb → related/_geo_files.html.erb} +0 -0
- data/app/views/geo_concerns/related/_new_child_member.html.erb +22 -0
- data/app/views/geo_concerns/related/_new_parent_member.html.erb +13 -0
- data/app/views/geo_concerns/related/_parent_member.html.erb +13 -0
- data/app/views/geo_concerns/related/_parent_works.html.erb +22 -0
- data/geo_concerns.gemspec +9 -6
- data/lib/generators/geo_concerns/install_generator.rb +10 -8
- data/lib/generators/geo_concerns/templates/config/geoserver.yml +17 -0
- data/lib/generators/geo_concerns/templates/config/locales/geo_concerns.en.yml +4 -0
- data/lib/geo_concerns/version.rb +1 -1
- data/spec/factories/collections.rb +17 -0
- data/spec/features/create_raster_work_spec.rb +5 -2
- data/spec/forms/geo_concerns/image_work_form_spec.rb +2 -2
- data/spec/helpers/geo_concerns/populate_metadata_helper_spec.rb +31 -0
- data/spec/jobs/delivery_job_spec.rb +25 -0
- data/spec/models/concerns/geo_concerns/file_set/derivatives_spec.rb +9 -0
- data/spec/models/image_work_spec.rb +1 -1
- data/spec/models/raster_work_spec.rb +1 -1
- data/spec/models/solr_document_spec.rb +2 -2
- data/spec/models/vector_work_spec.rb +1 -5
- data/spec/presenters/raster_work_show_presenter_spec.rb +22 -0
- data/spec/processors/geo_concerns/processors/base_geo_processor_spec.rb +14 -5
- data/spec/services/derivative_path_spec.rb +19 -5
- data/spec/services/geo_concerns/delivery/geoserver_spec.rb +72 -0
- data/spec/services/geo_concerns/delivery_service_spec.rb +15 -0
- data/spec/services/geo_concerns/discovery/document_builder_spec.rb +56 -38
- data/spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb +7 -5
- data/template.rb +1 -1
- metadata +94 -19
- data/app/views/geo_concerns/_related_geo_works.html.erb +0 -32
- data/lib/generators/geo_concerns/templates/config/discovery/geoblacklight_schema.json +0 -168
- data/lib/generators/geo_concerns/templates/jobs/characterize_job.rb +0 -19
data/template.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geo_concerns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Griffin
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-09-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: curation_concerns
|
@@ -48,28 +48,56 @@ dependencies:
|
|
48
48
|
requirements:
|
49
49
|
- - '='
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: 0.1.
|
51
|
+
version: 0.1.2
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - '='
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 0.1.
|
58
|
+
version: 0.1.2
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: json-schema
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 2.6.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
72
|
+
version: 2.6.2
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rgeoserver
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.9.1
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.9.1
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: bundler
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.12.5
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.12.5
|
73
101
|
- !ruby/object:Gem::Dependency
|
74
102
|
name: sqlite3
|
75
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,56 +138,74 @@ dependencies:
|
|
110
138
|
requirements:
|
111
139
|
- - ">="
|
112
140
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
141
|
+
version: 3.5.2
|
114
142
|
type: :development
|
115
143
|
prerelease: false
|
116
144
|
version_requirements: !ruby/object:Gem::Requirement
|
117
145
|
requirements:
|
118
146
|
- - ">="
|
119
147
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
148
|
+
version: 3.5.2
|
121
149
|
- !ruby/object:Gem::Dependency
|
122
150
|
name: engine_cart
|
123
151
|
requirement: !ruby/object:Gem::Requirement
|
124
152
|
requirements:
|
125
153
|
- - "~>"
|
126
154
|
- !ruby/object:Gem::Version
|
127
|
-
version: '0
|
155
|
+
version: '1.0'
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 1.0.0
|
128
159
|
type: :development
|
129
160
|
prerelease: false
|
130
161
|
version_requirements: !ruby/object:Gem::Requirement
|
131
162
|
requirements:
|
132
163
|
- - "~>"
|
133
164
|
- !ruby/object:Gem::Version
|
134
|
-
version: '0
|
165
|
+
version: '1.0'
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 1.0.0
|
135
169
|
- !ruby/object:Gem::Dependency
|
136
170
|
name: solr_wrapper
|
137
171
|
requirement: !ruby/object:Gem::Requirement
|
138
172
|
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0.18'
|
139
176
|
- - ">="
|
140
177
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.
|
178
|
+
version: 0.18.0
|
142
179
|
type: :development
|
143
180
|
prerelease: false
|
144
181
|
version_requirements: !ruby/object:Gem::Requirement
|
145
182
|
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0.18'
|
146
186
|
- - ">="
|
147
187
|
- !ruby/object:Gem::Version
|
148
|
-
version: 0.
|
188
|
+
version: 0.18.0
|
149
189
|
- !ruby/object:Gem::Dependency
|
150
190
|
name: fcrepo_wrapper
|
151
191
|
requirement: !ruby/object:Gem::Requirement
|
152
192
|
requirements:
|
153
193
|
- - "~>"
|
154
194
|
- !ruby/object:Gem::Version
|
155
|
-
version: '0.
|
195
|
+
version: '0.6'
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: 0.6.0
|
156
199
|
type: :development
|
157
200
|
prerelease: false
|
158
201
|
version_requirements: !ruby/object:Gem::Requirement
|
159
202
|
requirements:
|
160
203
|
- - "~>"
|
161
204
|
- !ruby/object:Gem::Version
|
162
|
-
version: '0.
|
205
|
+
version: '0.6'
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.6.0
|
163
209
|
- !ruby/object:Gem::Dependency
|
164
210
|
name: pry-byebug
|
165
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,6 +301,7 @@ executables: []
|
|
255
301
|
extensions: []
|
256
302
|
extra_rdoc_files: []
|
257
303
|
files:
|
304
|
+
- ".eslintrc"
|
258
305
|
- ".fcrepo_wrapper"
|
259
306
|
- ".gitignore"
|
260
307
|
- ".rubocop.yml"
|
@@ -275,11 +322,18 @@ files:
|
|
275
322
|
- app/assets/javascripts/geo_concerns/Control.Geocoder.js
|
276
323
|
- app/assets/javascripts/geo_concerns/application.js
|
277
324
|
- app/assets/javascripts/geo_concerns/bounding_box_selector.js
|
325
|
+
- app/assets/javascripts/geo_concerns/es6-modules.js
|
326
|
+
- app/assets/javascripts/geo_concerns/geo_concerns_boot.es6
|
278
327
|
- app/assets/javascripts/geo_concerns/leaflet-boundingbox.js
|
328
|
+
- app/assets/javascripts/geo_concerns/relationships.js
|
329
|
+
- app/assets/javascripts/geo_concerns/relationships/child_works.es6
|
330
|
+
- app/assets/javascripts/geo_concerns/relationships/parent_works.es6
|
331
|
+
- app/assets/javascripts/geo_concerns/relationships/related_works.es6
|
279
332
|
- app/assets/stylesheets/geo_concerns/Control.Geocoder.css
|
280
333
|
- app/assets/stylesheets/geo_concerns/application.css
|
281
334
|
- app/assets/stylesheets/geo_concerns/bounding_box.scss
|
282
335
|
- app/assets/stylesheets/geo_concerns/leaflet-boundingbox.css
|
336
|
+
- app/assets/stylesheets/geo_concerns/related_works.scss
|
283
337
|
- app/assets/stylesheets/geo_concerns/thumbnails.scss
|
284
338
|
- app/controllers/concerns/geo_concerns/download_behavior.rb
|
285
339
|
- app/controllers/concerns/geo_concerns/file_sets_controller_behavior.rb
|
@@ -297,6 +351,8 @@ files:
|
|
297
351
|
- app/helpers/geo_concerns/bounding_box_helper.rb
|
298
352
|
- app/helpers/geo_concerns/file_set_actions_helper.rb
|
299
353
|
- app/helpers/geo_concerns/geo_works_helper.rb
|
354
|
+
- app/helpers/geo_concerns/populate_metadata_helper.rb
|
355
|
+
- app/jobs/delivery_job.rb
|
300
356
|
- app/models/concerns/geo_concerns/ability.rb
|
301
357
|
- app/models/concerns/geo_concerns/basic_geo_metadata.rb
|
302
358
|
- app/models/concerns/geo_concerns/external_metadata_file_behavior.rb
|
@@ -345,6 +401,8 @@ files:
|
|
345
401
|
- app/schemas/geo_concerns/basic_geo_metadata_required.rb
|
346
402
|
- app/schemas/geo_concerns/file_set_metadata_required.rb
|
347
403
|
- app/services/geo_concerns/authority_service.rb
|
404
|
+
- app/services/geo_concerns/delivery/geoserver.rb
|
405
|
+
- app/services/geo_concerns/delivery_service.rb
|
348
406
|
- app/services/geo_concerns/derivative_path.rb
|
349
407
|
- app/services/geo_concerns/discovery.rb
|
350
408
|
- app/services/geo_concerns/discovery/abstract_document.rb
|
@@ -389,9 +447,7 @@ files:
|
|
389
447
|
- app/views/geo_concerns/_form_required_information.html.erb
|
390
448
|
- app/views/geo_concerns/_form_supplementary_fields.html.erb
|
391
449
|
- app/views/geo_concerns/_member.html.erb
|
392
|
-
- app/views/geo_concerns/
|
393
|
-
- app/views/geo_concerns/_related_geo_files.html.erb
|
394
|
-
- app/views/geo_concerns/_related_geo_works.html.erb
|
450
|
+
- app/views/geo_concerns/_related.html.erb
|
395
451
|
- app/views/geo_concerns/_representative_media.html.erb
|
396
452
|
- app/views/geo_concerns/file_sets/_form.html.erb
|
397
453
|
- app/views/geo_concerns/file_sets/actions/_default_actions.html.erb
|
@@ -401,6 +457,15 @@ files:
|
|
401
457
|
- app/views/geo_concerns/file_sets/actions/_vector_actions.html.erb
|
402
458
|
- app/views/geo_concerns/file_sets/media_display/_geo.html.erb
|
403
459
|
- app/views/geo_concerns/file_sets/new.html.erb
|
460
|
+
- app/views/geo_concerns/related/_child_member.html.erb
|
461
|
+
- app/views/geo_concerns/related/_child_works.html.erb
|
462
|
+
- app/views/geo_concerns/related/_external_metadata_file_member.html.erb
|
463
|
+
- app/views/geo_concerns/related/_external_metadata_files.html.erb
|
464
|
+
- app/views/geo_concerns/related/_geo_files.html.erb
|
465
|
+
- app/views/geo_concerns/related/_new_child_member.html.erb
|
466
|
+
- app/views/geo_concerns/related/_new_parent_member.html.erb
|
467
|
+
- app/views/geo_concerns/related/_parent_member.html.erb
|
468
|
+
- app/views/geo_concerns/related/_parent_works.html.erb
|
404
469
|
- app/vocabs/geo_concerns/geo_terms.rb
|
405
470
|
- config/routes.rb
|
406
471
|
- geo_concerns.gemspec
|
@@ -412,7 +477,8 @@ files:
|
|
412
477
|
- lib/generators/geo_concerns/templates/config/authorities/metadata_formats.yml
|
413
478
|
- lib/generators/geo_concerns/templates/config/authorities/raster_formats.yml
|
414
479
|
- lib/generators/geo_concerns/templates/config/authorities/vector_formats.yml
|
415
|
-
- lib/generators/geo_concerns/templates/config/
|
480
|
+
- lib/generators/geo_concerns/templates/config/geoserver.yml
|
481
|
+
- lib/generators/geo_concerns/templates/config/locales/geo_concerns.en.yml
|
416
482
|
- lib/generators/geo_concerns/templates/config/mapnik.yml
|
417
483
|
- lib/generators/geo_concerns/templates/controllers/curation_concerns/file_sets_controller.rb
|
418
484
|
- lib/generators/geo_concerns/templates/controllers/curation_concerns/image_works_controller.rb
|
@@ -421,7 +487,6 @@ files:
|
|
421
487
|
- lib/generators/geo_concerns/templates/controllers/downloads_controller.rb
|
422
488
|
- lib/generators/geo_concerns/templates/geo_concerns.js
|
423
489
|
- lib/generators/geo_concerns/templates/geo_concerns.scss
|
424
|
-
- lib/generators/geo_concerns/templates/jobs/characterize_job.rb
|
425
490
|
- lib/generators/geo_concerns/templates/models/file_set.rb
|
426
491
|
- lib/generators/geo_concerns/templates/models/image_work.rb
|
427
492
|
- lib/generators/geo_concerns/templates/models/raster_work.rb
|
@@ -456,6 +521,7 @@ files:
|
|
456
521
|
- spec/controllers/image_works_controller_spec.rb
|
457
522
|
- spec/controllers/raster_works_controller_spec.rb
|
458
523
|
- spec/controllers/vector_works_controller_spec.rb
|
524
|
+
- spec/factories/collections.rb
|
459
525
|
- spec/factories/external_metadata_files.rb
|
460
526
|
- spec/factories/image_files.rb
|
461
527
|
- spec/factories/image_works.rb
|
@@ -473,7 +539,9 @@ files:
|
|
473
539
|
- spec/forms/geo_concerns/vector_work_form_spec.rb
|
474
540
|
- spec/helpers/bounding_box_helper_spec.rb
|
475
541
|
- spec/helpers/geo_concerns/file_set_actions_helper_spec.rb
|
542
|
+
- spec/helpers/geo_concerns/populate_metadata_helper_spec.rb
|
476
543
|
- spec/helpers/geo_works_helper_spec.rb
|
544
|
+
- spec/jobs/delivery_job_spec.rb
|
477
545
|
- spec/models/concerns/basic_geo_metadata_spec.rb
|
478
546
|
- spec/models/concerns/geo_concerns/file_set/derivatives_spec.rb
|
479
547
|
- spec/models/concerns/geo_concerns/file_set/geo_file_format_behavior_spec.rb
|
@@ -507,6 +575,8 @@ files:
|
|
507
575
|
- spec/processors/geo_concerns/processors/zip_spec.rb
|
508
576
|
- spec/renderers/geo_concerns/coverage_renderer_spec.rb
|
509
577
|
- spec/services/derivative_path_spec.rb
|
578
|
+
- spec/services/geo_concerns/delivery/geoserver_spec.rb
|
579
|
+
- spec/services/geo_concerns/delivery_service_spec.rb
|
510
580
|
- spec/services/geo_concerns/discovery/abstract_document_spec.rb
|
511
581
|
- spec/services/geo_concerns/discovery/document_builder_spec.rb
|
512
582
|
- spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
|
@@ -556,6 +626,7 @@ test_files:
|
|
556
626
|
- spec/controllers/image_works_controller_spec.rb
|
557
627
|
- spec/controllers/raster_works_controller_spec.rb
|
558
628
|
- spec/controllers/vector_works_controller_spec.rb
|
629
|
+
- spec/factories/collections.rb
|
559
630
|
- spec/factories/external_metadata_files.rb
|
560
631
|
- spec/factories/image_files.rb
|
561
632
|
- spec/factories/image_works.rb
|
@@ -573,7 +644,9 @@ test_files:
|
|
573
644
|
- spec/forms/geo_concerns/vector_work_form_spec.rb
|
574
645
|
- spec/helpers/bounding_box_helper_spec.rb
|
575
646
|
- spec/helpers/geo_concerns/file_set_actions_helper_spec.rb
|
647
|
+
- spec/helpers/geo_concerns/populate_metadata_helper_spec.rb
|
576
648
|
- spec/helpers/geo_works_helper_spec.rb
|
649
|
+
- spec/jobs/delivery_job_spec.rb
|
577
650
|
- spec/models/concerns/basic_geo_metadata_spec.rb
|
578
651
|
- spec/models/concerns/geo_concerns/file_set/derivatives_spec.rb
|
579
652
|
- spec/models/concerns/geo_concerns/file_set/geo_file_format_behavior_spec.rb
|
@@ -607,6 +680,8 @@ test_files:
|
|
607
680
|
- spec/processors/geo_concerns/processors/zip_spec.rb
|
608
681
|
- spec/renderers/geo_concerns/coverage_renderer_spec.rb
|
609
682
|
- spec/services/derivative_path_spec.rb
|
683
|
+
- spec/services/geo_concerns/delivery/geoserver_spec.rb
|
684
|
+
- spec/services/geo_concerns/delivery_service_spec.rb
|
610
685
|
- spec/services/geo_concerns/discovery/abstract_document_spec.rb
|
611
686
|
- spec/services/geo_concerns/discovery/document_builder_spec.rb
|
612
687
|
- spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<% if presenter.work_presenters.present? %>
|
2
|
-
<div class="panel panel-default raster_works">
|
3
|
-
<div class="panel-heading">
|
4
|
-
<h2><%= child_geo_works_type(presenter) %> Works</h2>
|
5
|
-
</div>
|
6
|
-
<table class="table">
|
7
|
-
<thead>
|
8
|
-
<tr>
|
9
|
-
<th class="col-xs-3"></th>
|
10
|
-
<th>Work Name</th>
|
11
|
-
</tr>
|
12
|
-
</thead>
|
13
|
-
<tbody>
|
14
|
-
<% presenter.work_presenters.each do |res| %>
|
15
|
-
<tr class="file_set attributes">
|
16
|
-
<td class="thumbnail" style="margin-bottom: 0px">
|
17
|
-
<%= render_thumbnail_tag res %>
|
18
|
-
</td>
|
19
|
-
<td>
|
20
|
-
<%= link_to res.title.first, contextual_path(res, @presenter) %>
|
21
|
-
</td>
|
22
|
-
</tr>
|
23
|
-
<% end %>
|
24
|
-
</tbody>
|
25
|
-
</table>
|
26
|
-
</div>
|
27
|
-
<% elsif can? :edit, presenter.id %>
|
28
|
-
<% if child_geo_works_type(presenter) %>
|
29
|
-
<h2><%= child_geo_works_type(presenter) %> Works</h2>
|
30
|
-
<p class="center"><em>This <%= presenter.human_readable_type %> has no <%= child_geo_works_type(presenter).downcase %> works associated with it.</em></p>
|
31
|
-
<% end %>
|
32
|
-
<% end %>
|
@@ -1,168 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"description": "Schema for GeoBlacklight as implemented for Solr 4.10+. See http://journal.code4lib.org/articles/9710 for more details. Note that the Solr schema uses dynamic typing based on the suffix of the field name. For example, _s denotes a string where _sm denotes a multi-valued string (array of strings).",
|
4
|
-
"id": "http://geoblacklight.org/schema",
|
5
|
-
"title": "GeoBlacklight Schema",
|
6
|
-
"required": [
|
7
|
-
"uuid",
|
8
|
-
"dc_identifier_s",
|
9
|
-
"dc_title_s",
|
10
|
-
"dc_description_s",
|
11
|
-
"dc_rights_s",
|
12
|
-
"dct_provenance_s",
|
13
|
-
"georss_box_s",
|
14
|
-
"layer_id_s",
|
15
|
-
"layer_geom_type_s",
|
16
|
-
"layer_modified_dt",
|
17
|
-
"layer_slug_s",
|
18
|
-
"solr_geom",
|
19
|
-
"solr_year_i"
|
20
|
-
],
|
21
|
-
"type": "object",
|
22
|
-
"properties": {
|
23
|
-
"uuid": {
|
24
|
-
"type": "string",
|
25
|
-
"description": "Unique identifier for layer that is globally unique."
|
26
|
-
|
27
|
-
},
|
28
|
-
"dc_identifier_s": {
|
29
|
-
"type": "string",
|
30
|
-
"description": "Unique identifier for layer. May be same as UUID but may be an alternate identifier."
|
31
|
-
},
|
32
|
-
"dc_title_s": {
|
33
|
-
"type": "string",
|
34
|
-
"description": "Title for the layer."
|
35
|
-
|
36
|
-
},
|
37
|
-
"dc_description_s": {
|
38
|
-
"type": "string",
|
39
|
-
"description": "Description for the layer."
|
40
|
-
|
41
|
-
},
|
42
|
-
"dc_rights_s": {
|
43
|
-
"type": "string",
|
44
|
-
"enum": ["Public", "Restricted"],
|
45
|
-
"description": "Access rights for the layer."
|
46
|
-
|
47
|
-
},
|
48
|
-
"dct_provenance_s": {
|
49
|
-
"type": "string",
|
50
|
-
"description": "Institution who holds the layer."
|
51
|
-
|
52
|
-
},
|
53
|
-
"dct_references_s": {
|
54
|
-
"type": "string",
|
55
|
-
"description": "JSON hash for external resources, where each key is a URI for the protocol or format and the value is the URL to the resource."
|
56
|
-
|
57
|
-
},
|
58
|
-
"georss_box_s": {
|
59
|
-
"type": "string",
|
60
|
-
"description": "Bounding box as maximum values for S W N E. Example: 12.6 -119.4 19.9 84.8."
|
61
|
-
|
62
|
-
},
|
63
|
-
"layer_id_s": {
|
64
|
-
"type": "string",
|
65
|
-
"description": "The complete identifier for the layer via WMS/WFS/WCS protocol. Example: druid:vr593vj7147."
|
66
|
-
|
67
|
-
},
|
68
|
-
"layer_geom_type_s": {
|
69
|
-
"type": "string",
|
70
|
-
"enum": ["Point", "Line", "Polygon", "Raster", "Scanned Map", "Mixed"],
|
71
|
-
"description": "Geometry type for layer data, using controlled vocabulary."
|
72
|
-
},
|
73
|
-
"layer_modified_dt": {
|
74
|
-
"type": "string",
|
75
|
-
"format": "date-time",
|
76
|
-
"description": "Last modification date for the metadata record, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ)."
|
77
|
-
},
|
78
|
-
"layer_slug_s": {
|
79
|
-
"type": "string",
|
80
|
-
"description": "Unique identifier visible to the user, used for Permalinks. Example: stanford-vr593vj7147."
|
81
|
-
|
82
|
-
},
|
83
|
-
"solr_geom": {
|
84
|
-
"type": "string",
|
85
|
-
"pattern": "ENVELOPE(.*,.*,.*,.*)",
|
86
|
-
"description": "Derived from georss_polygon_s or georss_box_s. Shape of the layer as a ENVELOPE WKT using W E N S. Example: ENVELOPE(76.76, 84.76, 19.91, 12.62). Note that this field is indexed as a Solr spatial (RPT) field."
|
87
|
-
|
88
|
-
},
|
89
|
-
"solr_year_i": {
|
90
|
-
"type": "integer",
|
91
|
-
"description": "Derived from dct_temporal_sm. Year for which layer is valid and only a single value. Example: 1989. Note that this field is indexed as a Solr numeric field."
|
92
|
-
|
93
|
-
},
|
94
|
-
"dc_creator_sm": {
|
95
|
-
"type": "array",
|
96
|
-
"items": {
|
97
|
-
"type": "string"
|
98
|
-
},
|
99
|
-
"description": "Author(s). Example: George Washington, Thomas Jefferson."
|
100
|
-
|
101
|
-
},
|
102
|
-
"dc_format_s": {
|
103
|
-
"type": "string",
|
104
|
-
"enum": ["Shapefile", "GeoTIFF", "ArcGRID", "GeoJSON", "AAIGrid", "USGSDEM", "JPEG", "TIFF"],
|
105
|
-
"description": "File format for the layer, using a controlled vocabulary."
|
106
|
-
|
107
|
-
},
|
108
|
-
"dc_language_s": {
|
109
|
-
"type": "string",
|
110
|
-
"description": "Language for the layer. Example: English."
|
111
|
-
|
112
|
-
},
|
113
|
-
"dc_publisher_s": {
|
114
|
-
"type": "string",
|
115
|
-
"description": "Publisher. Example: ML InfoMap."
|
116
|
-
|
117
|
-
},
|
118
|
-
"dc_subject_sm": {
|
119
|
-
"type": "array",
|
120
|
-
"items": {
|
121
|
-
"type": "string"
|
122
|
-
},
|
123
|
-
"description": "Subjects, preferrably in a controlled vocabulary. Examples: Census, Human settlements."
|
124
|
-
|
125
|
-
},
|
126
|
-
"dc_type_s": {
|
127
|
-
"type": "string",
|
128
|
-
"enum": ["Dataset", "Image", "PhysicalObject"],
|
129
|
-
"description": "Resource type, using DCMI Type Vocabulary."
|
130
|
-
|
131
|
-
},
|
132
|
-
"dct_spatial_sm": {
|
133
|
-
"type": "array",
|
134
|
-
"items": {
|
135
|
-
"type": "string"
|
136
|
-
},
|
137
|
-
"description": "Spatial coverage and place names, preferrably in a controlled vocabulary. Example: 'Paris, France'."
|
138
|
-
|
139
|
-
},
|
140
|
-
"dct_temporal_sm": {
|
141
|
-
"type": "array",
|
142
|
-
"items": {
|
143
|
-
"type": "string"
|
144
|
-
},
|
145
|
-
"description": "Temporal coverage, typically years or dates. Example: 1989, circa 2010, 2007-2009. Note that this field is not in a specific date format."
|
146
|
-
|
147
|
-
},
|
148
|
-
"dct_issued_dt": {
|
149
|
-
"type": "string",
|
150
|
-
"format": "date-time",
|
151
|
-
"description": "Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ)."
|
152
|
-
|
153
|
-
},
|
154
|
-
"dct_isPartOf_sm": {
|
155
|
-
"type": "array",
|
156
|
-
"items": {
|
157
|
-
"type": "string"
|
158
|
-
},
|
159
|
-
"description": "Holding dataset for the layer, such as the name of a collection. Example: Village Maps of India."
|
160
|
-
|
161
|
-
},
|
162
|
-
"georss_point_s": {
|
163
|
-
"type": "string",
|
164
|
-
"description": "Point representation for layer as y, x - i.e., centroid. Example: 12.6 -119.4."
|
165
|
-
|
166
|
-
}
|
167
|
-
}
|
168
|
-
}
|