geoblacklight 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +17 -48
  3. data/.rubocop.yml +1 -1
  4. data/.rubocop_todo.yml +11 -177
  5. data/app/assets/images/blacklight/arrow-circle-down.svg +1 -2
  6. data/app/assets/images/blacklight/baruch-cuny.svg +1 -4
  7. data/app/assets/images/blacklight/berkeley.svg +1 -4
  8. data/app/assets/images/blacklight/book.svg +1 -4
  9. data/app/assets/images/blacklight/bookmark.svg +1 -4
  10. data/app/assets/images/blacklight/cd-rom.svg +1 -4
  11. data/app/assets/images/blacklight/chicago.svg +1 -4
  12. data/app/assets/images/blacklight/citation.svg +3 -0
  13. data/app/assets/images/blacklight/collection.svg +3 -0
  14. data/app/assets/images/blacklight/columbia.svg +1 -4
  15. data/app/assets/images/blacklight/cornell.svg +1 -4
  16. data/app/assets/images/blacklight/dvd-rom.svg +1 -4
  17. data/app/assets/images/blacklight/email.svg +1 -4
  18. data/app/assets/images/blacklight/esri-globe.svg +1 -4
  19. data/app/assets/images/blacklight/globe.svg +1 -2
  20. data/app/assets/images/blacklight/harvard.svg +1 -4
  21. data/app/assets/images/blacklight/home.svg +1 -2
  22. data/app/assets/images/blacklight/illinois.svg +1 -4
  23. data/app/assets/images/blacklight/image.svg +1 -4
  24. data/app/assets/images/blacklight/indiana.svg +1 -4
  25. data/app/assets/images/blacklight/iowa.svg +1 -4
  26. data/app/assets/images/blacklight/leaf.svg +1 -4
  27. data/app/assets/images/blacklight/lewis-clark.svg +1 -4
  28. data/app/assets/images/blacklight/line.svg +1 -4
  29. data/app/assets/images/blacklight/map-marker.svg +1 -4
  30. data/app/assets/images/blacklight/map.svg +1 -4
  31. data/app/assets/images/blacklight/maryland.svg +1 -4
  32. data/app/assets/images/blacklight/massgis.svg +1 -4
  33. data/app/assets/images/blacklight/metadata.svg +1 -4
  34. data/app/assets/images/blacklight/michigan-state.svg +1 -4
  35. data/app/assets/images/blacklight/michigan.svg +1 -4
  36. data/app/assets/images/blacklight/minnesota.svg +1 -4
  37. data/app/assets/images/blacklight/mit.svg +1 -4
  38. data/app/assets/images/blacklight/mixed.svg +1 -4
  39. data/app/assets/images/blacklight/multilinestring.svg +1 -4
  40. data/app/assets/images/blacklight/multipoint.svg +1 -4
  41. data/app/assets/images/blacklight/multipolygon.svg +1 -4
  42. data/app/assets/images/blacklight/nyu.svg +1 -4
  43. data/app/assets/images/blacklight/ohio-state.svg +1 -4
  44. data/app/assets/images/blacklight/pagelines-brands.svg +1 -4
  45. data/app/assets/images/blacklight/paper-map.svg +1 -4
  46. data/app/assets/images/blacklight/penn-state.svg +1 -4
  47. data/app/assets/images/blacklight/point.svg +1 -4
  48. data/app/assets/images/blacklight/polygon.svg +1 -4
  49. data/app/assets/images/blacklight/polyline.svg +1 -4
  50. data/app/assets/images/blacklight/princeton.svg +1 -4
  51. data/app/assets/images/blacklight/public.svg +1 -4
  52. data/app/assets/images/blacklight/purdue.svg +1 -4
  53. data/app/assets/images/blacklight/raster.svg +1 -4
  54. data/app/assets/images/blacklight/restricted.svg +1 -4
  55. data/app/assets/images/blacklight/sms.svg +1 -4
  56. data/app/assets/images/blacklight/stanford.svg +1 -4
  57. data/app/assets/images/blacklight/table.svg +1 -4
  58. data/app/assets/images/blacklight/tags.svg +1 -2
  59. data/app/assets/images/blacklight/texas.svg +1 -4
  60. data/app/assets/images/blacklight/tufts.svg +1 -4
  61. data/app/assets/images/blacklight/ucla.svg +1 -4
  62. data/app/assets/images/blacklight/uva.svg +1 -4
  63. data/app/assets/images/blacklight/web_services.svg +1 -4
  64. data/app/assets/images/blacklight/wisconsin.svg +1 -4
  65. data/app/assets/javascripts/geoblacklight/modules/geosearch.js +1 -1
  66. data/app/assets/javascripts/geoblacklight/modules/home.js +1 -1
  67. data/app/assets/javascripts/geoblacklight/modules/item.js +20 -1
  68. data/app/assets/stylesheets/geoblacklight/_blacklight_overrides.scss +0 -9
  69. data/app/assets/stylesheets/geoblacklight/modules/item.scss +12 -0
  70. data/app/assets/stylesheets/geoblacklight/modules/results.scss +38 -29
  71. data/app/helpers/geoblacklight_helper.rb +16 -7
  72. data/app/models/concerns/geoblacklight/solr_document.rb +7 -2
  73. data/app/models/concerns/geoblacklight/solr_document/citation.rb +28 -0
  74. data/app/views/catalog/_citation.html.erb +11 -0
  75. data/app/views/catalog/_data_dictionary.html.erb +1 -1
  76. data/app/views/catalog/_document_action.html.erb +1 -1
  77. data/app/views/catalog/_document_split.html.erb +1 -1
  78. data/app/views/catalog/_home_text.html.erb +1 -1
  79. data/app/views/catalog/_index_split_default.html.erb +18 -10
  80. data/app/views/catalog/_show_default_viewer_container.html.erb +1 -1
  81. data/app/views/catalog/_web_services_wfs.html.erb +3 -3
  82. data/app/views/catalog/_web_services_wms.html.erb +3 -3
  83. data/app/views/catalog/metadata.html.erb +3 -1
  84. data/app/views/catalog/web_services.html.erb +9 -7
  85. data/app/views/relation/_ancestors.html.erb +1 -1
  86. data/app/views/relation/_descendants.html.erb +1 -1
  87. data/config/locales/geoblacklight.en.yml +43 -59
  88. data/lib/generators/geoblacklight/templates/catalog_controller.rb +1 -0
  89. data/lib/generators/geoblacklight/templates/geoblacklight.js +0 -1
  90. data/lib/generators/geoblacklight/templates/settings.yml +4 -0
  91. data/lib/geoblacklight/catalog_helper_override.rb +1 -1
  92. data/lib/geoblacklight/relation/ancestors.rb +1 -1
  93. data/lib/geoblacklight/relation/descendants.rb +1 -1
  94. data/lib/geoblacklight/version.rb +1 -1
  95. data/lib/geoblacklight/view_helper_override.rb +1 -1
  96. data/lib/tasks/geoblacklight.rake +1 -1
  97. data/spec/features/relations_spec.rb +2 -1
  98. data/spec/features/split_view.html.erb_spec.rb +1 -1
  99. data/spec/helpers/geoblacklight_helper_spec.rb +13 -0
  100. data/spec/javascripts/geoblacklight_spec.js +0 -4
  101. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +1 -1
  102. data/spec/lib/geoblacklight/relation/descendants_spec.rb +1 -1
  103. data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +13 -0
  104. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +26 -0
  105. data/spec/support/fixtures.rb +7 -0
  106. data/spec/tasks/geoblacklight_spec.rb +18 -0
  107. data/vendor/assets/javascripts/readmore.js +0 -618
  108. data/vendor/assets/javascripts/readmore.min.js +0 -0
  109. data/vendor/assets/stylesheets/leaflet.css +0 -1
  110. metadata +13 -4
  111. data/app/assets/javascripts/geoblacklight/modules/collapse.js +0 -7
  112. data/vendor/assets/javascripts/readmore.js.map +0 -1
