geoblacklight 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -3
  3. data/app/assets/javascripts/geoblacklight/geoblacklight.js +1 -1
  4. data/app/assets/javascripts/geoblacklight/modules/metadata.js +7 -0
  5. data/app/assets/javascripts/geoblacklight/modules/metadata_download_button.js +58 -0
  6. data/app/assets/javascripts/geoblacklight/modules/results.js +10 -15
  7. data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +3 -2
  8. data/app/assets/stylesheets/geoblacklight/modules/metadata.scss +27 -3
  9. data/app/assets/stylesheets/geoblacklight/modules/metadata_content.scss +38 -0
  10. data/app/assets/stylesheets/geoblacklight/modules/metadata_markup.scss +9 -0
  11. data/app/assets/stylesheets/geoblacklight/modules/metadata_missing.scss +7 -0
  12. data/app/helpers/geoblacklight_helper.rb +24 -0
  13. data/app/presenters/geoblacklight/document_presenter.rb +2 -1
  14. data/app/views/catalog/_metadata.html.erb +21 -6
  15. data/app/views/catalog/metadata/_content.html.erb +3 -0
  16. data/app/views/catalog/metadata/_markup.html.erb +8 -0
  17. data/app/views/catalog/metadata/_missing.html.erb +6 -0
  18. data/app/views/catalog/metadata.js.erb +8 -4
  19. data/config/locales/geoblacklight.en.yml +1 -0
  20. data/geoblacklight.gemspec +4 -1
  21. data/lib/generators/geoblacklight/templates/settings.yml +2 -2
  22. data/lib/geoblacklight/engine.rb +2 -1
  23. data/lib/geoblacklight/metadata/base.rb +88 -0
  24. data/lib/geoblacklight/metadata/fgdc.rb +14 -0
  25. data/lib/geoblacklight/metadata/iso19139.rb +14 -0
  26. data/lib/geoblacklight/metadata.rb +12 -31
  27. data/lib/geoblacklight/metadata_transformer/base.rb +49 -0
  28. data/lib/geoblacklight/metadata_transformer/fgdc.rb +16 -0
  29. data/lib/geoblacklight/metadata_transformer/iso19139.rb +16 -0
  30. data/lib/geoblacklight/metadata_transformer.rb +33 -0
  31. data/lib/geoblacklight/references.rb +14 -0
  32. data/lib/geoblacklight/version.rb +1 -1
  33. data/lib/geoblacklight/view_helper_override.rb +3 -2
  34. data/lib/geoblacklight.rb +7 -0
  35. data/spec/features/download_layer_spec.rb +5 -2
  36. data/spec/features/layer_inspection_spec.rb +1 -1
  37. data/spec/features/metadata_panel_spec.rb +15 -4
  38. data/spec/features/saved_searches_spec.rb +1 -1
  39. data/spec/features/split_view.html.erb_spec.rb +2 -2
  40. data/spec/fixtures/solr_documents/harvard_raster.json +2 -2
  41. data/spec/fixtures/solr_documents/public_iiif_princeton.json +1 -1
  42. data/spec/helpers/{geoblacklight_helpers_spec.rb → geoblacklight_helper_spec.rb} +54 -0
  43. data/spec/javascripts/geoblacklight_spec.js +4 -0
  44. data/spec/javascripts/metadata_download_button_spec.js +14 -0
  45. data/spec/lib/geoblacklight/metadata/base_spec.rb +85 -0
  46. data/spec/lib/geoblacklight/metadata_spec.rb +26 -18
  47. data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +35 -0
  48. data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +23 -0
  49. data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +23 -0
  50. data/spec/lib/geoblacklight/metadata_transformer_spec.rb +69 -0
  51. data/spec/lib/geoblacklight/references_spec.rb +12 -1
  52. data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -0
  53. data/spec/spec_helper.rb +11 -8
  54. data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -0
  55. data/spec/test_app_templates/metadata/fgdc.html +129 -0
  56. data/spec/test_app_templates/metadata/fgdc.xml +145 -0
  57. data/spec/test_app_templates/metadata/iso.html +275 -0
  58. data/spec/test_app_templates/metadata/iso.xml +511 -0
  59. data/spec/test_app_templates/solr_documents +1 -1
  60. metadata +83 -7
  61. data/app/assets/stylesheets/geoblacklight/modules/coderay.scss +0 -147
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-07-06 00:00:00.000000000 Z
14
+ date: 2017-08-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -97,6 +97,20 @@ dependencies:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: faraday_middleware
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ type: :runtime
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
100
114
  - !ruby/object:Gem::Dependency
