geoblacklight 2.1.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +214 -108
- data/.gitignore +3 -1
- data/.rubocop.yml +19 -15
- data/.rubocop_todo.yml +28 -159
- data/Gemfile +3 -8
- data/README.md +6 -7
- data/Rakefile +1 -0
- data/app/assets/images/blacklight/arrow-circle-down.svg +3 -0
- data/app/assets/images/blacklight/baruch-cuny.svg +3 -0
- data/app/assets/images/blacklight/berkeley.svg +4 -0
- data/app/assets/images/blacklight/book.svg +3 -0
- data/app/assets/images/blacklight/bookmark.svg +3 -0
- data/app/assets/images/blacklight/cd-rom.svg +3 -0
- data/app/assets/images/blacklight/chicago.svg +4 -0
- data/app/assets/images/blacklight/citation.svg +3 -0
- data/app/assets/images/blacklight/collection.svg +3 -0
- data/app/assets/images/blacklight/columbia.svg +3 -0
- data/app/assets/images/blacklight/cornell.svg +5 -0
- data/app/assets/images/blacklight/dvd-rom.svg +3 -0
- data/app/assets/images/blacklight/email.svg +3 -0
- data/app/assets/images/blacklight/esri-globe.svg +31 -37
- data/app/assets/images/blacklight/geoblacklight-icons.json +2079 -0
- data/app/assets/images/blacklight/globe.svg +3 -0
- data/app/assets/images/blacklight/harvard.svg +3 -0
- data/app/assets/images/blacklight/home.svg +3 -0
- data/app/assets/images/blacklight/illinois.svg +4 -0
- data/app/assets/images/blacklight/image.svg +3 -0
- data/app/assets/images/blacklight/indiana.svg +3 -0
- data/app/assets/images/blacklight/iowa.svg +3 -0
- data/app/assets/images/blacklight/leaf.svg +3 -0
- data/app/assets/images/blacklight/lewis-clark.svg +5 -0
- data/app/assets/images/blacklight/line.svg +4 -0
- data/app/assets/images/blacklight/logo.svg +1 -0
- data/app/assets/images/blacklight/map-marker.svg +3 -0
- data/app/assets/images/blacklight/map.svg +3 -0
- data/app/assets/images/blacklight/maryland.svg +3 -0
- data/app/assets/images/blacklight/massgis.svg +3 -0
- data/app/assets/images/blacklight/metadata.svg +3 -0
- data/app/assets/images/blacklight/michigan-state.svg +4 -0
- data/app/assets/images/blacklight/michigan.svg +3 -0
- data/app/assets/images/blacklight/minnesota.svg +3 -0
- data/app/assets/images/blacklight/mit.svg +3 -0
- data/app/assets/images/blacklight/mixed.svg +5 -0
- data/app/assets/images/blacklight/multilinestring.svg +6 -0
- data/app/assets/images/blacklight/multipoint.svg +3 -0
- data/app/assets/images/blacklight/multipolygon.svg +6 -0
- data/app/assets/images/blacklight/nyu.svg +6 -0
- data/app/assets/images/blacklight/ohio-state.svg +5 -0
- data/app/assets/images/blacklight/pagelines-brands.svg +3 -0
- data/app/assets/images/blacklight/paper-map.svg +3 -0
- data/app/assets/images/blacklight/penn-state.svg +4 -0
- data/app/assets/images/blacklight/point.svg +3 -0
- data/app/assets/images/blacklight/polygon.svg +4 -0
- data/app/assets/images/blacklight/polyline.svg +6 -0
- data/app/assets/images/blacklight/princeton.svg +3 -0
- data/app/assets/images/blacklight/public.svg +3 -0
- data/app/assets/images/blacklight/purdue.svg +4 -0
- data/app/assets/images/blacklight/raster.svg +3 -0
- data/app/assets/images/blacklight/restricted.svg +3 -0
- data/app/assets/images/blacklight/sms.svg +3 -0
- data/app/assets/images/blacklight/stanford.svg +3 -0
- data/app/assets/images/blacklight/table.svg +3 -0
- data/app/assets/images/blacklight/tags.svg +3 -0
- data/app/assets/images/blacklight/texas.svg +3 -0
- data/app/assets/images/blacklight/tufts.svg +3 -0
- data/app/assets/images/blacklight/ucla.svg +3 -0
- data/app/assets/images/blacklight/uva.svg +3 -0
- data/app/assets/images/blacklight/web_services.svg +3 -0
- data/app/assets/images/blacklight/wisconsin.svg +3 -0
- data/app/assets/javascripts/geoblacklight/basemaps.js +18 -0
- data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/geosearch.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/help_text.js +7 -0
- data/app/assets/javascripts/geoblacklight/modules/home.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/item.js +19 -2
- data/app/assets/javascripts/geoblacklight/modules/results.js +4 -2
- data/app/assets/javascripts/geoblacklight/modules/svg_tooltips.js +31 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri.js +2 -2
- data/app/assets/javascripts/geoblacklight/viewers/esri/tiled_map_layer.js +1 -1
- data/app/assets/javascripts/geoblacklight/viewers/oembed.js +13 -0
- data/app/assets/javascripts/geoblacklight/viewers/wms.js +2 -2
- data/app/assets/stylesheets/geoblacklight/geoblacklight.scss +2 -0
- data/app/assets/stylesheets/geoblacklight/modules/_base.scss +33 -0
- data/app/assets/stylesheets/geoblacklight/{_blacklight_overrides.scss → modules/_blacklight_overrides.scss} +8 -9
- data/app/assets/stylesheets/geoblacklight/{_styles.scss → modules/_styles.scss} +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +37 -54
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +49 -59
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +17 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +47 -28
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +12 -42
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +17 -55
- data/app/controllers/download_controller.rb +12 -12
- data/app/controllers/relation_controller.rb +1 -0
- data/app/controllers/wms_controller.rb +1 -0
- data/app/helpers/arcgis_helper.rb +1 -0
- data/app/helpers/blacklight_helper.rb +1 -0
- data/app/helpers/carto_helper.rb +1 -0
- data/app/helpers/geoblacklight_helper.rb +62 -19
- data/app/models/concerns/geoblacklight/solr_document.rb +18 -8
- data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +2 -1
- data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -13
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +29 -0
- data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document/inspection.rb +2 -1
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +8 -1
- data/app/presenters/geoblacklight/document_presenter.rb +2 -1
- data/app/views/catalog/_arcgis.html.erb +4 -0
- data/app/views/catalog/_carto.html.erb +4 -0
- data/app/views/catalog/_citation.html.erb +11 -0
- data/app/views/catalog/_data_dictionary.html.erb +3 -2
- data/app/views/catalog/_document_action.html.erb +1 -1
- data/app/views/catalog/_document_split.html.erb +1 -1
- data/app/views/catalog/_downloads_primary.html.erb +8 -1
- data/app/views/catalog/_header_icons.html.erb +3 -3
- data/app/views/catalog/_home_text.html.erb +8 -5
- data/app/views/catalog/_index_split_default.html.erb +22 -14
- data/app/views/catalog/_show_default_viewer_container.html.erb +6 -1
- data/app/views/catalog/_show_header_default.html.erb +2 -4
- data/app/views/catalog/_web_services_wfs.html.erb +3 -3
- data/app/views/catalog/_web_services_wms.html.erb +3 -3
- data/app/views/catalog/metadata.html.erb +3 -1
- data/app/views/catalog/web_services.html.erb +9 -7
- data/app/views/relation/_ancestors.html.erb +3 -5
- data/app/views/relation/_descendants.html.erb +4 -6
- data/app/views/relation/index.html.erb +20 -8
- data/app/views/relation/index.json.jbuilder +2 -1
- data/app/views/shared/_header_navbar.html.erb +1 -1
- data/bin/coverage.rb +36 -0
- data/config/initializers/rails_config.rb +1 -0
- data/config/locales/geoblacklight.en.yml +75 -2
- data/geoblacklight.gemspec +6 -8
- data/lib/generators/geoblacklight/assets_generator.rb +46 -0
- data/lib/generators/geoblacklight/install_generator.rb +8 -9
- data/lib/generators/geoblacklight/templates/assets/_blacklight.scss +1 -0
- data/lib/generators/geoblacklight/templates/assets/_customizations.scss +28 -0
- data/{app/assets/stylesheets/geoblacklight/application.scss → lib/generators/geoblacklight/templates/assets/_geoblacklight.scss} +0 -1
- data/lib/generators/geoblacklight/templates/assets/application.scss +7 -0
- data/lib/generators/geoblacklight/templates/{geoblacklight.js → assets/geoblacklight.js} +0 -1
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +6 -2
- data/lib/generators/geoblacklight/templates/settings.yml +17 -0
- data/lib/generators/geoblacklight/webpacker_generator.rb +2 -1
- data/lib/geoblacklight.rb +1 -0
- data/lib/geoblacklight/bounding_box.rb +1 -0
- data/lib/geoblacklight/catalog_helper_override.rb +2 -1
- data/lib/geoblacklight/constants.rb +4 -2
- data/lib/geoblacklight/download.rb +6 -5
- data/lib/geoblacklight/download/geojson_download.rb +1 -0
- data/lib/geoblacklight/download/geotiff_download.rb +1 -0
- data/lib/geoblacklight/download/hgl_download.rb +1 -0
- data/lib/geoblacklight/download/kmz_download.rb +2 -1
- data/lib/geoblacklight/download/shapefile_download.rb +1 -0
- data/lib/geoblacklight/engine.rb +1 -2
- data/lib/geoblacklight/exceptions.rb +1 -0
- data/lib/geoblacklight/geoblacklight_helper_behavior.rb +1 -0
- data/lib/geoblacklight/item_viewer.rb +6 -1
- data/lib/geoblacklight/metadata.rb +1 -0
- data/lib/geoblacklight/metadata/base.rb +16 -10
- data/lib/geoblacklight/metadata/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata/html.rb +2 -2
- data/lib/geoblacklight/metadata/iso19139.rb +1 -0
- data/lib/geoblacklight/metadata_transformer.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/base.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
- data/lib/geoblacklight/reference.rb +3 -1
- data/lib/geoblacklight/references.rb +7 -3
- data/lib/geoblacklight/relation/ancestors.rb +2 -1
- data/lib/geoblacklight/relation/descendants.rb +2 -1
- data/lib/geoblacklight/relation/relation_response.rb +2 -1
- data/lib/geoblacklight/routes.rb +1 -0
- data/lib/geoblacklight/routes/downloadable.rb +1 -0
- data/lib/geoblacklight/routes/exportable.rb +1 -0
- data/lib/geoblacklight/routes/wms.rb +1 -0
- data/lib/geoblacklight/version.rb +2 -1
- data/lib/geoblacklight/view_helper_override.rb +2 -1
- data/lib/geoblacklight/wms_layer.rb +3 -2
- data/lib/geoblacklight/wms_layer/feature_info_response.rb +1 -0
- data/lib/tasks/geoblacklight.rake +33 -32
- data/package.json +4 -0
- data/schema/references.md +2 -1
- data/solr/conf/schema.xml +5 -5
- data/spec/controllers/catalog_controller_spec.rb +1 -0
- data/spec/controllers/download_controller_spec.rb +2 -1
- data/spec/controllers/relation_controller_spec.rb +1 -0
- data/spec/controllers/wms_controller_spec.rb +2 -1
- data/spec/factories/user.rb +1 -0
- data/spec/features/bookmarks_spec.rb +1 -0
- data/spec/features/configurable_basemap_spec.rb +10 -0
- data/spec/features/data_dictionary_download_spec.rb +1 -0
- data/spec/features/download_layer_spec.rb +1 -0
- data/spec/features/empty_search_spec.rb +1 -0
- data/spec/features/esri_viewer_spec.rb +1 -6
- data/spec/features/exports_spec.rb +4 -3
- data/spec/features/help_text_spec.rb +9 -0
- data/spec/features/home_page_spec.rb +6 -0
- data/spec/features/iiif_viewer_spec.rb +1 -0
- data/spec/features/index_map_spec.rb +1 -0
- data/spec/features/layer_inspection_spec.rb +1 -0
- data/spec/features/layer_opacity_spec.rb +1 -0
- data/spec/features/layer_preview_spec.rb +1 -0
- data/spec/features/layer_with_no_references_spec.rb +1 -0
- data/spec/features/linkified_attribute_table_spec.rb +1 -0
- data/spec/features/metadata_panel_spec.rb +52 -8
- data/spec/features/missing_metadata_spec.rb +13 -0
- data/spec/features/multiple_downloads_spec.rb +15 -0
- data/spec/features/oembed_spec.rb +10 -0
- data/spec/features/relations_spec.rb +10 -28
- data/spec/features/saved_searches_spec.rb +1 -0
- data/spec/features/search_bar_spec.rb +1 -0
- data/spec/features/search_results_map_spec.rb +2 -7
- data/spec/features/search_results_overlap_ratio_spec.rb +4 -3
- data/spec/features/search_spec.rb +1 -0
- data/spec/features/show_page_metadata_spec.rb +1 -0
- data/spec/features/sms_spec.rb +1 -0
- data/spec/features/split_view.html.erb_spec.rb +5 -4
- data/spec/features/suppressed_records_spec.rb +15 -0
- data/spec/features/web_services_modal_spec.rb +1 -0
- data/spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml +1 -0
- data/spec/fixtures/iso19139/stanford-cg357zz0321.xml +581 -0
- data/spec/fixtures/mods/fb897vt9938.mods +111 -0
- data/spec/fixtures/mods/stanford-cg357zz0321.mods +113 -0
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
- data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +30 -0
- data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +17 -0
- data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +23 -0
- data/spec/fixtures/solr_documents/multiple-downloads.json +30 -0
- data/spec/fixtures/solr_documents/oembed.json +24 -0
- data/spec/helpers/arcgis_helper_spec.rb +1 -0
- data/spec/helpers/carto_helper_spec.rb +1 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +81 -12
- data/spec/javascripts/geoblacklight/viewers/esri/tiled_map_layer_spec.js +12 -0
- data/spec/javascripts/metadata_download_button_spec.js +1 -1
- data/spec/lib/geoblacklight/bounding_box_spec.rb +1 -0
- data/spec/lib/geoblacklight/controller_override_spec.rb +1 -0
- data/spec/lib/geoblacklight/document_presenter_spec.rb +3 -2
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download_spec.rb +4 -3
- data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
- data/spec/lib/geoblacklight/item_viewer_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata/base_spec.rb +22 -7
- data/spec/lib/geoblacklight/metadata/html_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer_spec.rb +4 -3
- data/spec/lib/geoblacklight/reference_spec.rb +31 -0
- data/spec/lib/geoblacklight/references_spec.rb +2 -3
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +2 -1
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +2 -1
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +1 -0
- data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -0
- data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +5 -4
- data/spec/lib/geoblacklight/wms_layer_spec.rb +3 -2
- data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +1 -20
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +14 -0
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +1 -0
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +1 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +47 -0
- data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +15 -2
- data/spec/routing/catalog_routing_spec.rb +1 -0
- data/spec/spec_helper.rb +20 -14
- data/spec/support/backport_test_helpers.rb +1 -0
- data/spec/support/features.rb +1 -0
- data/spec/support/features/session_helpers.rb +1 -0
- data/spec/support/fixtures.rb +8 -0
- data/spec/tasks/geoblacklight_spec.rb +19 -0
- data/spec/teaspoon_env.rb +1 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -0
- data/spec/views/catalog/_document_split.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_index_split.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +2 -4
- data/template.rb +1 -0
- data/vendor/assets/stylesheets/leaflet.css +0 -1
- metadata +158 -75
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/geoblacklight/modules/collapse.js +0 -7
- data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +0 -36
- data/app/assets/stylesheets/geoblacklight/modules/relations.scss +0 -15
- data/app/views/catalog/_exports.html.erb +0 -11
- data/app/views/catalog/_show_tools.html.erb +0 -25
- data/lib/generators/geoblacklight/templates/geoblacklight.scss +0 -4
- data/vendor/assets/javascripts/readmore.min.js +0 -11
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
|
13
|
+
@import 'styles';
|
14
|
+
@import 'facets';
|
15
|
+
@import 'mixins';
|
16
|
+
@import 'icon-customization';
|
17
|
+
@import 'home';
|
18
|
+
@import 'index_maps';
|
19
|
+
@import 'item';
|
20
|
+
@import 'layer_opacity';
|
21
|
+
@import 'metadata';
|
22
|
+
@import 'metadata_content';
|
23
|
+
@import 'metadata_missing';
|
24
|
+
@import 'metadata_markup';
|
25
|
+
@import 'modal';
|
26
|
+
@import 'results';
|
27
|
+
@import 'geosearch';
|
28
|
+
@import 'search_widgets';
|
29
|
+
@import 'sidebar';
|
30
|
+
@import 'toolbar';
|
31
|
+
@import 'web_services';
|
32
|
+
@import 'blacklight_overrides';
|
33
|
+
@import 'downloads';
|
@@ -2,6 +2,14 @@
|
|
2
2
|
Stylesheet for overriding styles inherited from Blacklight proper
|
3
3
|
**/
|
4
4
|
|
5
|
+
$logo-image: image_url('blacklight/logo.svg') !default
|
6
|
+
|
7
|
+
.navbar-logo { /* The main logo image for the Blacklight instance */
|
8
|
+
@if $logo-image {
|
9
|
+
background: transparent $logo-image no-repeat top left;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
5
13
|
// Begin - Addresses GBL issue #634
|
6
14
|
// Emulates font-size for SVG icons and aligns to baseline
|
7
15
|
.blacklight-icons {
|
@@ -32,12 +40,3 @@
|
|
32
40
|
padding-top:0.5rem;
|
33
41
|
}
|
34
42
|
// End - Addresses GBL issue #639
|
35
|
-
|
36
|
-
|
37
|
-
// Begin - Addresses GBL issue #766 - removes flex from display
|
38
|
-
.modal-header {
|
39
|
-
display: block;
|
40
|
-
padding: 15px;
|
41
|
-
border-bottom: 1px solid #e9ecef;
|
42
|
-
}
|
43
|
-
// End - Addresses GBL issue #766
|
@@ -1,91 +1,74 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}
|
7
|
-
|
8
|
-
%download-export-links {
|
9
|
-
a {
|
10
|
-
width: 100%;
|
11
|
-
font-weight: 600;
|
12
|
-
background-color: $link-color;
|
13
|
-
color: #ffffff;
|
14
|
-
border-color: darken($link-color, 6.5%);
|
15
|
-
white-space: inherit;
|
16
|
-
}
|
17
|
-
}
|
1
|
+
// Common styling for the Downloads, Export, and Authentication cards
|
2
|
+
.downloads,
|
3
|
+
.card.exports,
|
4
|
+
.authentication {
|
5
|
+
@include sidebar-children;
|
18
6
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
text-align: center;
|
23
|
-
@extend %download-export-links;
|
7
|
+
.list-group {
|
8
|
+
&.list-group-nested .list-group-item:last-child {
|
9
|
+
padding-bottom: 0;
|
24
10
|
}
|
25
|
-
}
|
26
|
-
}
|
27
11
|
|
28
|
-
.
|
29
|
-
|
30
|
-
@extend %downloads-exports;
|
12
|
+
.list-group-item {
|
13
|
+
padding: 8px 20px;
|
31
14
|
|
32
|
-
|
33
|
-
|
15
|
+
a {
|
16
|
+
@extend .btn-primary;
|
17
|
+
}
|
18
|
+
}
|
34
19
|
}
|
35
20
|
}
|
36
21
|
|
22
|
+
// This section could be eliminated if we update the Authentication card
|
23
|
+
// to follow the pattern of Dowloads and Exports (put the button in a
|
24
|
+
// list-group rather than the card header).
|
37
25
|
.authentication {
|
38
|
-
@include sidebar-children;
|
39
26
|
.card-header {
|
40
27
|
background-color: inherit;
|
41
28
|
border-bottom: inherit;
|
42
29
|
|
43
|
-
|
30
|
+
a {
|
31
|
+
@extend .btn-primary;
|
32
|
+
}
|
44
33
|
}
|
45
34
|
}
|
46
35
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
36
|
+
// Specific to the Export card (mostly because of the current external
|
37
|
+
// label + button approach, which could be mostly eliminated by reworking
|
38
|
+
// as suggested in https://github.com/sul-dlss/earthworks/issues/646)
|
39
|
+
.card.exports {
|
51
40
|
.card-header {
|
52
|
-
.
|
53
|
-
|
41
|
+
.spinner-border { // if this is used, it probably should go in the card body rather than the card header
|
42
|
+
position: absolute;
|
43
|
+
right: 1rem;
|
44
|
+
top: 1rem;
|
54
45
|
}
|
55
46
|
}
|
56
47
|
|
57
48
|
.export {
|
58
|
-
@include download-export;
|
59
|
-
|
60
|
-
padding-left: 0px;
|
61
|
-
padding-right: 0px;
|
62
49
|
text-align: center;
|
63
|
-
width: 100%;
|
64
50
|
|
65
51
|
@include media-breakpoint-up(xl) {
|
66
52
|
text-align: left;
|
67
53
|
}
|
68
54
|
|
69
|
-
|
70
|
-
padding: 6px
|
55
|
+
.export-label {
|
56
|
+
padding: 6px 6px 6px 0;
|
71
57
|
|
72
58
|
@include media-breakpoint-up(xl) {
|
73
59
|
display: inline-block;
|
74
60
|
}
|
75
61
|
}
|
76
62
|
|
77
|
-
|
78
|
-
|
63
|
+
.export-link-container {
|
64
|
+
@include media-breakpoint-up(xl) {
|
65
|
+
display: inline-block;
|
66
|
+
float: right;
|
67
|
+
}
|
79
68
|
|
69
|
+
a {
|
80
70
|
@include media-breakpoint-up(xl) {
|
81
|
-
|
82
|
-
float: right;
|
83
|
-
}
|
84
|
-
|
85
|
-
a {
|
86
|
-
@include media-breakpoint-up(xl) {
|
87
|
-
width: inherit;
|
88
|
-
}
|
71
|
+
width: inherit;
|
89
72
|
}
|
90
73
|
}
|
91
74
|
}
|
@@ -1,60 +1,50 @@
|
|
1
|
-
//
|
2
|
-
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
.
|
42
|
-
|
43
|
-
}
|
44
|
-
|
45
|
-
.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
@extend .fa, .fa-file-text-o;
|
51
|
-
}
|
52
|
-
|
53
|
-
.geoblacklight-carto {
|
54
|
-
@extend .fa, .fa-map-marker;
|
55
|
-
}
|
56
|
-
|
57
|
-
// DEPRECATED: Will be removed in GeoBlacklight v2.0
|
58
|
-
.geoblacklight-cartodb {
|
59
|
-
@extend .geoblacklight-cartodb;
|
1
|
+
// SVG icons via FontAwesome and IcoMoon, see geoblacklight-icons.json for project data
|
2
|
+
|
3
|
+
span.icon-missing {
|
4
|
+
display: inline-block;
|
5
|
+
height: 1em;
|
6
|
+
width: 1em;
|
7
|
+
}
|
8
|
+
|
9
|
+
// CatalogController#index - Home
|
10
|
+
.category-icon {
|
11
|
+
.blacklight-icons {
|
12
|
+
height: 6rem;
|
13
|
+
width: auto;
|
14
|
+
}
|
15
|
+
|
16
|
+
.blacklight-icons svg {
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
top: 2rem;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// CatalogController#show
|
24
|
+
.document {
|
25
|
+
h2 {
|
26
|
+
.blacklight-icons {
|
27
|
+
height: 1.5rem;
|
28
|
+
width: auto;
|
29
|
+
}
|
30
|
+
|
31
|
+
.blacklight-icons svg {
|
32
|
+
width: auto;
|
33
|
+
height: 100%;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// CatalogController#index - search results
|
39
|
+
.facet-label {
|
40
|
+
.blacklight-icons, span.icon-missing {
|
41
|
+
margin-right:0.5em;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.blacklight-icons {
|
46
|
+
svg * {
|
47
|
+
width: 100%;
|
48
|
+
height: 100%;
|
49
|
+
}
|
60
50
|
}
|
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
#viewer-container {
|
9
9
|
[data-map="item"] {
|
10
|
+
border: 1px solid $gray-400;
|
10
11
|
height: 27.5rem;
|
11
12
|
}
|
12
13
|
|
@@ -19,4 +20,20 @@
|
|
19
20
|
}
|
20
21
|
}
|
21
22
|
}
|
23
|
+
|
24
|
+
.help-text {
|
25
|
+
cursor: pointer;
|
26
|
+
}
|
27
|
+
|
28
|
+
.truncate-abstract.collapse:not(.show),
|
29
|
+
.truncate-abstract.collapsing {
|
30
|
+
display: block;
|
31
|
+
display: -webkit-box;
|
32
|
+
height: auto;
|
33
|
+
min-height: #{8 * $line-height-base}rem;
|
34
|
+
max-height: #{8 * $line-height-base}rem;
|
35
|
+
overflow-y: hidden;
|
36
|
+
-webkit-box-orient: vertical;
|
37
|
+
-webkit-line-clamp: 8;
|
38
|
+
}
|
22
39
|
}
|
@@ -3,44 +3,63 @@
|
|
3
3
|
}
|
4
4
|
|
5
5
|
.more-info-area {
|
6
|
-
float: left;
|
7
|
-
order:3;
|
8
6
|
max-height: 100px;
|
9
7
|
overflow:hidden;
|
8
|
+
padding-left: 2ch;
|
10
9
|
}
|
11
10
|
|
12
|
-
.
|
13
|
-
|
14
|
-
float:left;
|
11
|
+
.documents-list {
|
12
|
+
@extend .mb-4;
|
15
13
|
}
|
16
14
|
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}
|
15
|
+
.index-split {
|
16
|
+
.index_title {
|
17
|
+
display: flex;
|
18
|
+
font-size: 1rem;
|
19
|
+
padding-right: 0;
|
20
|
+
}
|
23
21
|
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
.document-counter {
|
23
|
+
@extend .pr-1;
|
24
|
+
}
|
25
|
+
|
26
|
+
.caret-toggle {
|
27
|
+
@include caret('right');
|
28
|
+
padding-left: 0;
|
29
|
+
width: 28px;
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
&[aria-expanded="true"] {
|
32
|
+
@include caret('down');
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.status-icons {
|
37
|
+
cursor: pointer;
|
38
|
+
margin-left: 0.5rem;
|
39
|
+
margin-top: -3px;
|
40
|
+
white-space: nowrap;
|
41
|
+
z-index: 2; // get the icons above the toggle
|
42
|
+
}
|
36
43
|
}
|
37
44
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
45
|
+
#main-container {
|
46
|
+
.category-block {
|
47
|
+
min-height: 240px;
|
48
|
+
|
49
|
+
.category-icon {
|
50
|
+
font-size: 6em;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
[data-map="index"] {
|
55
|
+
height: 400px;
|
42
56
|
|
43
|
-
|
44
|
-
|
57
|
+
.leaflet-control-container {
|
58
|
+
.search-control {
|
59
|
+
a {
|
60
|
+
color: $white;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
45
64
|
}
|
46
65
|
}
|
@@ -1,59 +1,29 @@
|
|
1
1
|
// Mixins and shared properties for sidebar elements
|
2
|
-
|
3
2
|
@mixin sidebar-children {
|
4
|
-
|
5
|
-
|
6
|
-
}
|
7
|
-
|
8
|
-
%list-group-item-anchors {
|
9
|
-
text-align: center;
|
10
|
-
width: 1.4em;
|
11
|
-
}
|
12
|
-
|
13
|
-
margin-top: 16px;
|
14
|
-
margin-bottom: 16px;
|
3
|
+
margin-bottom: 20px;
|
4
|
+
margin-top: 20px;
|
15
5
|
|
16
|
-
.card-header {
|
17
|
-
|
18
|
-
|
19
|
-
padding-top: 8px;
|
20
|
-
padding-bottom: 8px;
|
21
|
-
margin-bottom: 0px;
|
22
|
-
font-size: 1rem;
|
23
|
-
}
|
6
|
+
.card-header h2 {
|
7
|
+
@extend .h6;
|
8
|
+
margin-bottom: 0px;
|
24
9
|
}
|
25
10
|
|
26
11
|
.card-subtitle {
|
27
|
-
margin: 1rem 0
|
28
|
-
font-size:
|
12
|
+
margin: 1rem 0 0;
|
13
|
+
font-size: 1rem;
|
29
14
|
font-weight: normal;
|
30
|
-
color: $gray-600;
|
31
15
|
}
|
32
16
|
|
33
17
|
.list-group {
|
34
|
-
|
35
|
-
|
36
|
-
padding-left: 4px;
|
37
|
-
padding-right: 4px;
|
18
|
+
border: 0;
|
19
|
+
margin: 8px 0;
|
38
20
|
|
39
21
|
.list-group-item {
|
40
|
-
border
|
41
|
-
padding:
|
22
|
+
border: 0;
|
23
|
+
padding: 0 0 0 20px;
|
42
24
|
|
43
25
|
a {
|
44
|
-
|
45
|
-
|
46
|
-
.geoblacklight {
|
47
|
-
color: $gray-600;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
&-nested {
|
53
|
-
padding: 0;
|
54
|
-
|
55
|
-
.list-group-item {
|
56
|
-
padding: 8px 0;
|
26
|
+
display: block;
|
57
27
|
}
|
58
28
|
}
|
59
29
|
}
|