geoblacklight 5.4.0 → 6.0.0.pre.alpha.1
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 +4 -4
- data/.engine_cart.yml +14 -0
- data/.github/workflows/ruby.yml +24 -25
- data/.gitignore +0 -9
- data/.prettierignore +4 -0
- data/.prettierrc +5 -0
- data/CONTRIBUTING.md +2 -4
- data/Gemfile +4 -2
- data/README.md +4 -4
- data/Rakefile +0 -22
- data/app/assets/stylesheets/geoblacklight/global.css +7 -0
- data/app/assets/stylesheets/geoblacklight/home.css +22 -0
- data/app/assets/stylesheets/geoblacklight/index_maps.css +36 -0
- data/app/assets/stylesheets/geoblacklight/record.css +39 -0
- data/app/assets/stylesheets/geoblacklight/search.css +56 -0
- data/app/assets/stylesheets/geoblacklight/viewers.css +50 -0
- data/app/assets/stylesheets/geoblacklight.css +14 -0
- data/app/components/blacklight/icons/web_services_component.rb +3 -3
- data/app/components/geoblacklight/accordion_component.html.erb +3 -3
- data/app/components/geoblacklight/accordion_component.rb +4 -0
- data/app/components/geoblacklight/arcgis_component.html.erb +1 -1
- data/app/components/geoblacklight/arcgis_component.rb +1 -1
- data/app/components/geoblacklight/attribute_table_component.html.erb +3 -3
- data/app/components/geoblacklight/data_dictionary_download_component.html.erb +1 -1
- data/app/components/geoblacklight/display_note_component.html.erb +1 -1
- data/app/components/geoblacklight/display_note_component.rb +2 -1
- data/app/components/geoblacklight/document/citation_component.html.erb +1 -1
- data/app/components/geoblacklight/document/sidebar_component.html.erb +1 -4
- data/app/components/geoblacklight/document/sidebar_component.rb +0 -8
- data/app/components/geoblacklight/document_component.html.erb +1 -2
- data/app/components/geoblacklight/download_links_component.html.erb +0 -3
- data/app/components/geoblacklight/download_links_component.rb +1 -1
- data/app/components/geoblacklight/header_component.html.erb +4 -4
- data/app/components/geoblacklight/header_icons_component.rb +4 -2
- data/app/components/geoblacklight/homepage_feature_facet_component.html.erb +3 -7
- data/app/components/geoblacklight/homepage_feature_facet_component.rb +12 -3
- data/app/components/geoblacklight/iiif_drag_drop_component.html.erb +2 -2
- data/app/components/geoblacklight/iiif_drag_drop_component.rb +2 -2
- data/app/components/geoblacklight/index_map_inspect_component.html.erb +3 -3
- data/app/components/geoblacklight/index_map_legend_component.html.erb +7 -7
- data/app/components/geoblacklight/index_map_legend_component.rb +7 -0
- data/app/components/geoblacklight/item_map_viewer_component.rb +9 -5
- data/app/components/geoblacklight/location_leaflet_map_component.rb +28 -15
- data/app/components/geoblacklight/relations_component.html.erb +2 -2
- data/app/components/geoblacklight/search_result_component.html.erb +28 -26
- data/app/components/geoblacklight/search_result_component.rb +2 -2
- data/app/components/geoblacklight/static_map_component.rb +6 -5
- data/app/components/geoblacklight/viewer_help_text_component.html.erb +1 -1
- data/app/components/geoblacklight/viewer_help_text_component.rb +1 -1
- data/app/components/geoblacklight/web_services_component.html.erb +1 -1
- data/app/components/geoblacklight/web_services_component.rb +1 -1
- data/app/components/geoblacklight/web_services_default_component.html.erb +6 -6
- data/app/components/geoblacklight/web_services_link_component.rb +12 -9
- data/app/components/geoblacklight/web_services_wfs_component.html.erb +4 -4
- data/app/components/geoblacklight/web_services_wms_component.html.erb +4 -4
- data/app/controllers/download_controller.rb +0 -7
- data/app/controllers/relation_controller.rb +1 -1
- data/app/controllers/wms_controller.rb +1 -1
- data/app/helpers/geoblacklight_helper.rb +0 -43
- data/app/javascript/geoblacklight/controllers/clipboard_controller.js +6 -6
- data/app/javascript/geoblacklight/controllers/downloads_controller.js +37 -29
- data/app/javascript/geoblacklight/controllers/leaflet_viewer_controller.js +110 -134
- data/app/javascript/geoblacklight/controllers/oembed_viewer_controller.js +5 -5
- data/app/javascript/geoblacklight/controllers/openlayers_viewer_controller.js +27 -61
- data/app/javascript/geoblacklight/controllers/search_results_controller.js +18 -18
- data/app/javascript/geoblacklight/core.js +35 -36
- data/app/javascript/geoblacklight/index.js +10 -10
- data/app/javascript/geoblacklight/initializers/metadata_download.js +23 -25
- data/app/javascript/geoblacklight/initializers/popovers.js +4 -4
- data/app/javascript/geoblacklight/initializers/relations.js +20 -20
- data/app/javascript/geoblacklight/initializers/tooltips.js +19 -23
- data/app/javascript/geoblacklight/initializers/truncation.js +18 -18
- data/app/javascript/geoblacklight/leaflet/basemaps.js +34 -3
- data/app/javascript/geoblacklight/leaflet/constants.js +7 -7
- data/app/javascript/geoblacklight/leaflet/controls/geosearch.js +80 -74
- data/app/javascript/geoblacklight/leaflet/controls/layer_opacity.js +74 -73
- data/app/javascript/geoblacklight/leaflet/controls/sidebar.js +31 -29
- data/app/javascript/geoblacklight/leaflet/controls/sleep.js +54 -51
- data/app/javascript/geoblacklight/leaflet/inspection.js +79 -71
- data/app/javascript/geoblacklight/leaflet/layer_index_map.js +74 -69
- data/app/javascript/geoblacklight/leaflet/layer_wmts.js +14 -16
- data/app/javascript/geoblacklight/leaflet/layers.js +59 -66
- data/app/javascript/geoblacklight/leaflet/utils.js +37 -43
- data/app/javascript/geoblacklight/openlayers/basemaps.js +43 -15
- data/app/javascript/geoblacklight/openlayers/inspection.js +23 -23
- data/app/javascript/geoblacklight/openlayers/layers.js +12 -12
- data/app/models/concerns/geoblacklight/bbox_filter_query.rb +7 -9
- data/app/models/concerns/geoblacklight/solr_document.rb +17 -57
- data/app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb +3 -3
- data/app/views/catalog/_document_split.html.erb +3 -3
- data/app/views/catalog/_home_text.html.erb +22 -14
- data/app/views/catalog/_metadata.html.erb +1 -4
- data/app/views/catalog/_relations_container.html.erb +1 -1
- data/app/views/catalog/index.html.erb +0 -1
- data/app/views/catalog/metadata/_markup.html.erb +1 -2
- data/app/views/catalog/metadata/_missing.html.erb +2 -2
- data/app/views/catalog/web_services.html.erb +1 -1
- data/app/views/relation/index.html.erb +1 -1
- data/app/views/relation/index.json.jbuilder +1 -1
- data/config/initializers/rails_config.rb +0 -3
- data/config/locales/geoblacklight.en.yml +79 -78
- data/geoblacklight.gemspec +3 -4
- data/lib/generators/geoblacklight/assets_generator.rb +35 -26
- data/lib/generators/geoblacklight/install_generator.rb +6 -11
- data/lib/generators/geoblacklight/templates/assets/customizations.css +6 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +102 -77
- data/lib/generators/geoblacklight/templates/settings.yml +97 -132
- data/lib/geoblacklight/configuration/default_settings_builder.rb +18 -0
- data/lib/geoblacklight/configuration/display_note_shown_config.rb +13 -0
- data/lib/geoblacklight/configuration/fields_config.rb +51 -0
- data/lib/geoblacklight/configuration/leaflet_config.rb +73 -0
- data/lib/geoblacklight/configuration/leaflet_layers_config.rb +21 -0
- data/lib/geoblacklight/configuration/leaflet_sleep_config.rb +20 -0
- data/lib/geoblacklight/configuration/legacy_settings_builder.rb +94 -0
- data/lib/geoblacklight/configuration.rb +148 -0
- data/lib/geoblacklight/download.rb +2 -5
- data/lib/geoblacklight/engine.rb +7 -18
- data/lib/geoblacklight/metadata/base.rb +0 -2
- data/lib/geoblacklight/metadata_transformer.rb +0 -2
- data/lib/geoblacklight/references.rb +6 -10
- data/lib/geoblacklight/relation/ancestors.rb +3 -5
- data/lib/geoblacklight/relation/descendants.rb +2 -4
- data/lib/geoblacklight/relation/relation_response.rb +5 -8
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/geoblacklight/wms_layer.rb +3 -3
- data/lib/geoblacklight.rb +5 -15
- data/lib/tasks/geoblacklight.rake +0 -9
- data/package.json +10 -31
- data/schema/geoblacklight-schema-aardvark.json +1 -9
- data/schema/readme.md +3 -4
- data/solr/conf/_rest_managed.json +3 -2
- data/solr/conf/schema.xml +1 -1
- data/solr/conf/solrconfig.xml +10 -10
- data/spec/components/geoblacklight/arcgis_component_spec.rb +6 -6
- data/spec/components/geoblacklight/attribute_table_component_spec.rb +6 -7
- data/spec/components/geoblacklight/citation_component_spec.rb +7 -4
- data/spec/components/geoblacklight/display_note_component_spec.rb +8 -8
- data/spec/components/geoblacklight/document_component_spec.rb +13 -13
- data/spec/components/geoblacklight/download_links_component_spec.rb +17 -14
- data/spec/components/geoblacklight/header_icons_component_spec.rb +6 -11
- data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +22 -30
- data/spec/components/geoblacklight/iiif_drag_drop_component_spec.rb +3 -3
- data/spec/components/geoblacklight/index_map_legend_component_spec.rb +5 -18
- data/spec/components/geoblacklight/item_map_viewer_component_spec.rb +5 -5
- data/spec/components/geoblacklight/login_link_component_spec.rb +4 -5
- data/spec/components/geoblacklight/search_result_component_spec.rb +2 -6
- data/spec/components/geoblacklight/static_map_component_spec.rb +2 -2
- data/spec/components/geoblacklight/viewer_help_text_component_spec.rb +4 -6
- data/spec/components/geoblacklight/web_services_component_spec.rb +11 -10
- data/spec/controllers/catalog_controller_spec.rb +7 -7
- data/spec/controllers/download_controller_spec.rb +1 -1
- data/spec/controllers/relation_controller_spec.rb +1 -1
- data/spec/controllers/wms_controller_spec.rb +1 -1
- data/spec/features/axe_spec.rb +4 -4
- data/spec/features/bookmarks_spec.rb +1 -1
- data/spec/features/citations_spec.rb +1 -1
- data/spec/features/configurable_basemap_spec.rb +1 -69
- data/spec/features/data_dictionary_download_spec.rb +1 -1
- data/spec/features/download_layer_spec.rb +1 -1
- data/spec/features/empty_search_spec.rb +1 -1
- data/spec/features/esri_viewer_spec.rb +1 -1
- data/spec/features/exports_spec.rb +1 -1
- data/spec/features/full_screen_control_spec.rb +3 -10
- data/spec/features/help_text_spec.rb +1 -1
- data/spec/features/home_page_spec.rb +1 -1
- data/spec/features/index_map_spec.rb +3 -3
- data/spec/features/index_view_spec.rb +7 -7
- data/spec/features/layer_inspection_spec.rb +1 -1
- data/spec/features/layer_opacity_spec.rb +1 -1
- data/spec/features/layer_preview_spec.rb +1 -1
- data/spec/features/layer_with_no_references_spec.rb +1 -1
- data/spec/features/linkified_attribute_table_spec.rb +1 -1
- data/spec/features/metadata_panel_spec.rb +1 -1
- data/spec/features/missing_metadata_spec.rb +1 -1
- data/spec/features/multiple_downloads_spec.rb +1 -1
- data/spec/features/oembed_spec.rb +1 -1
- data/spec/features/relations_spec.rb +5 -4
- data/spec/features/saved_searches_spec.rb +1 -1
- data/spec/features/search_bar_spec.rb +1 -1
- data/spec/features/search_results_complex_geometry_spec.rb +1 -1
- data/spec/features/search_results_icons_spec.rb +3 -4
- data/spec/features/search_results_map_spec.rb +1 -1
- data/spec/features/search_results_overlap_ratio_spec.rb +3 -3
- data/spec/features/search_spec.rb +1 -1
- data/spec/features/show_page_download_spec.rb +1 -1
- data/spec/features/show_page_metadata_spec.rb +2 -2
- data/spec/features/show_page_sidebar_static_map_spec.rb +1 -1
- data/spec/features/sms_spec.rb +1 -1
- data/spec/features/suppressed_records_spec.rb +1 -1
- data/spec/features/tilejson_spec.rb +1 -1
- data/spec/features/tms_spec.rb +1 -1
- data/spec/features/web_services_modal_spec.rb +1 -1
- data/spec/features/wmts_spec.rb +1 -1
- data/spec/features/xyz_spec.rb +1 -1
- data/spec/fixtures/manifests/tilejson.json +10 -19
- data/spec/fixtures/metadata/fgdc.html +1 -1
- data/spec/fixtures/metadata/iso.html +1 -1
- data/spec/fixtures/solr_documents/README.md +0 -1
- data/spec/fixtures/solr_documents/actual-papermap1.json +9 -28
- data/spec/fixtures/solr_documents/actual-point1.json +12 -39
- data/spec/fixtures/solr_documents/actual-polygon1.json +10 -30
- data/spec/fixtures/solr_documents/actual-raster1.json +14 -46
- data/spec/fixtures/solr_documents/all-relationships.json +12 -36
- data/spec/fixtures/solr_documents/b1g_iiif_manifest.json +33 -62
- data/spec/fixtures/solr_documents/b1g_wabash_child_15.json +13 -40
- data/spec/fixtures/solr_documents/b1g_wabash_child_16.json +13 -40
- data/spec/fixtures/solr_documents/b1g_wabash_child_17.json +13 -40
- data/spec/fixtures/solr_documents/b1g_wabash_child_18.json +13 -40
- data/spec/fixtures/solr_documents/b1g_wabash_parent.json +13 -40
- data/spec/fixtures/solr_documents/baruch_ancestor1.json +13 -40
- data/spec/fixtures/solr_documents/baruch_ancestor2.json +13 -40
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +14 -46
- data/spec/fixtures/solr_documents/bbox-spans-180.json +7 -21
- data/spec/fixtures/solr_documents/complex-geom.json +11 -37
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +12 -37
- data/spec/fixtures/solr_documents/display-note.json +11 -33
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +13 -39
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +13 -40
- data/spec/fixtures/solr_documents/esri-feature-layer.json +13 -39
- data/spec/fixtures/solr_documents/esri-image-map-layer.json +13 -40
- data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +16 -54
- data/spec/fixtures/solr_documents/esri-wms-layer.json +12 -36
- data/spec/fixtures/solr_documents/harvard_raster.json +12 -37
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +9 -27
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +12 -41
- data/spec/fixtures/solr_documents/index-map-polygon.json +12 -41
- data/spec/fixtures/solr_documents/index-map-stanford.json +14 -45
- data/spec/fixtures/solr_documents/index-map-v1-complex.json +13 -38
- data/spec/fixtures/solr_documents/index_map_point.json +13 -42
- data/spec/fixtures/solr_documents/metadata_no_geom.json +4 -14
- data/spec/fixtures/solr_documents/metadata_no_provider.json +8 -25
- data/spec/fixtures/solr_documents/multiple-downloads.json +6 -18
- data/spec/fixtures/solr_documents/no_locn_geometry.json +4 -12
- data/spec/fixtures/solr_documents/no_spatial.json +4 -12
- data/spec/fixtures/solr_documents/oembed.json +8 -25
- data/spec/fixtures/solr_documents/princeton-child1.json +9 -29
- data/spec/fixtures/solr_documents/princeton-child2.json +9 -29
- data/spec/fixtures/solr_documents/princeton-child3.json +9 -29
- data/spec/fixtures/solr_documents/princeton-child4.json +9 -29
- data/spec/fixtures/solr_documents/princeton-parent.json +10 -33
- data/spec/fixtures/solr_documents/public_cog_princeton.json +9 -27
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +13 -43
- data/spec/fixtures/solr_documents/public_pmtiles_princeton.json +29 -39
- data/spec/fixtures/solr_documents/public_polygon_mit.json +9 -30
- data/spec/fixtures/solr_documents/restricted-line.json +14 -47
- data/spec/fixtures/solr_documents/the-related-record.json +4 -12
- data/spec/fixtures/solr_documents/tilejson.json +23 -46
- data/spec/fixtures/solr_documents/tms.json +7 -21
- data/spec/fixtures/solr_documents/umn_metro_result1.json +13 -41
- data/spec/fixtures/solr_documents/umn_state_result1.json +13 -39
- data/spec/fixtures/solr_documents/umn_state_result2.json +13 -39
- data/spec/fixtures/solr_documents/uva_slug_colon.json +10 -30
- data/spec/fixtures/solr_documents/wmts-multiple.json +23 -39
- data/spec/fixtures/solr_documents/wmts-single-layer.json +23 -46
- data/spec/fixtures/solr_documents/xyz.json +10 -33
- data/spec/helpers/geoblacklight_helper_spec.rb +5 -50
- data/spec/javascripts/geoblacklight_spec.js +10 -10
- data/spec/javascripts/metadata_download_button_spec.js +14 -13
- data/spec/lib/geoblacklight/bounding_box_spec.rb +1 -1
- data/spec/lib/geoblacklight/configuration/default_settings_builder_spec.rb +9 -0
- data/spec/lib/geoblacklight/configuration_spec.rb +13 -0
- data/spec/lib/geoblacklight/download/csv_download_spec.rb +2 -2
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +2 -2
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +5 -2
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +2 -2
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +2 -2
- data/spec/lib/geoblacklight/download_spec.rb +15 -6
- data/spec/lib/geoblacklight/geometry_spec.rb +1 -1
- data/spec/lib/geoblacklight/item_viewer_spec.rb +2 -2
- data/spec/lib/geoblacklight/metadata/base_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata/html_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_transformer_spec.rb +1 -1
- data/spec/lib/geoblacklight/reference_spec.rb +1 -1
- data/spec/lib/geoblacklight/references_spec.rb +6 -4
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +10 -4
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +9 -4
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +12 -15
- data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +1 -1
- data/spec/lib/geoblacklight/wms_layer_spec.rb +1 -1
- data/spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb +20 -11
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +1 -1
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +1 -1
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +1 -1
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +4 -39
- data/spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb +2 -2
- data/spec/routing/catalog_routing_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -16
- data/spec/tasks/geoblacklight_spec.rb +1 -1
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +4 -3
- metadata +40 -194
- data/Procfile.dev +0 -3
- data/app/assets/stylesheets/geoblacklight/geoblacklight.scss +0 -2
- data/app/assets/stylesheets/geoblacklight/modules/_base.scss +0 -31
- data/app/assets/stylesheets/geoblacklight/modules/_blacklight_overrides.scss +0 -40
- data/app/assets/stylesheets/geoblacklight/modules/_styles.scss +0 -9
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +0 -62
- data/app/assets/stylesheets/geoblacklight/modules/geosearch.scss +0 -23
- data/app/assets/stylesheets/geoblacklight/modules/home.scss +0 -13
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +0 -116
- data/app/assets/stylesheets/geoblacklight/modules/index_maps.scss +0 -61
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +0 -78
- data/app/assets/stylesheets/geoblacklight/modules/layer_opacity.scss +0 -87
- data/app/assets/stylesheets/geoblacklight/modules/leaflet.scss +0 -4
- data/app/assets/stylesheets/geoblacklight/modules/metadata.scss +0 -31
- data/app/assets/stylesheets/geoblacklight/modules/metadata_content.scss +0 -43
- data/app/assets/stylesheets/geoblacklight/modules/metadata_markup.scss +0 -9
- data/app/assets/stylesheets/geoblacklight/modules/metadata_missing.scss +0 -7
- data/app/assets/stylesheets/geoblacklight/modules/modal.scss +0 -5
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +0 -60
- data/app/assets/stylesheets/geoblacklight/modules/search_widgets.scss +0 -5
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +0 -42
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +0 -34
- data/app/assets/stylesheets/geoblacklight/modules/web_services.scss +0 -5
- data/app/components/blacklight/icons/american_geographical_society_library_uwm_libraries_component.rb +0 -46
- data/app/components/blacklight/icons/arizona_component.rb +0 -24
- data/app/components/blacklight/icons/baruch_cuny_component.rb +0 -23
- data/app/components/blacklight/icons/bookmark_component.rb +0 -23
- data/app/components/blacklight/icons/circle_info_solid_component.rb +0 -23
- data/app/components/blacklight/icons/columbia_component.rb +0 -23
- data/app/components/blacklight/icons/cornell_component.rb +0 -25
- data/app/components/blacklight/icons/george_mason_component.rb +0 -24
- data/app/components/blacklight/icons/harvard_component.rb +0 -23
- data/app/components/blacklight/icons/indiana_component.rb +0 -23
- data/app/components/blacklight/icons/lewis_clark_component.rb +0 -25
- data/app/components/blacklight/icons/massgis_component.rb +0 -23
- data/app/components/blacklight/icons/michigan_state_university_component.rb +0 -25
- data/app/components/blacklight/icons/mit_component.rb +0 -23
- data/app/components/blacklight/icons/northwestern_university_component.rb +0 -24
- data/app/components/blacklight/icons/nyu_component.rb +0 -26
- data/app/components/blacklight/icons/pennsylvania_state_university_component.rb +0 -25
- data/app/components/blacklight/icons/princeton_component.rb +0 -23
- data/app/components/blacklight/icons/purdue_university_component.rb +0 -25
- data/app/components/blacklight/icons/rutgers_component.rb +0 -25
- data/app/components/blacklight/icons/sms_component.rb +0 -23
- data/app/components/blacklight/icons/stanford_component.rb +0 -23
- data/app/components/blacklight/icons/texas_component.rb +0 -23
- data/app/components/blacklight/icons/the_ohio_state_university_component.rb +0 -26
- data/app/components/blacklight/icons/tufts_component.rb +0 -23
- data/app/components/blacklight/icons/ucla_component.rb +0 -23
- data/app/components/blacklight/icons/university_of_california_berkeley_component.rb +0 -24
- data/app/components/blacklight/icons/university_of_chicago_component.rb +0 -25
- data/app/components/blacklight/icons/university_of_colorado_boulder_component.rb +0 -26
- data/app/components/blacklight/icons/university_of_illinois_urbana_champaign_component.rb +0 -25
- data/app/components/blacklight/icons/university_of_iowa_component.rb +0 -24
- data/app/components/blacklight/icons/university_of_maryland_component.rb +0 -24
- data/app/components/blacklight/icons/university_of_michigan_component.rb +0 -24
- data/app/components/blacklight/icons/university_of_minnesota_component.rb +0 -24
- data/app/components/blacklight/icons/university_of_nebraska_lincoln_component.rb +0 -27
- data/app/components/blacklight/icons/university_of_wisconsin_madison_component.rb +0 -24
- data/app/components/blacklight/icons/uva_component.rb +0 -23
- data/app/components/geoblacklight/icon_facet_item_component.rb +0 -33
- data/app/components/geoblacklight/web_services_link_component.html.erb +0 -3
- data/bin/vite +0 -29
- data/config/initializers/new_gbl_settings_defaults_4.1.yml +0 -104
- data/lib/generators/geoblacklight/assets/importmap_generator.rb +0 -73
- data/lib/generators/geoblacklight/assets/vite_generator.rb +0 -89
- data/lib/generators/geoblacklight/templates/assets/_customizations.scss +0 -23
- data/lib/generators/geoblacklight/templates/assets/application.js +0 -17
- data/lib/generators/geoblacklight/templates/assets/application.scss +0 -9
- data/lib/generators/geoblacklight/templates/assets/geoblacklight.scss +0 -11
- data/lib/generators/geoblacklight/templates/base.html.erb +0 -46
- data/lib/generators/geoblacklight/templates/vite.config.ts +0 -23
- data/lib/generators/geoblacklight/templates/vite.json +0 -16
- data/lib/geoblacklight/deprecated_configuration.rb +0 -665
- data/schema/geoblacklight-schema-1.0.json +0 -214
- data/solr/conf/xslt/example.xsl +0 -132
- data/solr/conf/xslt/example_atom.xsl +0 -67
- data/solr/conf/xslt/example_rss.xsl +0 -66
- data/solr/conf/xslt/luke.xsl +0 -337
- data/spec/components/blacklight/icons/american_geographical_society_library_uwm_libraries_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/arizona_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/arrow_circle_down_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/baruch_cuny_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/book_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/bookmark_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/cd_rom_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/child_item_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/circle_info_solid_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/citation_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/collection_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/collections_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/columbia_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/cornell_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/datasets_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/dvd_rom_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/email_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/esri_globe_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/fire_solid_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/george_mason_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/globe_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/harvard_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/home_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/iiif_drag_drop_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/image_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/imagery_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/indiana_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/leaf_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/lewis_clark_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/lightbulb_solid_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/line_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/map_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/map_marker_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/maps_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/massgis_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/metadata_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/michigan_state_university_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/mit_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/mixed_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/multilinestring_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/multipoint_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/multipolygon_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/northwestern_university_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/nyu_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/pagelines_brands_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/paper_map_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/parent_item_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/pennsylvania_state_university_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/point_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/polygon_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/polyline_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/princeton_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/public_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/purdue_university_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/raster_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/restricted_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/rutgers_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/sms_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/stanford_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/table_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/tags_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/texas_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/the_ohio_state_university_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/triangle_exclamation_solid_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/tufts_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/ucla_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_california_berkeley_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_chicago_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_colorado_boulder_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_illinois_urbana_champaign_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_iowa_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_maryland_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_michigan_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_minnesota_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_nebraska_lincoln_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/university_of_wisconsin_madison_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/uva_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/web_services_component_spec.rb +0 -15
- data/spec/components/blacklight/icons/websites_component_spec.rb +0 -15
- data/spec/components/geoblacklight/icon_facet_item_component_spec.rb +0 -18
- data/spec/config/initializers/rails_config_spec.rb +0 -16
- data/spec/fixtures/solr_documents/public_direct_download.json +0 -62
- data/spec/lib/geoblacklight/deprecated_configuration_spec.rb +0 -680
- data/spec/solr_config_spec.rb +0 -41
- data/spec/support/backport_test_helpers.rb +0 -47
- data/spec/support/view_component_capybara_test_helpers.rb +0 -8
- data/vite.config.ts +0 -32
- /data/app/assets/images/{blacklight → geoblacklight}/logo.svg +0 -0
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
-
"description": "Schema for GeoBlacklight. See https://opengeometadata.org/docs/gbl-1.0 for more details.",
|
|
4
|
-
"id": "http://geoblacklight.org/v1.0/schema",
|
|
5
|
-
"title": "GeoBlacklight Schema - v1.0",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"layer": {
|
|
8
|
-
"title": "layer",
|
|
9
|
-
"description": "A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bb/099/zb/1450/geoblacklight.json) metadata layer.",
|
|
10
|
-
"type": "object",
|
|
11
|
-
"required": [
|
|
12
|
-
"dc_title_s",
|
|
13
|
-
"dc_identifier_s",
|
|
14
|
-
"dc_rights_s",
|
|
15
|
-
"dct_provenance_s",
|
|
16
|
-
"layer_slug_s",
|
|
17
|
-
"solr_geom"
|
|
18
|
-
],
|
|
19
|
-
"properties": {
|
|
20
|
-
"uuid": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "*DEPRECATED* (use `dc_identifier_s`): Unique identifier for layer that is globally unique.",
|
|
23
|
-
"example": "http://purl.stanford.edu/vr593vj7147"
|
|
24
|
-
},
|
|
25
|
-
"dc_identifier_s": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Unique identifier for layer as a URI. It should be globally unique across all institutions, assumed not to be end-user visible, and is usually of the form `http://institution/id`. See https://opengeometadata.org/docs/gbl-1.0#identifier for more detailed documentation.",
|
|
28
|
-
"example": "http://purl.stanford.edu/vr593vj7147"
|
|
29
|
-
},
|
|
30
|
-
"dc_title_s": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "Title for the layer.",
|
|
33
|
-
"example": "My Title"
|
|
34
|
-
},
|
|
35
|
-
"dc_description_s": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "Description for the layer. *Optional*",
|
|
38
|
-
"example": "My Description"
|
|
39
|
-
},
|
|
40
|
-
"dc_rights_s": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": [
|
|
43
|
-
"Public",
|
|
44
|
-
"Restricted"
|
|
45
|
-
],
|
|
46
|
-
"description": "Access rights for the layer."
|
|
47
|
-
},
|
|
48
|
-
"dct_provenance_s": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Institution who holds the layer.",
|
|
51
|
-
"example": "Stanford"
|
|
52
|
-
},
|
|
53
|
-
"dct_references_s": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"description": "External resources that are available for the layer. The value is a JSON hash where each key is a URI for the protocol or format, and the value is the URL to the external resource. See `dct_references_s` [detailed documentation](http://geoblacklight.org/tutorial/2015/02/09/geoblacklight-overview.html). *Optional*",
|
|
56
|
-
"pattern": "\\{.*\\}",
|
|
57
|
-
"example": "{ ... }"
|
|
58
|
-
},
|
|
59
|
-
"georss_box_s": {
|
|
60
|
-
"type": "string",
|
|
61
|
-
"description": "*DEPRECATED* (use `solr_geom`): Bounding box for the layer, as maximum values for S W N E.",
|
|
62
|
-
"example": "12.6 -119.4 19.9 84.8"
|
|
63
|
-
},
|
|
64
|
-
"layer_id_s": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "The complete identifier for the layer via WMS/WFS/WCS protocol. *Optional*",
|
|
67
|
-
"example": "druid:vr593vj7147"
|
|
68
|
-
},
|
|
69
|
-
"layer_geom_type_s": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"enum": [
|
|
72
|
-
"Point",
|
|
73
|
-
"Line",
|
|
74
|
-
"Polygon",
|
|
75
|
-
"Raster",
|
|
76
|
-
"Scanned Map",
|
|
77
|
-
"Image",
|
|
78
|
-
"Mixed"
|
|
79
|
-
],
|
|
80
|
-
"description": "Geometry type for layer data, using controlled vocabulary. *Optional*"
|
|
81
|
-
},
|
|
82
|
-
"layer_modified_dt": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"format": "date-time",
|
|
85
|
-
"description": "Last modification date for the metadata record, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional*"
|
|
86
|
-
},
|
|
87
|
-
"layer_slug_s": {
|
|
88
|
-
"type": "string",
|
|
89
|
-
"description": "Identifies a layer in human-readable keywords. Note this value is visible to the user, and used for Permalinks. The value should be alpha-numeric characters separated by dashes, and is typically of the form `institution-keyword1-keyword2`. It should also be globally unique across all institutions in *your* GeoBlacklight index. See https://opengeometadata.org/docs/gbl-1.0#slug for more detailed documentation.",
|
|
90
|
-
"pattern": "^[-a-zA-Z0-9]+$",
|
|
91
|
-
"example": "stanford-andhra-pradesh-village-boundaries"
|
|
92
|
-
},
|
|
93
|
-
"solr_geom": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"pattern": "ENVELOPE(.*,.*,.*,.*)",
|
|
96
|
-
"description": "Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. Note that this field is indexed as a Solr spatial (RPT) field.",
|
|
97
|
-
"example": "ENVELOPE(76.76, 84.76, 19.91, 12.62)"
|
|
98
|
-
},
|
|
99
|
-
"solr_year_i": {
|
|
100
|
-
"type": "integer",
|
|
101
|
-
"description": "*DEPRECATED* (only used by the Blacklight range plugin, not core GeoBlacklight, and generally you want a multi-valued field here): *Derived from* `dct_temporal_sm`. Year for which layer is valid and only a single value. Note that this field is indexed as a Solr numeric field.",
|
|
102
|
-
"example": "1989"
|
|
103
|
-
},
|
|
104
|
-
"dc_creator_sm": {
|
|
105
|
-
"type": "array",
|
|
106
|
-
"items": {
|
|
107
|
-
"type": "string"
|
|
108
|
-
},
|
|
109
|
-
"description": "Author(s) of the layer. *Optional*",
|
|
110
|
-
"example": "George Washington, Thomas Jefferson"
|
|
111
|
-
},
|
|
112
|
-
"dc_format_s": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"description": "File format for the layer, ideally using a controlled vocabulary. *Optional*",
|
|
115
|
-
"example": "Shapefile, GeoTIFF, ArcGRID"
|
|
116
|
-
},
|
|
117
|
-
"dc_language_s": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"description": "Language for the layer. *Optional*. Note that future versions of the schema may make this a multi-valued field.",
|
|
120
|
-
"example": "English"
|
|
121
|
-
},
|
|
122
|
-
"dc_publisher_s": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"description": "Publisher of the layer. *Optional*",
|
|
125
|
-
"example": "ML InfoMap"
|
|
126
|
-
},
|
|
127
|
-
"dc_subject_sm": {
|
|
128
|
-
"type": "array",
|
|
129
|
-
"items": {
|
|
130
|
-
"type": "string"
|
|
131
|
-
},
|
|
132
|
-
"description": "Subjects for the layer, preferrably in a controlled vocabulary. *Optional*",
|
|
133
|
-
"example": "Census, Human settlements"
|
|
134
|
-
},
|
|
135
|
-
"dc_type_s": {
|
|
136
|
-
"type": "string",
|
|
137
|
-
"enum": [
|
|
138
|
-
"Dataset",
|
|
139
|
-
"Image",
|
|
140
|
-
"PhysicalObject"
|
|
141
|
-
],
|
|
142
|
-
"description": "Resource type of the layer, using DCMI Type Vocabulary, usually a `Dataset`. *Optional*"
|
|
143
|
-
},
|
|
144
|
-
"dct_spatial_sm": {
|
|
145
|
-
"type": "array",
|
|
146
|
-
"items": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
},
|
|
149
|
-
"description": "Spatial coverage and place names for the layer, preferrably in a controlled vocabulary. *Optional*",
|
|
150
|
-
"example": "Paris, San Francisco"
|
|
151
|
-
},
|
|
152
|
-
"dct_temporal_sm": {
|
|
153
|
-
"type": "array",
|
|
154
|
-
"items": {
|
|
155
|
-
"type": "string"
|
|
156
|
-
},
|
|
157
|
-
"description": "Temporal coverage for the layer, typically years or dates. Note that this field is not in a specific date format. *Optional*",
|
|
158
|
-
"example": "1989, circa 2010, 2007-2009"
|
|
159
|
-
},
|
|
160
|
-
"dct_issued_dt": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"format": "date-time",
|
|
163
|
-
"description": "Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional*"
|
|
164
|
-
},
|
|
165
|
-
"dct_isPartOf_sm": {
|
|
166
|
-
"type": "array",
|
|
167
|
-
"items": {
|
|
168
|
-
"type": "string"
|
|
169
|
-
},
|
|
170
|
-
"description": "Holding entity for the layer, such as the title of a collection. *Optional*",
|
|
171
|
-
"example": "Village Maps of India"
|
|
172
|
-
},
|
|
173
|
-
"georss_point_s": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"description": "*DEPRECATED* (use `georss_box_s`): Point representation for layer as y, x - i.e., centroid",
|
|
176
|
-
"example": "12.6 -119.4"
|
|
177
|
-
},
|
|
178
|
-
"dc_relation_sm": {
|
|
179
|
-
"type": "array",
|
|
180
|
-
"items": {
|
|
181
|
-
"type": "string"
|
|
182
|
-
},
|
|
183
|
-
"description": "*DEPRECATED* (use `dct_isPartOf_sm`). A reference to a related resource for this layer. *Optional*",
|
|
184
|
-
"example": "http://purl.stanford.edu/vr593vj7147"
|
|
185
|
-
},
|
|
186
|
-
"dc_source_sm": {
|
|
187
|
-
"type": "array",
|
|
188
|
-
"items": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
},
|
|
191
|
-
"description": "The identity of a layer from which this layer's data was derived. *Optional*",
|
|
192
|
-
"example": "stanford-vr593vj7147"
|
|
193
|
-
},
|
|
194
|
-
"geoblacklight_version": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"description": "The version of the GeoBlacklight Schema to which this metadata record conforms.",
|
|
197
|
-
"enum": [
|
|
198
|
-
"1.0"
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"anyOf": [
|
|
205
|
-
{
|
|
206
|
-
"$ref": "#/definitions/layer"
|
|
207
|
-
}, {
|
|
208
|
-
"type": "array",
|
|
209
|
-
"items": {
|
|
210
|
-
"$ref": "#/definitions/layer"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}
|
data/solr/conf/xslt/example.xsl
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
|
-
|
|
3
|
-
<!--
|
|
4
|
-
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
6
|
-
* this work for additional information regarding copyright ownership.
|
|
7
|
-
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
8
|
-
* (the "License"); you may not use this file except in compliance with
|
|
9
|
-
* the License. You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
<!--
|
|
21
|
-
Simple transform of Solr query results to HTML
|
|
22
|
-
-->
|
|
23
|
-
<xsl:stylesheet version='1.0'
|
|
24
|
-
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
|
25
|
-
>
|
|
26
|
-
|
|
27
|
-
<xsl:output media-type="text/html; charset=UTF-8" encoding="UTF-8"/>
|
|
28
|
-
|
|
29
|
-
<xsl:variable name="title" select="concat('Solr search results (',response/result/@numFound,' documents)')"/>
|
|
30
|
-
|
|
31
|
-
<xsl:template match='/'>
|
|
32
|
-
<html>
|
|
33
|
-
<head>
|
|
34
|
-
<title><xsl:value-of select="$title"/></title>
|
|
35
|
-
<xsl:call-template name="css"/>
|
|
36
|
-
</head>
|
|
37
|
-
<body>
|
|
38
|
-
<h1><xsl:value-of select="$title"/></h1>
|
|
39
|
-
<div class="note">
|
|
40
|
-
This has been formatted by the sample "example.xsl" transform -
|
|
41
|
-
use your own XSLT to get a nicer page
|
|
42
|
-
</div>
|
|
43
|
-
<xsl:apply-templates select="response/result/doc"/>
|
|
44
|
-
</body>
|
|
45
|
-
</html>
|
|
46
|
-
</xsl:template>
|
|
47
|
-
|
|
48
|
-
<xsl:template match="doc">
|
|
49
|
-
<xsl:variable name="pos" select="position()"/>
|
|
50
|
-
<div class="doc">
|
|
51
|
-
<table width="100%">
|
|
52
|
-
<xsl:apply-templates>
|
|
53
|
-
<xsl:with-param name="pos"><xsl:value-of select="$pos"/></xsl:with-param>
|
|
54
|
-
</xsl:apply-templates>
|
|
55
|
-
</table>
|
|
56
|
-
</div>
|
|
57
|
-
</xsl:template>
|
|
58
|
-
|
|
59
|
-
<xsl:template match="doc/*[@name='score']" priority="100">
|
|
60
|
-
<xsl:param name="pos"></xsl:param>
|
|
61
|
-
<tr>
|
|
62
|
-
<td class="name">
|
|
63
|
-
<xsl:value-of select="@name"/>
|
|
64
|
-
</td>
|
|
65
|
-
<td class="value">
|
|
66
|
-
<xsl:value-of select="."/>
|
|
67
|
-
|
|
68
|
-
<xsl:if test="boolean(//lst[@name='explain'])">
|
|
69
|
-
<xsl:element name="a">
|
|
70
|
-
<!-- can't allow whitespace here -->
|
|
71
|
-
<xsl:attribute name="href">javascript:toggle("<xsl:value-of select="concat('exp-',$pos)" />");</xsl:attribute>?</xsl:element>
|
|
72
|
-
<br/>
|
|
73
|
-
<xsl:element name="div">
|
|
74
|
-
<xsl:attribute name="class">exp</xsl:attribute>
|
|
75
|
-
<xsl:attribute name="id">
|
|
76
|
-
<xsl:value-of select="concat('exp-',$pos)" />
|
|
77
|
-
</xsl:attribute>
|
|
78
|
-
<xsl:value-of select="//lst[@name='explain']/str[position()=$pos]"/>
|
|
79
|
-
</xsl:element>
|
|
80
|
-
</xsl:if>
|
|
81
|
-
</td>
|
|
82
|
-
</tr>
|
|
83
|
-
</xsl:template>
|
|
84
|
-
|
|
85
|
-
<xsl:template match="doc/arr" priority="100">
|
|
86
|
-
<tr>
|
|
87
|
-
<td class="name">
|
|
88
|
-
<xsl:value-of select="@name"/>
|
|
89
|
-
</td>
|
|
90
|
-
<td class="value">
|
|
91
|
-
<ul>
|
|
92
|
-
<xsl:for-each select="*">
|
|
93
|
-
<li><xsl:value-of select="."/></li>
|
|
94
|
-
</xsl:for-each>
|
|
95
|
-
</ul>
|
|
96
|
-
</td>
|
|
97
|
-
</tr>
|
|
98
|
-
</xsl:template>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<xsl:template match="doc/*">
|
|
102
|
-
<tr>
|
|
103
|
-
<td class="name">
|
|
104
|
-
<xsl:value-of select="@name"/>
|
|
105
|
-
</td>
|
|
106
|
-
<td class="value">
|
|
107
|
-
<xsl:value-of select="."/>
|
|
108
|
-
</td>
|
|
109
|
-
</tr>
|
|
110
|
-
</xsl:template>
|
|
111
|
-
|
|
112
|
-
<xsl:template match="*"/>
|
|
113
|
-
|
|
114
|
-
<xsl:template name="css">
|
|
115
|
-
<script>
|
|
116
|
-
function toggle(id) {
|
|
117
|
-
var obj = document.getElementById(id);
|
|
118
|
-
obj.style.display = (obj.style.display != 'block') ? 'block' : 'none';
|
|
119
|
-
}
|
|
120
|
-
</script>
|
|
121
|
-
<style type="text/css">
|
|
122
|
-
body { font-family: "Lucida Grande", sans-serif }
|
|
123
|
-
td.name { font-style: italic; font-size:80%; }
|
|
124
|
-
td { vertical-align: top; }
|
|
125
|
-
ul { margin: 0px; margin-left: 1em; padding: 0px; }
|
|
126
|
-
.note { font-size:80%; }
|
|
127
|
-
.doc { margin-top: 1em; border-top: solid grey 1px; }
|
|
128
|
-
.exp { display: none; font-family: monospace; white-space: pre; }
|
|
129
|
-
</style>
|
|
130
|
-
</xsl:template>
|
|
131
|
-
|
|
132
|
-
</xsl:stylesheet>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
|
-
|
|
3
|
-
<!--
|
|
4
|
-
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
6
|
-
* this work for additional information regarding copyright ownership.
|
|
7
|
-
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
8
|
-
* (the "License"); you may not use this file except in compliance with
|
|
9
|
-
* the License. You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
<!--
|
|
21
|
-
Simple transform of Solr query results to Atom
|
|
22
|
-
-->
|
|
23
|
-
|
|
24
|
-
<xsl:stylesheet version='1.0'
|
|
25
|
-
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
|
|
26
|
-
|
|
27
|
-
<xsl:output
|
|
28
|
-
method="xml"
|
|
29
|
-
encoding="utf-8"
|
|
30
|
-
media-type="text/xml; charset=UTF-8"
|
|
31
|
-
/>
|
|
32
|
-
|
|
33
|
-
<xsl:template match='/'>
|
|
34
|
-
<xsl:variable name="query" select="response/lst[@name='responseHeader']/lst[@name='params']/str[@name='q']"/>
|
|
35
|
-
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
36
|
-
<title>Example Solr Atom 1.0 Feed</title>
|
|
37
|
-
<subtitle>
|
|
38
|
-
This has been formatted by the sample "example_atom.xsl" transform -
|
|
39
|
-
use your own XSLT to get a nicer Atom feed.
|
|
40
|
-
</subtitle>
|
|
41
|
-
<author>
|
|
42
|
-
<name>Apache Solr</name>
|
|
43
|
-
<email>solr-user@lucene.apache.org</email>
|
|
44
|
-
</author>
|
|
45
|
-
<link rel="self" type="application/atom+xml"
|
|
46
|
-
href="http://localhost:8983/solr/q={$query}&wt=xslt&tr=atom.xsl"/>
|
|
47
|
-
<updated>
|
|
48
|
-
<xsl:value-of select="response/result/doc[position()=1]/date[@name='timestamp']"/>
|
|
49
|
-
</updated>
|
|
50
|
-
<id>tag:localhost,2007:example</id>
|
|
51
|
-
<xsl:apply-templates select="response/result/doc"/>
|
|
52
|
-
</feed>
|
|
53
|
-
</xsl:template>
|
|
54
|
-
|
|
55
|
-
<!-- search results xslt -->
|
|
56
|
-
<xsl:template match="doc">
|
|
57
|
-
<xsl:variable name="id" select="str[@name='id']"/>
|
|
58
|
-
<entry>
|
|
59
|
-
<title><xsl:value-of select="str[@name='name']"/></title>
|
|
60
|
-
<link href="http://localhost:8983/solr/select?q={$id}"/>
|
|
61
|
-
<id>tag:localhost,2007:<xsl:value-of select="$id"/></id>
|
|
62
|
-
<summary><xsl:value-of select="arr[@name='features']"/></summary>
|
|
63
|
-
<updated><xsl:value-of select="date[@name='timestamp']"/></updated>
|
|
64
|
-
</entry>
|
|
65
|
-
</xsl:template>
|
|
66
|
-
|
|
67
|
-
</xsl:stylesheet>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
|
-
|
|
3
|
-
<!--
|
|
4
|
-
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
6
|
-
* this work for additional information regarding copyright ownership.
|
|
7
|
-
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
8
|
-
* (the "License"); you may not use this file except in compliance with
|
|
9
|
-
* the License. You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
<!--
|
|
21
|
-
Simple transform of Solr query results to RSS
|
|
22
|
-
-->
|
|
23
|
-
|
|
24
|
-
<xsl:stylesheet version='1.0'
|
|
25
|
-
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
|
|
26
|
-
|
|
27
|
-
<xsl:output
|
|
28
|
-
method="xml"
|
|
29
|
-
encoding="utf-8"
|
|
30
|
-
media-type="text/xml; charset=UTF-8"
|
|
31
|
-
/>
|
|
32
|
-
<xsl:template match='/'>
|
|
33
|
-
<rss version="2.0">
|
|
34
|
-
<channel>
|
|
35
|
-
<title>Example Solr RSS 2.0 Feed</title>
|
|
36
|
-
<link>http://localhost:8983/solr</link>
|
|
37
|
-
<description>
|
|
38
|
-
This has been formatted by the sample "example_rss.xsl" transform -
|
|
39
|
-
use your own XSLT to get a nicer RSS feed.
|
|
40
|
-
</description>
|
|
41
|
-
<language>en-us</language>
|
|
42
|
-
<docs>http://localhost:8983/solr</docs>
|
|
43
|
-
<xsl:apply-templates select="response/result/doc"/>
|
|
44
|
-
</channel>
|
|
45
|
-
</rss>
|
|
46
|
-
</xsl:template>
|
|
47
|
-
|
|
48
|
-
<!-- search results xslt -->
|
|
49
|
-
<xsl:template match="doc">
|
|
50
|
-
<xsl:variable name="id" select="str[@name='id']"/>
|
|
51
|
-
<xsl:variable name="timestamp" select="date[@name='timestamp']"/>
|
|
52
|
-
<item>
|
|
53
|
-
<title><xsl:value-of select="str[@name='name']"/></title>
|
|
54
|
-
<link>
|
|
55
|
-
http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>
|
|
56
|
-
</link>
|
|
57
|
-
<description>
|
|
58
|
-
<xsl:value-of select="arr[@name='features']"/>
|
|
59
|
-
</description>
|
|
60
|
-
<pubDate><xsl:value-of select="$timestamp"/></pubDate>
|
|
61
|
-
<guid>
|
|
62
|
-
http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>
|
|
63
|
-
</guid>
|
|
64
|
-
</item>
|
|
65
|
-
</xsl:template>
|
|
66
|
-
</xsl:stylesheet>
|