geoblacklight 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.circleci/config.yml +195 -0
- data/.github/ISSUE_TEMPLATE.md +17 -0
- data/.gitignore +21 -0
- data/.gitmodules +0 -0
- data/.hound.yml +8 -0
- data/.jshintignore +2 -0
- data/.jshintrc +67 -0
- data/.rubocop.yml +99 -0
- data/.rubocop_todo.yml +196 -0
- data/.solr_wrapper +5 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +49 -0
- data/Gemfile +39 -0
- data/LICENSE.txt +13 -0
- data/README.md +39 -0
- data/Rakefile +125 -0
- data/app/assets/images/blacklight/arrow-circle-down.svg +4 -0
- data/app/assets/images/blacklight/baruch-cuny.svg +6 -0
- data/app/assets/images/blacklight/berkeley.svg +7 -0
- data/app/assets/images/blacklight/book.svg +6 -0
- data/app/assets/images/blacklight/bookmark.svg +6 -0
- data/app/assets/images/blacklight/cd-rom.svg +6 -0
- data/app/assets/images/blacklight/chicago.svg +7 -0
- data/app/assets/images/blacklight/columbia.svg +6 -0
- data/app/assets/images/blacklight/cornell.svg +8 -0
- data/app/assets/images/blacklight/dvd-rom.svg +6 -0
- data/app/assets/images/blacklight/email.svg +6 -0
- data/app/assets/images/blacklight/esri-globe.svg +34 -0
- data/app/assets/images/blacklight/geoblacklight-icons.json +2079 -0
- data/app/assets/images/blacklight/globe.svg +4 -0
- data/app/assets/images/blacklight/harvard.svg +6 -0
- data/app/assets/images/blacklight/home.svg +4 -0
- data/app/assets/images/blacklight/illinois.svg +7 -0
- data/app/assets/images/blacklight/image.svg +6 -0
- data/app/assets/images/blacklight/indiana.svg +6 -0
- data/app/assets/images/blacklight/iowa.svg +6 -0
- data/app/assets/images/blacklight/leaf.svg +6 -0
- data/app/assets/images/blacklight/lewis-clark.svg +8 -0
- data/app/assets/images/blacklight/line.svg +7 -0
- data/app/assets/images/blacklight/logo.svg +1 -0
- data/app/assets/images/blacklight/map-marker.svg +6 -0
- data/app/assets/images/blacklight/map.svg +6 -0
- data/app/assets/images/blacklight/maryland.svg +6 -0
- data/app/assets/images/blacklight/massgis.svg +6 -0
- data/app/assets/images/blacklight/metadata.svg +6 -0
- data/app/assets/images/blacklight/michigan-state.svg +7 -0
- data/app/assets/images/blacklight/michigan.svg +6 -0
- data/app/assets/images/blacklight/minnesota.svg +6 -0
- data/app/assets/images/blacklight/mit.svg +6 -0
- data/app/assets/images/blacklight/mixed.svg +8 -0
- data/app/assets/images/blacklight/multilinestring.svg +9 -0
- data/app/assets/images/blacklight/multipoint.svg +6 -0
- data/app/assets/images/blacklight/multipolygon.svg +9 -0
- data/app/assets/images/blacklight/nyu.svg +9 -0
- data/app/assets/images/blacklight/ohio-state.svg +8 -0
- data/app/assets/images/blacklight/pagelines-brands.svg +6 -0
- data/app/assets/images/blacklight/paper-map.svg +6 -0
- data/app/assets/images/blacklight/penn-state.svg +7 -0
- data/app/assets/images/blacklight/point.svg +6 -0
- data/app/assets/images/blacklight/polygon.svg +7 -0
- data/app/assets/images/blacklight/polyline.svg +9 -0
- data/app/assets/images/blacklight/princeton.svg +6 -0
- data/app/assets/images/blacklight/public.svg +6 -0
- data/app/assets/images/blacklight/purdue.svg +7 -0
- data/app/assets/images/blacklight/raster.svg +6 -0
- data/app/assets/images/blacklight/restricted.svg +6 -0
- data/app/assets/images/blacklight/sms.svg +6 -0
- data/app/assets/images/blacklight/stanford.svg +6 -0
- data/app/assets/images/blacklight/table.svg +6 -0
- data/app/assets/images/blacklight/tags.svg +4 -0
- data/app/assets/images/blacklight/texas.svg +6 -0
- data/app/assets/images/blacklight/tufts.svg +6 -0
- data/app/assets/images/blacklight/ucla.svg +6 -0
- data/app/assets/images/blacklight/uva.svg +6 -0
- data/app/assets/images/blacklight/web_services.svg +6 -0
- data/app/assets/images/blacklight/wisconsin.svg +6 -0
- data/app/assets/javascripts/geoblacklight/basemaps.js +85 -0
- data/app/assets/javascripts/geoblacklight/controls.js +1 -0
- data/app/assets/javascripts/geoblacklight/controls/opacity.js +6 -0
- data/app/assets/javascripts/geoblacklight/downloaders.js +1 -0
- data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +61 -0
- data/app/assets/javascripts/geoblacklight/downloaders/hgl_downloader.js +32 -0
- data/app/assets/javascripts/geoblacklight/geoblacklight.js +42 -0
- data/app/assets/javascripts/geoblacklight/modules.js +1 -0
- data/app/assets/javascripts/geoblacklight/modules/collapse.js +7 -0
- data/app/assets/javascripts/geoblacklight/modules/download.js +11 -0
- data/app/assets/javascripts/geoblacklight/modules/geosearch.js +133 -0
- data/app/assets/javascripts/geoblacklight/modules/help_text.js +7 -0
- data/app/assets/javascripts/geoblacklight/modules/home.js +16 -0
- data/app/assets/javascripts/geoblacklight/modules/item.js +13 -0
- data/app/assets/javascripts/geoblacklight/modules/layer_opacity.js +68 -0
- data/app/assets/javascripts/geoblacklight/modules/metadata.js +15 -0
- data/app/assets/javascripts/geoblacklight/modules/metadata_download_button.js +53 -0
- data/app/assets/javascripts/geoblacklight/modules/relations.js +14 -0
- data/app/assets/javascripts/geoblacklight/modules/results.js +82 -0
- data/app/assets/javascripts/geoblacklight/modules/util.js +38 -0
- data/app/assets/javascripts/geoblacklight/templates/index_map_download.hbs +19 -0
- data/app/assets/javascripts/geoblacklight/templates/index_map_info.hbs +40 -0
- data/app/assets/javascripts/geoblacklight/viewers.js +1 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri.js +77 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri/dynamic_map_layer.js +85 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri/feature_layer.js +76 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri/image_map_layer.js +14 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri/tiled_map_layer.js +50 -0
- data/app/assets/javascripts/geoblacklight/viewers/iiif.js +25 -0
- data/app/assets/javascripts/geoblacklight/viewers/index_map.js +70 -0
- data/app/assets/javascripts/geoblacklight/viewers/map.js +67 -0
- data/app/assets/javascripts/geoblacklight/viewers/oembed.js +13 -0
- data/app/assets/javascripts/geoblacklight/viewers/viewer.js +65 -0
- data/app/assets/javascripts/geoblacklight/viewers/wms.js +74 -0
- data/app/assets/stylesheets/geoblacklight/_blacklight_overrides.scss +51 -0
- data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +36 -0
- data/app/assets/stylesheets/geoblacklight/_styles.scss +4 -0
- data/app/assets/stylesheets/geoblacklight/application.scss +2 -0
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +93 -0
- data/app/assets/stylesheets/geoblacklight/modules/facets.scss +5 -0
- data/app/assets/stylesheets/geoblacklight/modules/geosearch.scss +29 -0
- data/app/assets/stylesheets/geoblacklight/modules/home.scss +28 -0
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +50 -0
- data/app/assets/stylesheets/geoblacklight/modules/index_maps.scss +7 -0
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +26 -0
- data/app/assets/stylesheets/geoblacklight/modules/layer_opacity.scss +87 -0
- data/app/assets/stylesheets/geoblacklight/modules/metadata.scss +31 -0
- data/app/assets/stylesheets/geoblacklight/modules/metadata_content.scss +43 -0
- data/app/assets/stylesheets/geoblacklight/modules/metadata_markup.scss +9 -0
- data/app/assets/stylesheets/geoblacklight/modules/metadata_missing.scss +7 -0
- data/app/assets/stylesheets/geoblacklight/modules/mixins.scss +5 -0
- data/app/assets/stylesheets/geoblacklight/modules/modal.scss +14 -0
- data/app/assets/stylesheets/geoblacklight/modules/relations.scss +15 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +68 -0
- data/app/assets/stylesheets/geoblacklight/modules/search_widgets.scss +5 -0
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +60 -0
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +70 -0
- data/app/assets/stylesheets/geoblacklight/modules/web_services.scss +5 -0
- data/app/controllers/download_controller.rb +114 -0
- data/app/controllers/relation_controller.rb +20 -0
- data/app/controllers/wms_controller.rb +15 -0
- data/app/helpers/arcgis_helper.rb +12 -0
- data/app/helpers/blacklight_helper.rb +9 -0
- data/app/helpers/carto_helper.rb +29 -0
- data/app/helpers/geoblacklight_helper.rb +323 -0
- data/app/models/concerns/geoblacklight/solr_document.rb +113 -0
- data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +10 -0
- data/app/models/concerns/geoblacklight/solr_document/carto.rb +28 -0
- data/app/models/concerns/geoblacklight/solr_document/finder.rb +38 -0
- data/app/models/concerns/geoblacklight/solr_document/inspection.rb +15 -0
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +69 -0
- data/app/presenters/geoblacklight/document_presenter.rb +23 -0
- data/app/views/catalog/_data_dictionary.html.erb +6 -0
- data/app/views/catalog/_document_action.html.erb +6 -0
- data/app/views/catalog/_document_split.html.erb +6 -0
- data/app/views/catalog/_download_generated_link.html.erb +4 -0
- data/app/views/catalog/_download_link.html.erb +3 -0
- data/app/views/catalog/_downloads_generated.html.erb +6 -0
- data/app/views/catalog/_downloads_primary.html.erb +14 -0
- data/app/views/catalog/_downloads_secondary.html.erb +39 -0
- data/app/views/catalog/_exports.html.erb +3 -0
- data/app/views/catalog/_facet_tag_item.html.erb +3 -0
- data/app/views/catalog/_facet_tag_layout.html.erb +2 -0
- data/app/views/catalog/_header_icons.html.erb +3 -0
- data/app/views/catalog/_home_text.html.erb +43 -0
- data/app/views/catalog/_icon_facet.html.erb +16 -0
- data/app/views/catalog/_index_split_default.html.erb +22 -0
- data/app/views/catalog/_metadata.html.erb +27 -0
- data/app/views/catalog/_relations_container.html.erb +1 -0
- data/app/views/catalog/_results_pagination.html.erb +12 -0
- data/app/views/catalog/_show_default_attribute_table.html.erb +19 -0
- data/app/views/catalog/_show_default_viewer_container.html.erb +12 -0
- data/app/views/catalog/_show_default_viewer_information.html.erb +4 -0
- data/app/views/catalog/_show_downloads.html.erb +34 -0
- data/app/views/catalog/_show_header_default.html.erb +4 -0
- data/app/views/catalog/_show_sidebar.html.erb +12 -0
- data/app/views/catalog/_show_tools.html.erb +25 -0
- data/app/views/catalog/_web_services.html.erb +8 -0
- data/app/views/catalog/_web_services_default.html.erb +8 -0
- data/app/views/catalog/_web_services_wfs.html.erb +8 -0
- data/app/views/catalog/_web_services_wms.html.erb +8 -0
- data/app/views/catalog/index.html.erb +13 -0
- data/app/views/catalog/metadata.html.erb +11 -0
- data/app/views/catalog/metadata/_content.html.erb +3 -0
- data/app/views/catalog/metadata/_markup.html.erb +8 -0
- data/app/views/catalog/metadata/_missing.html.erb +6 -0
- data/app/views/catalog/web_services.html.erb +10 -0
- data/app/views/download/hgl.html.erb +25 -0
- data/app/views/relation/_ancestors.html.erb +11 -0
- data/app/views/relation/_descendants.html.erb +18 -0
- data/app/views/relation/index.html.erb +13 -0
- data/app/views/relation/index.json.jbuilder +3 -0
- data/app/views/shared/_header_navbar.html.erb +38 -0
- data/config/initializers/rails_config.rb +3 -0
- data/config/locales/geoblacklight.en.yml +163 -0
- data/geoblacklight.gemspec +49 -0
- data/lib/generators/geoblacklight/install_generator.rb +105 -0
- data/lib/generators/geoblacklight/templates/Procfile +3 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +272 -0
- data/lib/generators/geoblacklight/templates/geoblacklight.js +10 -0
- data/lib/generators/geoblacklight/templates/geoblacklight.scss +4 -0
- data/lib/generators/geoblacklight/templates/package.json +14 -0
- data/lib/generators/geoblacklight/templates/settings.yml +127 -0
- data/lib/generators/geoblacklight/templates/webpacker.yml +67 -0
- data/lib/generators/geoblacklight/webpacker_generator.rb +35 -0
- data/lib/geoblacklight.rb +50 -0
- data/lib/geoblacklight/bounding_box.rb +45 -0
- data/lib/geoblacklight/catalog_helper_override.rb +13 -0
- data/lib/geoblacklight/constants.rb +28 -0
- data/lib/geoblacklight/download.rb +108 -0
- data/lib/geoblacklight/download/geojson_download.rb +22 -0
- data/lib/geoblacklight/download/geotiff_download.rb +20 -0
- data/lib/geoblacklight/download/hgl_download.rb +18 -0
- data/lib/geoblacklight/download/kmz_download.rb +22 -0
- data/lib/geoblacklight/download/shapefile_download.rb +20 -0
- data/lib/geoblacklight/engine.rb +27 -0
- data/lib/geoblacklight/exceptions.rb +27 -0
- data/lib/geoblacklight/geoblacklight_helper_behavior.rb +14 -0
- data/lib/geoblacklight/item_viewer.rb +54 -0
- data/lib/geoblacklight/metadata.rb +18 -0
- data/lib/geoblacklight/metadata/base.rb +93 -0
- data/lib/geoblacklight/metadata/fgdc.rb +14 -0
- data/lib/geoblacklight/metadata/html.rb +13 -0
- data/lib/geoblacklight/metadata/iso19139.rb +14 -0
- data/lib/geoblacklight/metadata_transformer.rb +33 -0
- data/lib/geoblacklight/metadata_transformer/base.rb +42 -0
- data/lib/geoblacklight/metadata_transformer/fgdc.rb +8 -0
- data/lib/geoblacklight/metadata_transformer/iso19139.rb +8 -0
- data/lib/geoblacklight/reference.rb +45 -0
- data/lib/geoblacklight/references.rb +132 -0
- data/lib/geoblacklight/relation/ancestors.rb +27 -0
- data/lib/geoblacklight/relation/descendants.rb +27 -0
- data/lib/geoblacklight/relation/relation_response.rb +24 -0
- data/lib/geoblacklight/routes.rb +7 -0
- data/lib/geoblacklight/routes/downloadable.rb +14 -0
- data/lib/geoblacklight/routes/exportable.rb +17 -0
- data/lib/geoblacklight/routes/wms.rb +13 -0
- data/lib/geoblacklight/version.rb +3 -0
- data/lib/geoblacklight/view_helper_override.rb +40 -0
- data/lib/geoblacklight/wms_layer.rb +35 -0
- data/lib/geoblacklight/wms_layer/feature_info_response.rb +32 -0
- data/lib/tasks/geoblacklight.rake +108 -0
- data/package.json +4 -0
- data/schema/format-values.md +50 -0
- data/schema/geoblacklight-schema-deprecated.md +39 -0
- data/schema/geoblacklight-schema.json +214 -0
- data/schema/geoblacklight-schema.md +323 -0
- data/schema/geometry-type-values.md +11 -0
- data/schema/references.md +23 -0
- data/schema/schema-commentary.md +198 -0
- data/schema/subjects.md +41 -0
- data/schema/type-values.md +10 -0
- data/solr/conf/_rest_managed.json +3 -0
- data/solr/conf/admin-extra.html +31 -0
- data/solr/conf/core.properties +5 -0
- data/solr/conf/elevate.xml +36 -0
- data/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/conf/protwords.txt +21 -0
- data/solr/conf/schema.xml +198 -0
- data/solr/conf/scripts.conf +24 -0
- data/solr/conf/solrconfig.xml +243 -0
- data/solr/conf/spellings.txt +2 -0
- data/solr/conf/stopwords.txt +58 -0
- data/solr/conf/stopwords_en.txt +58 -0
- data/solr/conf/synonyms.txt +31 -0
- data/solr/conf/xslt/example.xsl +132 -0
- data/solr/conf/xslt/example_atom.xsl +67 -0
- data/solr/conf/xslt/example_rss.xsl +66 -0
- data/solr/conf/xslt/luke.xsl +337 -0
- data/spec/controllers/catalog_controller_spec.rb +82 -0
- data/spec/controllers/download_controller_spec.rb +120 -0
- data/spec/controllers/relation_controller_spec.rb +11 -0
- data/spec/controllers/wms_controller_spec.rb +34 -0
- data/spec/factories/user.rb +7 -0
- data/spec/features/bookmarks_spec.rb +10 -0
- data/spec/features/configurable_basemap_spec.rb +35 -0
- data/spec/features/data_dictionary_download_spec.rb +16 -0
- data/spec/features/download_layer_spec.rb +93 -0
- data/spec/features/empty_search_spec.rb +11 -0
- data/spec/features/esri_viewer_spec.rb +42 -0
- data/spec/features/exports_spec.rb +36 -0
- data/spec/features/help_text_spec.rb +8 -0
- data/spec/features/home_page_spec.rb +40 -0
- data/spec/features/iiif_viewer_spec.rb +8 -0
- data/spec/features/index_map_spec.rb +31 -0
- data/spec/features/layer_inspection_spec.rb +10 -0
- data/spec/features/layer_opacity_spec.rb +20 -0
- data/spec/features/layer_preview_spec.rb +17 -0
- data/spec/features/layer_with_no_references_spec.rb +8 -0
- data/spec/features/linkified_attribute_table_spec.rb +11 -0
- data/spec/features/metadata_panel_spec.rb +78 -0
- data/spec/features/missing_metadata_spec.rb +24 -0
- data/spec/features/oembed_spec.rb +9 -0
- data/spec/features/relations_spec.rb +51 -0
- data/spec/features/saved_searches_spec.rb +13 -0
- data/spec/features/search_bar_spec.rb +12 -0
- data/spec/features/search_results_map_spec.rb +55 -0
- data/spec/features/search_results_overlap_ratio_spec.rb +55 -0
- data/spec/features/search_spec.rb +14 -0
- data/spec/features/show_page_metadata_spec.rb +12 -0
- data/spec/features/sms_spec.rb +15 -0
- data/spec/features/split_view.html.erb_spec.rb +75 -0
- data/spec/features/suppressed_records_spec.rb +14 -0
- data/spec/features/web_services_modal_spec.rb +25 -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/README.md +40 -0
- data/spec/fixtures/solr_documents/actual-papermap1.json +23 -0
- data/spec/fixtures/solr_documents/actual-point1.json +37 -0
- data/spec/fixtures/solr_documents/actual-polygon1.json +23 -0
- data/spec/fixtures/solr_documents/actual-raster1.json +38 -0
- data/spec/fixtures/solr_documents/baruch_ancestor1.json +46 -0
- data/spec/fixtures/solr_documents/baruch_ancestor2.json +46 -0
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +49 -0
- data/spec/fixtures/solr_documents/bbox-spans-180.json +20 -0
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +42 -0
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +38 -0
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +40 -0
- data/spec/fixtures/solr_documents/esri-feature-layer.json +46 -0
- data/spec/fixtures/solr_documents/esri-image-map-layer.json +42 -0
- data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +22 -0
- data/spec/fixtures/solr_documents/esri-wms-layer.json +33 -0
- data/spec/fixtures/solr_documents/harvard_raster.json +44 -0
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +30 -0
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +37 -0
- data/spec/fixtures/solr_documents/index-map-polygon.json +37 -0
- data/spec/fixtures/solr_documents/index-map-stanford.json +37 -0
- data/spec/fixtures/solr_documents/index_map_point.json +27 -0
- 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/no_spatial.json +21 -0
- data/spec/fixtures/solr_documents/oembed.json +24 -0
- data/spec/fixtures/solr_documents/princeton-child1.json +30 -0
- data/spec/fixtures/solr_documents/princeton-child2.json +30 -0
- data/spec/fixtures/solr_documents/princeton-child3.json +30 -0
- data/spec/fixtures/solr_documents/princeton-child4.json +30 -0
- data/spec/fixtures/solr_documents/princeton-parent.json +25 -0
- data/spec/fixtures/solr_documents/public_direct_download.json +34 -0
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +36 -0
- data/spec/fixtures/solr_documents/public_polygon_mit.json +27 -0
- data/spec/fixtures/solr_documents/restricted-line.json +37 -0
- data/spec/fixtures/solr_documents/umn_metro_result1.json +41 -0
- data/spec/fixtures/solr_documents/umn_state_result1.json +38 -0
- data/spec/fixtures/solr_documents/umn_state_result2.json +38 -0
- data/spec/fixtures/solr_documents/uva_slug_colon.json +25 -0
- data/spec/helpers/arcgis_helper_spec.rb +14 -0
- data/spec/helpers/carto_helper_spec.rb +11 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +329 -0
- data/spec/javascripts/geoblacklight_spec.js +21 -0
- data/spec/javascripts/metadata_download_button_spec.js +14 -0
- data/spec/javascripts/spec_helper.js +32 -0
- data/spec/javascripts/util_spec.js +12 -0
- data/spec/lib/geoblacklight/bounding_box_spec.rb +27 -0
- data/spec/lib/geoblacklight/controller_override_spec.rb +1 -0
- data/spec/lib/geoblacklight/document_presenter_spec.rb +61 -0
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +19 -0
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +20 -0
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +60 -0
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +20 -0
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +19 -0
- data/spec/lib/geoblacklight/download_spec.rb +177 -0
- data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +30 -0
- data/spec/lib/geoblacklight/item_viewer_spec.rb +63 -0
- data/spec/lib/geoblacklight/metadata/base_spec.rb +157 -0
- data/spec/lib/geoblacklight/metadata/html_spec.rb +18 -0
- data/spec/lib/geoblacklight/metadata_spec.rb +42 -0
- data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +35 -0
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +23 -0
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +23 -0
- data/spec/lib/geoblacklight/metadata_transformer_spec.rb +69 -0
- data/spec/lib/geoblacklight/reference_spec.rb +64 -0
- data/spec/lib/geoblacklight/references_spec.rb +216 -0
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +32 -0
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +32 -0
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +43 -0
- data/spec/lib/geoblacklight/view_helper_override_spec.rb +37 -0
- data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +50 -0
- data/spec/lib/geoblacklight/wms_layer_spec.rb +99 -0
- data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +61 -0
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +40 -0
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +16 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +251 -0
- data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +84 -0
- data/spec/routing/catalog_routing_spec.rb +8 -0
- data/spec/spec_helper.rb +79 -0
- data/spec/support/backport_test_helpers.rb +45 -0
- data/spec/support/features.rb +5 -0
- data/spec/support/features/session_helpers.rb +20 -0
- data/spec/teaspoon_env.rb +213 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +49 -0
- data/spec/test_app_templates/metadata/fgdc.html +129 -0
- data/spec/test_app_templates/metadata/fgdc.xml +145 -0
- data/spec/test_app_templates/metadata/iso.html +275 -0
- data/spec/test_app_templates/metadata/iso.xml +511 -0
- data/spec/test_app_templates/solr_documents +1 -0
- data/spec/views/catalog/_document_split.html.erb_spec.rb +5 -0
- data/spec/views/catalog/_index_split.html.erb_spec.rb +5 -0
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +9 -0
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +41 -0
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +39 -0
- data/template.rb +19 -0
- data/vendor/assets/images/layers-2x.png +0 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/marker-icon-2x.png +0 -0
- data/vendor/assets/images/marker-icon.png +0 -0
- data/vendor/assets/images/marker-shadow.png +0 -0
- data/vendor/assets/javascripts/esri-leaflet.js +5 -0
- data/vendor/assets/javascripts/esri-leaflet.js.map +1 -0
- data/vendor/assets/javascripts/leaflet-iiif.js +302 -0
- data/vendor/assets/javascripts/leaflet-src.js.map +1 -0
- data/vendor/assets/javascripts/leaflet.js.erb +13922 -0
- data/vendor/assets/javascripts/native.history.js +1 -0
- data/vendor/assets/javascripts/readmore.js +618 -0
- data/vendor/assets/javascripts/readmore.js.map +1 -0
- data/vendor/assets/stylesheets/leaflet-label.css +54 -0
- data/vendor/assets/stylesheets/leaflet.css +635 -0
- metadata +967 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/esri
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.TiledMapLayer = GeoBlacklight.Viewer.Esri.extend({
|
|
4
|
+
|
|
5
|
+
getPreviewLayer: function() {
|
|
6
|
+
|
|
7
|
+
// set layer url
|
|
8
|
+
this.options.url = this.data.url;
|
|
9
|
+
|
|
10
|
+
// check if this is a tile map and layer and for correct spatial reference
|
|
11
|
+
if (this.layerInfo.singleFusedMapCache === true && this.layerInfo.spatialReference.wkid === 102100) {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* TODO: allow non-mercator projections and custom scales
|
|
15
|
+
* - use Proj4Leaflet
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var esriTiledMapLayer = L.esri.tiledMapLayer(this.options);
|
|
19
|
+
|
|
20
|
+
//setup feature inspection
|
|
21
|
+
this.setupInspection(esriTiledMapLayer);
|
|
22
|
+
|
|
23
|
+
return esriTiledMapLayer;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
setupInspection: function(layer) {
|
|
28
|
+
var _this = this;
|
|
29
|
+
this.map.on('click', function(e) {
|
|
30
|
+
_this.appendLoadingMessage();
|
|
31
|
+
|
|
32
|
+
// query layer at click location
|
|
33
|
+
L.esri.Tasks.identifyFeatures({
|
|
34
|
+
url: layer.options.url,
|
|
35
|
+
useCors: true
|
|
36
|
+
})
|
|
37
|
+
.tolerance(0)
|
|
38
|
+
.returnGeometry(false)
|
|
39
|
+
.on(_this.map)
|
|
40
|
+
.at(e.latlng)
|
|
41
|
+
.run(function(error, featureCollection, response) {
|
|
42
|
+
if (error) {
|
|
43
|
+
_this.appendErrorMessage();
|
|
44
|
+
} else {
|
|
45
|
+
_this.populateAttributeTable(featureCollection.features[0]);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/viewer
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.Iiif = GeoBlacklight.Viewer.extend({
|
|
4
|
+
load: function() {
|
|
5
|
+
this.adjustLayout();
|
|
6
|
+
|
|
7
|
+
this.map = L.map(this.element, {
|
|
8
|
+
center: [0, 0],
|
|
9
|
+
crs: L.CRS.Simple,
|
|
10
|
+
zoom: 0
|
|
11
|
+
});
|
|
12
|
+
this.loadControls();
|
|
13
|
+
this.iiifLayer = L.tileLayer.iiif(this.data.url)
|
|
14
|
+
.addTo(this.map);
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
adjustLayout: function() {
|
|
18
|
+
|
|
19
|
+
// hide attribute table
|
|
20
|
+
$('#table-container').hide();
|
|
21
|
+
|
|
22
|
+
// expand viewer element
|
|
23
|
+
$(this.element).parent().attr('class', 'col-md-12');
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/map
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.IndexMap = GeoBlacklight.Viewer.Map.extend({
|
|
4
|
+
load: function() {
|
|
5
|
+
this.map = L.map(this.element).fitBounds(this.options.bbox);
|
|
6
|
+
this.map.addLayer(this.selectBasemap());
|
|
7
|
+
|
|
8
|
+
if (this.data.available) {
|
|
9
|
+
this.addPreviewLayer();
|
|
10
|
+
} else {
|
|
11
|
+
this.addBoundsOverlay(this.options.bbox);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
availabilityStyle: function(availability) {
|
|
15
|
+
var style = {};
|
|
16
|
+
var options = this.data.leafletOptions;
|
|
17
|
+
|
|
18
|
+
// Style the colors based on availability
|
|
19
|
+
if (availability || typeof(availability) === 'undefined') {
|
|
20
|
+
style = options.LAYERS.INDEX.DEFAULT;
|
|
21
|
+
} else {
|
|
22
|
+
style = options.LAYERS.INDEX.UNAVAILABLE;
|
|
23
|
+
}
|
|
24
|
+
return style
|
|
25
|
+
},
|
|
26
|
+
addPreviewLayer: function() {
|
|
27
|
+
var _this = this;
|
|
28
|
+
var geoJSONLayer;
|
|
29
|
+
var prevLayer = null;
|
|
30
|
+
var options = this.data.leafletOptions;
|
|
31
|
+
$.getJSON(this.data.url, function(data) {
|
|
32
|
+
geoJSONLayer = L.geoJson(data,
|
|
33
|
+
{
|
|
34
|
+
style: function(feature) {
|
|
35
|
+
return _this.availabilityStyle(feature.properties.available);
|
|
36
|
+
},
|
|
37
|
+
onEachFeature: function(feature, layer) {
|
|
38
|
+
// Add a hover label for the label property
|
|
39
|
+
if (feature.properties.label !== null) {
|
|
40
|
+
layer.bindTooltip(feature.properties.label);
|
|
41
|
+
}
|
|
42
|
+
// If it is available add clickable info
|
|
43
|
+
if (feature.properties.available !== null) {
|
|
44
|
+
layer.on('click', function(e) {
|
|
45
|
+
// Change currently selected layer color
|
|
46
|
+
layer.setStyle(options.LAYERS.INDEX.SELECTED);
|
|
47
|
+
// Change previously selected layer color to original color
|
|
48
|
+
if (prevLayer !== null) {
|
|
49
|
+
geoJSONLayer.resetStyle(prevLayer);
|
|
50
|
+
}
|
|
51
|
+
prevLayer = layer;
|
|
52
|
+
GeoBlacklight.Util.indexMapTemplate(feature.properties, function(html) {
|
|
53
|
+
$('.viewer-information').html(html);
|
|
54
|
+
});
|
|
55
|
+
GeoBlacklight.Util.indexMapDownloadTemplate(feature.properties, function(html) {
|
|
56
|
+
$('.js-index-map-feature').remove();
|
|
57
|
+
$('.js-download-list').append(html);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
// For point index maps, use circle markers
|
|
63
|
+
pointToLayer: function (feature, latlng) {
|
|
64
|
+
return L.circleMarker(latlng);
|
|
65
|
+
}
|
|
66
|
+
}).addTo(_this.map);
|
|
67
|
+
_this.map.fitBounds(geoJSONLayer.getBounds());
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/viewer
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.Map = GeoBlacklight.Viewer.extend({
|
|
4
|
+
|
|
5
|
+
options: {
|
|
6
|
+
/**
|
|
7
|
+
* Initial bounds of map
|
|
8
|
+
* @type {L.LatLngBounds}
|
|
9
|
+
*/
|
|
10
|
+
bbox: [[-82, -144], [77, 161]],
|
|
11
|
+
opacity: 0.75
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
overlay: L.layerGroup(),
|
|
15
|
+
|
|
16
|
+
load: function() {
|
|
17
|
+
if (this.data.mapBbox) {
|
|
18
|
+
this.options.bbox = L.bboxToBounds(this.data.mapBbox);
|
|
19
|
+
}
|
|
20
|
+
this.map = L.map(this.element).fitBounds(this.options.bbox);
|
|
21
|
+
|
|
22
|
+
// Add initial bbox to map element for easier testing
|
|
23
|
+
if (this.map.getBounds().isValid()) {
|
|
24
|
+
this.element.setAttribute('data-js-map-render-bbox', this.map.getBounds().toBBoxString());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
this.map.addLayer(this.selectBasemap());
|
|
28
|
+
this.map.addLayer(this.overlay);
|
|
29
|
+
if (this.data.map !== 'index') {
|
|
30
|
+
this.addBoundsOverlay(this.options.bbox);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Add a bounding box overlay to map.
|
|
36
|
+
* @param {L.LatLngBounds} bounds Leaflet LatLngBounds
|
|
37
|
+
*/
|
|
38
|
+
addBoundsOverlay: function(bounds) {
|
|
39
|
+
if (bounds instanceof L.LatLngBounds) {
|
|
40
|
+
this.overlay.addLayer(L.polygon([
|
|
41
|
+
bounds.getSouthWest(),
|
|
42
|
+
bounds.getSouthEast(),
|
|
43
|
+
bounds.getNorthEast(),
|
|
44
|
+
bounds.getNorthWest()
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Remove bounding box overlay from map.
|
|
51
|
+
*/
|
|
52
|
+
removeBoundsOverlay: function() {
|
|
53
|
+
this.overlay.clearLayers();
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Selects basemap if specified in data options, if not return positron.
|
|
58
|
+
*/
|
|
59
|
+
selectBasemap: function() {
|
|
60
|
+
var _this = this;
|
|
61
|
+
if (_this.data.basemap) {
|
|
62
|
+
return GeoBlacklight.Basemaps[_this.data.basemap];
|
|
63
|
+
} else {
|
|
64
|
+
return GeoBlacklight.Basemaps.positron;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/viewer
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.Oembed = GeoBlacklight.Viewer.extend({
|
|
4
|
+
load: function() {
|
|
5
|
+
var $el = $(this.element);
|
|
6
|
+
$.getJSON(this.data.url, function(data){
|
|
7
|
+
if (data === null){
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
$el.html(data.html);
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*global GeoBlacklight */
|
|
2
|
+
|
|
3
|
+
// base viewer
|
|
4
|
+
GeoBlacklight.Viewer = L.Class.extend({
|
|
5
|
+
options: {},
|
|
6
|
+
|
|
7
|
+
initialize: function(el, options) {
|
|
8
|
+
this.element = el;
|
|
9
|
+
this.data = $(el).data();
|
|
10
|
+
|
|
11
|
+
L.Util.setOptions(this, options);
|
|
12
|
+
|
|
13
|
+
// trigger viewer load functions
|
|
14
|
+
this.load();
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Loads leaflet controls from controls directory.
|
|
19
|
+
**/
|
|
20
|
+
loadControls: function() {
|
|
21
|
+
var _this = this;
|
|
22
|
+
var protocol = this.data.protocol.toUpperCase();
|
|
23
|
+
var options = this.data.leafletOptions;
|
|
24
|
+
|
|
25
|
+
if (!options.VIEWERS) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var viewer = options.VIEWERS[protocol];
|
|
30
|
+
var controls = viewer && viewer.CONTROLS;
|
|
31
|
+
|
|
32
|
+
_this.controlPreload();
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Loop though the GeoBlacklight.Controls hash, and for each control,
|
|
36
|
+
* check to see if it is included in the controls list for the current
|
|
37
|
+
* viewer. If it is, then pass in the viewer object and run the function
|
|
38
|
+
* that adds it to the map.
|
|
39
|
+
**/
|
|
40
|
+
$.each(GeoBlacklight.Controls, function(name, func) {
|
|
41
|
+
if (controls && controls.indexOf(name) > -1) {
|
|
42
|
+
func.call(_this);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Work to do before the controls are loaded.
|
|
49
|
+
**/
|
|
50
|
+
controlPreload: function() {
|
|
51
|
+
return;
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the value of detect retina from application settings.
|
|
56
|
+
**/
|
|
57
|
+
detectRetina: function() {
|
|
58
|
+
var options = this.data.leafletOptions;
|
|
59
|
+
if (options && options.LAYERS) {
|
|
60
|
+
return options.LAYERS.DETECT_RETINA ? options.LAYERS.DETECT_RETINA : false;
|
|
61
|
+
} else {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//= require geoblacklight/viewers/map
|
|
2
|
+
|
|
3
|
+
GeoBlacklight.Viewer.Wms = GeoBlacklight.Viewer.Map.extend({
|
|
4
|
+
|
|
5
|
+
load: function() {
|
|
6
|
+
this.options.bbox = L.bboxToBounds(this.data.mapBbox);
|
|
7
|
+
this.map = L.map(this.element).fitBounds(this.options.bbox);
|
|
8
|
+
this.map.addLayer(this.selectBasemap());
|
|
9
|
+
this.map.addLayer(this.overlay);
|
|
10
|
+
|
|
11
|
+
if (this.data.available) {
|
|
12
|
+
this.addPreviewLayer();
|
|
13
|
+
this.loadControls();
|
|
14
|
+
} else {
|
|
15
|
+
this.addBoundsOverlay(this.options.bbox);
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
addPreviewLayer: function() {
|
|
20
|
+
var _this = this;
|
|
21
|
+
var wmsLayer = L.tileLayer.wms(this.data.url, {
|
|
22
|
+
layers: this.data.layerId,
|
|
23
|
+
format: 'image/png',
|
|
24
|
+
transparent: true,
|
|
25
|
+
tiled: true,
|
|
26
|
+
CRS: 'EPSG:900913',
|
|
27
|
+
opacity: this.options.opacity,
|
|
28
|
+
detectRetina: _this.detectRetina()
|
|
29
|
+
});
|
|
30
|
+
this.overlay.addLayer(wmsLayer);
|
|
31
|
+
this.setupInspection();
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
setupInspection: function() {
|
|
35
|
+
var _this = this;
|
|
36
|
+
this.map.on('click', function(e) {
|
|
37
|
+
spinner = '<tbody class="attribute-table-body"><tr><td colspan="2"><span id="attribute-table"><i class="fa fa-spinner fa-spin fa-align-center"></i></span></td></tr></tbody>';
|
|
38
|
+
$('.attribute-table-body').replaceWith(spinner);
|
|
39
|
+
var wmsoptions = {
|
|
40
|
+
URL: _this.data.url,
|
|
41
|
+
LAYERS: _this.data.layerId,
|
|
42
|
+
BBOX: _this.map.getBounds().toBBoxString(),
|
|
43
|
+
WIDTH: $('#map').width(),
|
|
44
|
+
HEIGHT: $('#map').height(),
|
|
45
|
+
QUERY_LAYERS: _this.data.layerId,
|
|
46
|
+
X: Math.round(e.containerPoint.x),
|
|
47
|
+
Y: Math.round(e.containerPoint.y)
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
$.ajax({
|
|
51
|
+
type: 'POST',
|
|
52
|
+
url: '/wms/handle',
|
|
53
|
+
beforeSend: function(xhr) {
|
|
54
|
+
xhr.setRequestHeader('X-CSRF-Token', Rails.csrfToken());
|
|
55
|
+
},
|
|
56
|
+
data: wmsoptions,
|
|
57
|
+
success: function(data) {
|
|
58
|
+
if (data.hasOwnProperty('error') || data.values.length === 0) {
|
|
59
|
+
$('.attribute-table-body').html('<tbody class="attribute-table-body"><tr><td colspan="2">Could not find that feature</td></tr></tbody>');
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
var html = $('<tbody class="attribute-table-body"></tbody>');
|
|
63
|
+
$.each(data.values, function(i, val) {
|
|
64
|
+
html.append('<tr><td>' + val[0] + '</td><td>' + GeoBlacklight.Util.linkify(val[1]) + '</tr>');
|
|
65
|
+
});
|
|
66
|
+
$('.attribute-table-body').replaceWith(html);
|
|
67
|
+
},
|
|
68
|
+
fail: function(error) {
|
|
69
|
+
console.log(error);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Stylesheet for overriding styles inherited from Blacklight proper
|
|
3
|
+
**/
|
|
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
|
+
|
|
13
|
+
// Begin - Addresses GBL issue #634
|
|
14
|
+
// Emulates font-size for SVG icons and aligns to baseline
|
|
15
|
+
.blacklight-icons {
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
height: $font-size-base;
|
|
18
|
+
width: $font-size-base;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.blacklight-icons svg {
|
|
22
|
+
height: 1rem;
|
|
23
|
+
width: 1rem;
|
|
24
|
+
top: .125rem;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
// End - Addresses GBL issue #634
|
|
28
|
+
|
|
29
|
+
// Begin - Addresses GBL issue #639
|
|
30
|
+
.facet-limit {
|
|
31
|
+
margin-bottom:0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.facets-collapse .card+.card {
|
|
35
|
+
margin-top: 0.5rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.documents-list .document {
|
|
39
|
+
margin-top:0.5rem;
|
|
40
|
+
padding-top:0.5rem;
|
|
41
|
+
}
|
|
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
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
@import 'leaflet';
|
|
13
|
+
@import 'geoblacklight-icons-rails';
|
|
14
|
+
@import 'font-awesome';
|
|
15
|
+
@import 'geoblacklight/styles';
|
|
16
|
+
@import 'modules/facets';
|
|
17
|
+
@import 'modules/mixins';
|
|
18
|
+
@import 'modules/icon-customization';
|
|
19
|
+
@import 'modules/home';
|
|
20
|
+
@import 'modules/index_maps';
|
|
21
|
+
@import 'modules/item';
|
|
22
|
+
@import 'modules/layer_opacity';
|
|
23
|
+
@import 'modules/metadata';
|
|
24
|
+
@import 'modules/metadata_content';
|
|
25
|
+
@import 'modules/metadata_missing';
|
|
26
|
+
@import 'modules/metadata_markup';
|
|
27
|
+
@import 'modules/modal';
|
|
28
|
+
@import 'modules/results';
|
|
29
|
+
@import 'modules/geosearch';
|
|
30
|
+
@import 'modules/search_widgets';
|
|
31
|
+
@import 'modules/sidebar';
|
|
32
|
+
@import 'modules/toolbar';
|
|
33
|
+
@import 'modules/relations';
|
|
34
|
+
@import 'modules/web_services';
|
|
35
|
+
@import 'blacklight_overrides';
|
|
36
|
+
@import 'modules/downloads';
|