@@ -35,7 +35,7 @@
35
35
  History.pushState(null, document.title, this.getSearchUrl());
36
36
  },
37
37
  delay: 800,
38
- staticButton: '<a class="btn btn-primary">Redo search here <span class="glyphicon glyphicon-repeat"></span></a>',
38
+ staticButton: '<a href="#" class="btn btn-primary">Redo search here <span class="glyphicon glyphicon-repeat"></span></a>',
39
39
  dynamicButton: '<label><input type="checkbox" checked> Search when I move the map</label>'
40
40
  },
41
41
 
@@ -10,7 +10,7 @@ Blacklight.onLoad(function() {
10
10
  searcher: function() {
11
11
  window.location.href = this.getSearchUrl();
12
12
  },
13
- staticButton: '<a class="btn btn-primary">Search here</a>'
13
+ staticButton: '<a href="#" class="btn btn-primary">Search here</a>'
14
14
  }));
15
15
  });
16
16
  });
@@ -9,5 +9,24 @@ Blacklight.onLoad(function() {
9
9
  viewer = new window['GeoBlacklight']['Viewer'][viewerName](element);
10
10
  });
11
11
 
12
- new Readmore( '.truncate-abstract', { maxHeight: 60 } );
12
+ $('.truncate-abstract').each(function(i, element) {
13
+ var lines = 12 * parseFloat(getComputedStyle(element).fontSize);
14
+ if (element.getBoundingClientRect().height < lines) return;
15
+ var id = element.id || 'truncate-' + i;
16
+
17
+ element.id = id;
18
+ $(element).addClass('collapse');
19
+
20
+ var control = $('<button class="btn btn-link p-0 border-0" data-toggle="collapse" aria-expanded="false" data-target="#' + id + '" aria-controls="' + id + '">Read more</button>');
21
+
22
+ $(element).on('shown.bs.collapse', function() {
23
+ control.text('Close');
24
+ });
25
+ $(element).on('hidden.bs.collapse', function() {
26
+ control.text('Read more');
27
+ });
28
+
29
+ control.collapse();
30
+ control.insertAfter(element);
31
+ });
13
32
  });