101
115
  name: coderay
102
116
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +153,20 @@ dependencies:
139
153
  - - ">="
140
154
  - !ruby/object:Gem::Version
141
155
  version: '0'
156
+ - !ruby/object:Gem::Dependency
157
+ name: geo_combine
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0.3'
163
+ type: :runtime
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0.3'
142
170
  - !ruby/object:Gem::Dependency
143
171
  name: solr_wrapper
144
172
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +238,21 @@ dependencies:
210
238
  - !ruby/object:Gem::Version
211
239
  version: 2.5.0
212
240
  - !ruby/object:Gem::Dependency
213
- name: poltergeist
241
+ name: selenium-webdriver
242
+ requirement: !ruby/object:Gem::Requirement
243
+ requirements:
244
+ - - ">="
245
+ - !ruby/object:Gem::Version
246
+ version: '0'
247
+ type: :development
248
+ prerelease: false
249
+ version_requirements: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ - !ruby/object:Gem::Dependency
255
+ name: chromedriver-helper
214
256
  requirement: !ruby/object:Gem::Requirement
215
257
  requirements:
216
258
  - - ">="
@@ -294,6 +336,8 @@ files:
294
336
  - app/assets/javascripts/geoblacklight/modules/home.js
295
337
  - app/assets/javascripts/geoblacklight/modules/item.js
296
338
  - app/assets/javascripts/geoblacklight/modules/layer_opacity.js
339
+ - app/assets/javascripts/geoblacklight/modules/metadata.js
340
+ - app/assets/javascripts/geoblacklight/modules/metadata_download_button.js
297
341
  - app/assets/javascripts/geoblacklight/modules/relations.js
298
342
  - app/assets/javascripts/geoblacklight/modules/results.js
299
343
  - app/assets/javascripts/geoblacklight/modules/util.js
@@ -310,7 +354,6 @@ files:
310
354
  - app/assets/stylesheets/geoblacklight/_geoblacklight.scss
311
355
  - app/assets/stylesheets/geoblacklight/_styles.scss
312
356
  - app/assets/stylesheets/geoblacklight/application.scss
313
- - app/assets/stylesheets/geoblacklight/modules/coderay.scss
314
357
  - app/assets/stylesheets/geoblacklight/modules/facets.scss
315
358
  - app/assets/stylesheets/geoblacklight/modules/geosearch.scss
316
359
  - app/assets/stylesheets/geoblacklight/modules/home.scss
@@ -318,6 +361,9 @@ files:
318
361
  - app/assets/stylesheets/geoblacklight/modules/item.scss
319
362
  - app/assets/stylesheets/geoblacklight/modules/layer_opacity.scss
320
363
  - app/assets/stylesheets/geoblacklight/modules/metadata.scss
364
+ - app/assets/stylesheets/geoblacklight/modules/metadata_content.scss
365
+ - app/assets/stylesheets/geoblacklight/modules/metadata_markup.scss
366
+ - app/assets/stylesheets/geoblacklight/modules/metadata_missing.scss
321
367
  - app/assets/stylesheets/geoblacklight/modules/mixins.scss
322
368
  - app/assets/stylesheets/geoblacklight/modules/results.scss
323
369
  - app/assets/stylesheets/geoblacklight/modules/search_widgets.scss
@@ -364,6 +410,9 @@ files:
364
410
  - app/views/catalog/index.html.erb
365
411
  - app/views/catalog/metadata.html.erb
366
412
  - app/views/catalog/metadata.js.erb
413
+ - app/views/catalog/metadata/_content.html.erb
414
+ - app/views/catalog/metadata/_markup.html.erb
415
+ - app/views/catalog/metadata/_missing.html.erb
367
416
  - app/views/catalog/web_services.html.erb
368
417
  - app/views/catalog/web_services.js.erb
369
418
  - app/views/download/hgl.html.erb
@@ -396,6 +445,13 @@ files:
396
445
  - lib/geoblacklight/geoblacklight_helper_behavior.rb