@@ -40,12 +40,3 @@ $logo-image: image_url('blacklight/logo.svg') !default
40
40
  padding-top:0.5rem;
41
41
  }
42
42
  // End - Addresses GBL issue #639
43
-
44
-
45
- // Begin - Addresses GBL issue #766 - removes flex from display
46
- .modal-header {
47
- display: block;
48
- padding: 15px;
49
- border-bottom: 1px solid #e9ecef;
50
- }
51
- // End - Addresses GBL issue #766
@@ -23,4 +23,16 @@
23
23
  .help-text {
24
24
  cursor: pointer;
25
25
  }
26
+
27
+ .truncate-abstract.collapse:not(.show),
28
+ .truncate-abstract.collapsing {
29
+ display: block;
30
+ display: -webkit-box;
31
+ height: auto;
32
+ min-height: #{8 * $line-height-base}rem;
33
+ max-height: #{8 * $line-height-base}rem;
34
+ overflow-y: hidden;
35
+ -webkit-box-orient: vertical;
36
+ -webkit-line-clamp: 8;
37
+ }
26
38
  }
@@ -3,45 +3,54 @@
3
3
  }
4
4
 
5
5
  .more-info-area {
6
- float: left;
7
- order:3;
8
6
  max-height: 100px;
9
7
  overflow:hidden;
10
8
  }
11
9
 
12
- .text-span{
13
- width:80%;
14
- float:left;
15
- }
16
-
17
- .hide-overflow {
18
- white-space: nowrap;
19
- overflow: hidden;
20
- text-overflow: ellipsis;
21
- display:block
22
- }
23
-
24
- .status-icons {
25
- order: 2;
26
- margin-left: 0.5rem;
27
- }
28
-
29
10
  .index_title {
30
- order: 1;
31
- @extend .text-span;
32
- @extend .hide-overflow;
33
11
  @extend h5;
12
+ display: flex;
13
+ justify-content: space-between;
34
14
  font-size:1rem;
35
15
  width:80%;
36
- }
37
16
 
38
- .caret-toggle {
39
- @extend .fa, .fa-caret-right;
40
- cursor: pointer;
41
- width: 10px;
17
+ .title-wrapper {
18
+ @extend .d-flex;
19
+ @extend .justify-content-start;
20
+ flex: 1;
21
+ min-width: 0;
22
+ }
23
+
24
+ .document-counter {
25
+ @extend .pr-1;
26
+ }
27
+
28
+ a {
29
+ white-space: nowrap;
30
+ overflow-x: hidden;
31
+ min-width: 0;
32
+ text-overflow: ellipsis;
33
+ position: relative;
34
+ z-index: 2; // get the link above the toggle
35
+ }
36
+
37
+ .caret-toggle {
38
+ @extend .fa, .fa-caret-right;
39
+ flex-grow: 0;
40
+ width: 10px;
41
+
42
+ &[aria-expanded="true"] {
43
+ @extend .fa, .fa-caret-down;
44
+ }
45
+ }
46
+
47
+ .document-counter {
48
+ flex-grow: 0;
49
+ }
42
50
 
43
- &.open {
44
- @extend .fa, .fa-caret-down;
51
+ .status-icons {
52
+ margin-left: 0.5rem;
53
+ white-space: nowrap;
45
54
  }
46
55
  }
47
56
 
@@ -1,4 +1,6 @@
1
1
  module GeoblacklightHelper
2
+ extend Deprecation
3
+
2
4
  def document_available?
3
5
  @document.public? || (@document.same_institution? && user_signed_in?)
4
6
  end
@@ -84,13 +86,10 @@ module GeoblacklightHelper
84
86
  ##
85
87
  # Returns an SVG icon or empty HTML span element
86
88
  # @return [SVG or HTML tag]
87
- def geoblacklight_icon(name)
89
+ def geoblacklight_icon(name, **args)
88
90
  icon_name = name ? name.to_s.parameterize : 'none'
89
91
  begin
90
- icon = blacklight_icon(icon_name)
91
- # Add icon info to queue after icon instantiated successfully
92
- queue_icon_aria_label(icon_name)
93
- icon
92
+ blacklight_icon(icon_name, **args)
94
93
  rescue Blacklight::Exceptions::IconNotFound
95
94
  tag.span class: 'icon-missing geoblacklight-none'
96
95
  end
@@ -109,18 +108,20 @@ module GeoblacklightHelper
109
108
  @aria_labels ||= Set.new
110
109
  @aria_labels << feature_name
111
110
  end
111
+ deprecation_deprecate :queue_icon_aria_label
112
112
 
113
113
  ##
114
114
  # Render a div of divs describing aria-labelledby values
115
115
  # @return [HTML tag]
116
116
  def render_aria_labels(aria_labels)
117
- return unless aria_labels
117
+ return unless aria_labels.present?
118
118
  content_tag :div, id: 'aria-labels', class: 'sr-only sr-only-focusable' do
119
119
  aria_labels.each do |label|
120
120
  concat(render_aria_label(label))
121
121
  end
122
122
  end
123
123
  end
124
+ deprecation_deprecate :render_aria_labels
124
125
 
125
126
  # Render a div describing a aria-labelledby value
126
127
  # @return [HTML tag]
@@ -129,6 +130,7 @@ module GeoblacklightHelper
129
130
  I18n.t("geoblacklight.aria-labels.#{label}")
130
131
  end
131
132
  end
133
+ deprecation_deprecate :render_aria_label
132
134
 
133
135
  ##
134
136
  # Renders an unique array of search links based off of terms
@@ -283,7 +285,7 @@ module GeoblacklightHelper
283
285
  def render_facet_item_with_icon(field_name, item)
284
286
  doc = Nokogiri::HTML.fragment(render_facet_item(field_name, item))
285
287
  doc.at_css('.facet-label').children.first
286
- .add_previous_sibling(geoblacklight_icon(item.value))
288
+ .add_previous_sibling(geoblacklight_icon(item.value, aria_hidden: true))
287
289
  doc.to_html.html_safe
288
290
  end
289
291
 
@@ -320,4 +322,11 @@ module GeoblacklightHelper
320
322
  args[:document].references.url.endpoint
321
323
  ) if args[:document]&.references&.url