397
446
  - lib/geoblacklight/item_viewer.rb
398
447
  - lib/geoblacklight/metadata.rb
448
+ - lib/geoblacklight/metadata/base.rb
449
+ - lib/geoblacklight/metadata/fgdc.rb
450
+ - lib/geoblacklight/metadata/iso19139.rb
451
+ - lib/geoblacklight/metadata_transformer.rb
452
+ - lib/geoblacklight/metadata_transformer/base.rb
453
+ - lib/geoblacklight/metadata_transformer/fgdc.rb
454
+ - lib/geoblacklight/metadata_transformer/iso19139.rb
399
455
  - lib/geoblacklight/reference.rb
400
456
  - lib/geoblacklight/references.rb
401
457
  - lib/geoblacklight/relation/ancestors.rb
@@ -480,8 +536,9 @@ files:
480
536
  - spec/fixtures/solr_documents/umn_state_result1.json
481
537
  - spec/fixtures/solr_documents/umn_state_result2.json
482
538
  - spec/helpers/carto_helper_spec.rb
483
- - spec/helpers/geoblacklight_helpers_spec.rb
539
+ - spec/helpers/geoblacklight_helper_spec.rb
484
540
  - spec/javascripts/geoblacklight_spec.js
541
+ - spec/javascripts/metadata_download_button_spec.js
485
542
  - spec/javascripts/spec_helper.js
486
543
  - spec/javascripts/util_spec.js
487
544
  - spec/lib/geoblacklight/bounding_box_spec.rb
@@ -495,7 +552,12 @@ files:
495
552
  - spec/lib/geoblacklight/download_spec.rb
496
553
  - spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb
497
554
  - spec/lib/geoblacklight/item_viewer_spec.rb
555
+ - spec/lib/geoblacklight/metadata/base_spec.rb
498
556
  - spec/lib/geoblacklight/metadata_spec.rb
557
+ - spec/lib/geoblacklight/metadata_transformer/base_spec.rb
558
+ - spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb
559
+ - spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb
560
+ - spec/lib/geoblacklight/metadata_transformer_spec.rb
499
561
  - spec/lib/geoblacklight/reference_spec.rb
500
562
  - spec/lib/geoblacklight/references_spec.rb
501
563
  - spec/lib/geoblacklight/relation/ancestors_spec.rb
@@ -515,6 +577,10 @@ files:
515
577
  - spec/support/features/session_helpers.rb
516
578
  - spec/teaspoon_env.rb
517
579
  - spec/test_app_templates/lib/generators/test_app_generator.rb
580
+ - spec/test_app_templates/metadata/fgdc.html
581
+ - spec/test_app_templates/metadata/fgdc.xml
582
+ - spec/test_app_templates/metadata/iso.html
583
+ - spec/test_app_templates/metadata/iso.xml
518
584
  - spec/test_app_templates/solr_documents
519
585
  - spec/views/catalog/_document_split.html.erb_spec.rb
520
586
  - spec/views/catalog/_downloads.html.erb_spec.rb
@@ -544,7 +610,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
544
610
  version: 2.5.2
545
611
  requirements: []
546
612
  rubyforge_project:
547
- rubygems_version: 2.5.2
613
+ rubygems_version: 2.6.10
548
614
  signing_key:
549
615
  specification_version: 4
550
616
  summary: A discovery platform for geospatial holdings
@@ -601,8 +667,9 @@ test_files:
601
667
  - spec/fixtures/solr_documents/umn_state_result1.json
602
668
  - spec/fixtures/solr_documents/umn_state_result2.json
603
669
  - spec/helpers/carto_helper_spec.rb
604
- - spec/helpers/geoblacklight_helpers_spec.rb
670
+ - spec/helpers/geoblacklight_helper_spec.rb
605
671
  - spec/javascripts/geoblacklight_spec.js
672
+ - spec/javascripts/metadata_download_button_spec.js
606
673
  - spec/javascripts/spec_helper.js
607
674
  - spec/javascripts/util_spec.js
608
675
  - spec/lib/geoblacklight/bounding_box_spec.rb
@@ -616,7 +683,12 @@ test_files:
616
683
  - spec/lib/geoblacklight/download_spec.rb
617
684
  - spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb
618
685
  - spec/lib/geoblacklight/item_viewer_spec.rb
686
+ - spec/lib/geoblacklight/metadata/base_spec.rb
619
687
  - spec/lib/geoblacklight/metadata_spec.rb
688
+ - spec/lib/geoblacklight/metadata_transformer/base_spec.rb
689
+ - spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb
690
+ - spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb
691
+ - spec/lib/geoblacklight/metadata_transformer_spec.rb
620
692
  - spec/lib/geoblacklight/reference_spec.rb
621
693
  - spec/lib/geoblacklight/references_spec.rb
622
694
  - spec/lib/geoblacklight/relation/ancestors_spec.rb
@@ -636,6 +708,10 @@ test_files:
636
708
  - spec/support/features/session_helpers.rb
637
709
  - spec/teaspoon_env.rb
638
710
  - spec/test_app_templates/lib/generators/test_app_generator.rb
711
+ - spec/test_app_templates/metadata/fgdc.html
712
+ - spec/test_app_templates/metadata/fgdc.xml
713
+ - spec/test_app_templates/metadata/iso.html
714
+ - spec/test_app_templates/metadata/iso.xml
639
715
  - spec/test_app_templates/solr_documents
640
716
  - spec/views/catalog/_document_split.html.erb_spec.rb
641
717
  - spec/views/catalog/_downloads.html.erb_spec.rb