322
324
  end
325
+
326
+ ## Returns the icon used based off a Settings strategy
327
+ def relations_icon(document, icon)
328
+ icon_name = document[Settings.FIELDS.GEOM_TYPE] if Settings.USE_GEOM_FOR_RELATIONS_ICON
329
+ icon_name = icon if icon_name.blank?
330
+ geoblacklight_icon(icon_name)
331
+ end
323
332
  end
@@ -7,6 +7,7 @@ module Geoblacklight
7
7
  include Geoblacklight::SolrDocument::Carto
8
8
  include Geoblacklight::SolrDocument::Inspection
9
9
  include Geoblacklight::SolrDocument::Arcgis
10
+ include Geoblacklight::SolrDocument::Citation
10
11
 
11
12
  delegate :download_types, to: :references
12
13
  delegate :viewer_protocol, to: :item_viewer
@@ -17,11 +18,11 @@ module Geoblacklight
17
18
  end
18
19
 
19
20
  def public?
20
- fetch(Settings.FIELDS.RIGHTS).casecmp('public').zero?
21
+ rights_field_data.present? && rights_field_data.casecmp('public').zero?
21
22
  end
22
23
 
23
24
  def restricted?
24
- fetch(Settings.FIELDS.RIGHTS).casecmp('restricted').zero?
25
+ rights_field_data.blank? || rights_field_data.casecmp('restricted').zero?
25
26
  end
26
27
 
27
28
  def downloadable?
@@ -102,6 +103,10 @@ module Geoblacklight
102
103
 
103
104
  private
104
105
 
106
+ def rights_field_data
107
+ fetch(Settings.FIELDS.RIGHTS, '')
108
+ end
109
+
105
110
  def method_missing(method, *args, &block)
106
111
  if /.*_url$/ =~ method.to_s
107
112
  checked_endpoint(method.to_s.gsub('_url', ''))
@@ -0,0 +1,28 @@
1
+ module Geoblacklight
2
+ module SolrDocument
3
+ module Citation
4
+ include ActionView::Helpers::OutputSafetyHelper
5
+
6
+ def geoblacklight_citation(solr_document_url)
7
+ [
8
+ fetch(Settings.FIELDS.CREATOR, nil),
9
+ ("(#{issued})" if issued),
10
+ fetch(Settings.FIELDS.TITLE, nil),
11
+ ("[#{format}]" if format),
12
+ fetch(Settings.FIELDS.PUBLISHER, nil),
13
+ I18n.t('geoblacklight.citation.retrieved_from', document_url: solr_document_url)
14
+ ].flatten.compact.join('. ')
15
+ end
16
+
17
+ private
18
+
19
+ def issued
20
+ fetch(Settings.FIELDS.ISSUED, nil)
21
+ end
22
+
23
+ def format
24
+ fetch(Settings.FIELDS.FILE_FORMAT, nil)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,11 @@
1
+ <div class="modal-header">
2
+ <h1><%= t('blacklight.tools.citation') %></h1>
3
+ <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ </div>
7
+ <div class="modal-body">
8
+ <% @documents&.each do |document| %>
9
+ <%= document.geoblacklight_citation(solr_document_url(document)) %>
10
+ <% end %>
11
+ </div>
@@ -1,6 +1,6 @@
1
1
  <% if document.data_dictionary_download.present? %>
2
2
  <%= link_to document.data_dictionary_download[:data_dictionary] do %>
3
- <%= geoblacklight_icon('book') %>
3
+ <%= geoblacklight_icon('book', aria_hidden: true) %>
4
4
  <%= t('geoblacklight.references.data_dictionary') %>
5
5
  <% end %>
6
6
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <%= link_to document_action_path(document_action_config, (local_assigns.has_key?(:url_opts) ? url_opts : {}).merge(({id: document} if document) || {})),
2
2
  id: document_action_config.fetch(:id, "#{document_action_config.key}Link"),
3
3
  data: {}.merge(({blacklight_modal: "trigger"} if document_action_config.modal != false) || {}) do %>
4
- <%= geoblacklight_icon(document_action_config.key) %>
4
+ <%= geoblacklight_icon(document_action_config.key, aria_hidden: true) %>
5
5
  <%= document_action_label(document_action_config.key, document_action_config) %>
6
6
  <% end %>
@@ -2,5 +2,5 @@
2
2
  <div id="documents" class="documents-list col-md-6">
3
3
  <%= render documents, :as => :document %>
4
4
  </div>
5
- <%= content_tag :div, '', id: 'map', class: 'col-md-6', data: { map: 'index', 'catalog-path'=> search_catalog_path , 'map-bbox' => params[:bbox], basemap: geoblacklight_basemap, leaflet_options: leaflet_options } %>
5
+ <%= content_tag :div, '', id: 'map', class: 'col-md-6', aria: { label: t('geoblacklight.map.label') }, data: { map: 'index', 'catalog-path'=> search_catalog_path , 'map-bbox' => params[:bbox], basemap: geoblacklight_basemap, leaflet_options: leaflet_options } %>
6
6
  </div>
@@ -37,7 +37,7 @@
37
37
  </div>
38
38
  <div class='col-sm'>
39
39
  <%= content_tag :h3, t('geoblacklight.home.map_heading') %>
40
- <%= content_tag :div, '', id: 'map', data: { map: 'home', 'catalog-path'=> search_catalog_path , 'map-bbox' => params[:bbox], basemap: geoblacklight_basemap, leaflet_options: leaflet_options } %>
40
+ <%= content_tag :div, '', id: 'map', aria: { label: t('geoblacklight.map.label') }, data: { map: 'home', 'catalog-path'=> search_catalog_path , 'map-bbox' => params[:bbox], basemap: geoblacklight_basemap, leaflet_options: leaflet_options } %>
41
41
  </div>
42
42
  </div>
43
43
  </div>
@@ -1,19 +1,27 @@
1
1
  <% # header bar for doc items in index view -%>
2
2
  <%= content_tag :div, class: 'documentHeader row', data: { layer_id: document.id, bbox: document.bounding_box_as_wsen } do %>
3
- <div class='status-icons'>
4
- <%= render partial: 'header_icons', locals: { document: document } %>
5
- </div>
6
- <h3 class="index_title col-sm-9s cosl-lg-10 text-span">
7
- <span class='caret-toggle'></span>
8
- <% counter = document_counter_with_offset(document_counter) %>
9
- <span class="document-counter">
10
- <%= t('blacklight.search.documents.counter', :counter => counter) if counter %>
3
+ <h3 class="index_title col pl-2">
4
+ <button
5
+ class="caret-toggle btn pl-0 py-0 stretched-link"
6
+ data-toggle="collapse"
7
+ data-target="#doc-<%= document.id %>-fields-collapse"
8
+ aria-expanded="false"
9
+ aria-controls="doc-<%= document.id %>-fields-collapse">
10
+ </button>
11
+ <span class="title-wrapper">
12
+ <% counter = document_counter_with_offset(document_counter) %>
13
+ <span class="document-counter">
14
+ <%= t('blacklight.search.documents.counter', :counter => counter) if counter %>
15
+ </span>
16
+ <%= link_to_document document, counter: counter, title: document[blacklight_config.index.title_field] %>
17
+ </span>
18
+ <span class='status-icons'>
19
+ <%= render partial: 'header_icons', locals: { document: document } %>
11
20
  </span>
12
- <%= link_to_document document, counter: counter, title: document[blacklight_config.index.title_field] %>
13
21
  </h3>
14
22
 
15
23
  <div class='col-md-12 more-info-area'>
16
- <div class='collapse' data-collapse-target="<%= document.id %>">
24
+ <div id="doc-<%= document.id %>-fields-collapse" class='collapse'>
17
25
  <small>
18
26
  <%= geoblacklight_present(:index_fields_display, document) %>
19
27
  </small>