@@ -1,147 +0,0 @@
1
- /*
2
- * Based on: https://github.com/pie4dan/CodeRay-GitHub-Theme/blob/master/coderay.css
3
- * From: https://github.com/h3rald/glyph/blob/master/styles/coderay.scss
4
- */
5
- .CodeRay {
6
- background-color: #FFF;
7
- border: 1px solid #ECECEC;
8
- line-height: 1.3em;
9
- font-size: 12px;
10
- font-family: 'Inconsolata', Monospace;
11
- color: #000;
12
- padding: 10px;
13
- margin: 1em 0;
14
- }
15
- .CodeRay pre, .CodeRay code {
16
- padding: 0;
17
- margin: 0;
18
- }
19
-
20
- div.CodeRay {
21
- padding: 0;
22
- }
23
-
24
- span.CodeRay { white-space: pre; border: 0px; padding: 2px }
25
-
26
- table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
27
- table.CodeRay td {
28
- padding: 1em 0.5em;
29
- vertical-align: top;
30
- }
31
-
32
- .CodeRay .line-numbers, .CodeRay .no {
33
- margin: 0 2px 0 0;
34
- background-color: #ECECEC;
35
- color: #AAA;
36
- width: 20px;
37
- text-align: right;
38
- }
39
- .CodeRay .line-numbers tt { font-weight: bold }
40
- .CodeRay .line-numbers .highlighted { color: red }
41
- .CodeRay .line { display: block; float: left; width: 100%; }
42
- .CodeRay .no { padding: 0px 4px }
43
- .CodeRay .code { width: 100% }
44
-
45
- ol.CodeRay { font-size: 10pt }
46
- ol.CodeRay li { white-space: pre }
47
-
48
- .CodeRay .code pre { overflow: auto }
49
-
50
- .CodeRay .debug { color:white ! important; background:blue ! important; }
51
-
52
- .CodeRay .attribute-name-fat { color:#00C }
53
- .CodeRay .attribute-name { color:#007 }
54
- .CodeRay .annotation { color:#f08 }
55
- .CodeRay .attribute-value { color:#700 }
56
- .CodeRay .attribute-value-fat { color:#C00 }
57
- .CodeRay .binary { color:#509; font-weight:bold }
58
- .CodeRay .comment { color:#998; font-style: italic; border: 0; background: transparent;}
59
-
60
- .CodeRay .char { color:#04D }
61
- .CodeRay .ch .content { color:#04D }
62
- .CodeRay .ch .delimiter { color:#039 }
63
-
64
- .CodeRay .class { color:#458; font-weight:bold }
65
- .CodeRay .complex { color:#A08; font-weight:bold }
66
- .CodeRay .constant { color:teal; }
67
- .CodeRay .color { color:#0A0 }
68
- .CodeRay .class-variable { color:#369 }
69
- .CodeRay .decorator { color:#B0B; }
70
- .CodeRay .definition { color:#099; font-weight:bold }
71
- .CodeRay .directive { color:#088; font-weight:bold }
72
- .CodeRay .delimiter { color:black }
73
- .CodeRay .doc { color:#970 }
74
- .CodeRay .doc-type { color:#34b }
75
- .CodeRay .doc-string { color:#D42; font-weight:bold }
76
- .CodeRay .escape { color:#666; font-weight:bold }
77
- .CodeRay .entity { color:#800; font-weight:bold }
78
- .CodeRay .error { color:#F00; background-color:#FAA }
79
- .CodeRay .exception { color:#C00; font-weight:bold }
80
- .CodeRay .float { color:#099; }
81
- .CodeRay .function { color:#900; font-weight:bold }
82
- .CodeRay .global-variable { color:teal; font-weight:bold }
83
- .CodeRay .hex { color:#058; font-weight:bold }
84
- .CodeRay .imaginary { color:#099; }
85
- .CodeRay .include { color:#B44; font-weight:bold }
86
-
87
- .CodeRay .inline { color: black }
88
- .CodeRay .inline .inline { background: #ccc }
89
- .CodeRay .inline .inline .inline { background: #bbb }
90
- .CodeRay .inline .inline-delimiter { color: #D14; }
91
- .CodeRay .inline-delimiter { color: #D14; }
92
-
93
- .CodeRay .imaginary { color:#f00; }
94
- .CodeRay .include { color:#B2B; font-weight:bold }
95
- .CodeRay .instance-variable { color:teal }
96
- .CodeRay .label { color:#970; font-weight:bold }
97
- .CodeRay .local-variable { color:#963 }
98
- .CodeRay .octal { color:#40E; font-weight:bold }
99
- .CodeRay .operator-fat { color:#000; font-weight:bold }
100
- .CodeRay .operator { }
101
- .CodeRay .predefined-constant { font-weight:bold }
102
- .CodeRay .predefined { color:#369; font-weight:bold }
103
- .CodeRay .preprocessor { color:#579; }
104
- .CodeRay .pseudo-class { color:#00C; font-weight:bold }
105
- .CodeRay .predefined-type { color:#074; font-weight:bold }
106
- .CodeRay .reserved, .keyword { color:#000; font-weight:bold }
107
-
108
- .CodeRay .key { color: #808; }
109
- .CodeRay .key .delimiter { color: #606; }
110
- .CodeRay .key .char { color: #80f; }
111
- .CodeRay .value { color: #088; }
112
-
113
- .CodeRay .regexp { background-color:#fff0ff }
114
- .CodeRay .regexp .content { color:#808 }
115
- .CodeRay .regexp .delimiter { color:#404 }
116
- .CodeRay .regexp .modifier { color:#C2C }
117
- .CodeRay .regexp .function { color:#404; font-weight: bold }
118
-
119
- .CodeRay .string { color: #D20; }
120
- .CodeRay .string .content { color: #D14; }
121
- .CodeRay .string .char { color: #D14; }
122
- .CodeRay .string .delimiter { color: #D14; }
123
-
124
- .CodeRay .shell { color:#D14 }
125
- .CodeRay .shell .content { }
126
- .CodeRay .shell .delimiter { color:#D14 }
127
-
128
- .CodeRay .symbol { color:#990073 }
129
- .CodeRay .symbol .content { color:#A60 }
130
- .CodeRay .symbol .delimiter { color:#630 }
131
-
132
- .CodeRay .tag { color:#070 }
133
- .CodeRay .tag-fat { color:#070; font-weight:bold }
134
- .CodeRay .tag-special { color:#D70; font-weight:bold }
135
- .CodeRay .type { color:#339; font-weight:bold }
136
- .CodeRay .variable { color:#036 }
137
- .CodeRay .xml-text { color:#444 }
138
-
139
- .CodeRay .insert { background: #afa; }
140
- .CodeRay .delete { background: #faa; }
141
- .CodeRay .change { color: #aaf; background: #007; }
142
- .CodeRay .head { color: #f8f; background: #505 }
143
-
144
- .CodeRay .insert .insert { color: #080; font-weight:bold }
145
- .CodeRay .delete .delete { color: #800; font-weight:bold }
146
- .CodeRay .change .change { color: #66f; }
147
- .CodeRay .head .head { color: #f4f; }