@@ -6,7 +6,7 @@
6
6
  <%= render_help_text_entry('viewer_protocol', document.viewer_protocol) %>
7
7
  <% end %>
8
8
 
9
- <%= content_tag :div, id: 'map', data: { map: 'item', protocol: document.viewer_protocol.camelize, url: document.viewer_endpoint, 'layer-id' => document.wxs_identifier, 'map-bbox' => document.bounding_box_as_wsen, 'catalog-path'=> search_catalog_path, available: document_available?, inspect: show_attribute_table?, basemap: geoblacklight_basemap, leaflet_options: leaflet_options } do %>
9
+ <%= content_tag :div, id: 'map', aria: { label: t('geoblacklight.map.label') }, data: { map: 'item', protocol: document.viewer_protocol.camelize, url: document.viewer_endpoint, 'layer-id' => document.wxs_identifier, 'map-bbox' => document.bounding_box_as_wsen, 'catalog-path'=> search_catalog_path, available: document_available?, inspect: show_attribute_table?, basemap: geoblacklight_basemap, leaflet_options: leaflet_options } do %>
10
10
  <% end %>
11
11
  </div>
12
12
  </div>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <%= render partial: 'web_services_default', locals: { reference: reference } %>
4
4
 
5
- <div class='form-group form-inline'>
6
- <label class='control-label'><%= t('geoblacklight.references.wfs_abv')%> <code><%= t('geoblacklight.references.wfs_label')%></code></label>
7
- <input type='text' value='<%= document.wxs_identifier %>' readonly='readonly' class='form-control'>
5
+ <div class="form-group form-inline">
6
+ <label for="wfs_abv_webservice" class="mr-2"><%= t('geoblacklight.references.wfs_abv')%> <code><%= t('geoblacklight.references.wfs_label')%></code></label>
7
+ <input id="wfs_abv_webservice" type='text' value='<%= document.wxs_identifier %>' readonly='readonly' class="form-control">
8
8
  </div>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <%= render partial: 'web_services_default', locals: { reference: reference } %>
4
4
 
5
- <div class='form-group form-inline'>
6
- <label class='control-label'><%= t('geoblacklight.references.wms_abv')%> <code><%= t('geoblacklight.references.wms_label')%></code></label>
7
- <input type='text' value='<%= document.wxs_identifier %>' readonly='readonly' class='form-control'>
5
+ <div class="form-group form-inline">
6
+ <label for="wms_abv_webservice" class="mr-2"><%= t('geoblacklight.references.wms_abv')%> <code><%= t('geoblacklight.references.wms_label')%></code></label>
7
+ <input id="wms_abv_webservice" type='text' value='<%= document.wxs_identifier %>' readonly='readonly' class="form-control">
8
8
  </div>
@@ -1,6 +1,8 @@
1
1
  <div class="modal-header">
2
- <button type="button" class="ajax-modal-close close" data-dismiss="modal" aria-hidden="true">×</button>
3
2
  <h3 class="modal-title"><%= t('geoblacklight.metadata.view_metadata')%></h3>
3
+ <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
4
6
  </div>
5
7
  <div class="modal-body metadata-body">
6
8
  <%= render partial: 'metadata' %>
@@ -1,10 +1,12 @@
1
1
  <div class="modal-header">
2
- <button type="button" class="ajax-modal-close close" data-dismiss="modal" aria-hidden="true">×</button>
3
2
  <h1 class="modal-title"><%= t('geoblacklight.references.services')%></h1>
4
- <div class="modal-body">
5
- <%= render partial: 'web_services' %>
6
- </div>
7
- <div class="modal-footer">
8
- <button type="button" class="btn btn-default hide-without-js" data-dismiss="modal"><%= t('geoblacklight.references.services_close')%></button>
9
- </div>
3
+ <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ </div>
7
+ <div class="modal-body">
8
+ <%= render partial: 'web_services' %>
9
+ </div>
10
+ <div class="modal-footer">
11
+ <button type="button" class="btn btn-default hide-without-js" data-dismiss="modal"><%= t('geoblacklight.references.services_close')%></button>
10
12
  </div>