From afa6a52192a27d1e29834c3d2ea0cd807e6eb0a5 Mon Sep 17 00:00:00 2001 From: Michael Cain Date: Mon, 30 Oct 2023 12:17:06 -0500 Subject: [PATCH] turn on facets with links --- app/controllers/catalog_controller.rb | 6 +++--- config/settings.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 36978ceb..65fedaa2 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -101,7 +101,7 @@ class CatalogController < ApplicationController # rubocop:disable Metrics/ClassL config.add_facet_field Settings.FIELDS.IS_PART_OF, label: 'Collection', show: true config.add_facet_field Settings.FIELDS.INDEX_YEAR, label: 'Year', limit: 10 config.add_facet_field Settings.FIELDS.ACCESS_RIGHTS, label: 'Access', limit: 8, item_component: Geoblacklight::IconFacetItemComponent - # config.add_facet_field Settings.FIELDS.RESOURCE_CLASS, label: 'Resource Class', limit: 8 + config.add_facet_field Settings.FIELDS.RESOURCE_CLASS, label: 'Resource Class', limit: 8 config.add_facet_field Settings.FIELDS.RESOURCE_TYPE, label: 'Data Type', limit: 8 config.add_facet_field Settings.FIELDS.FORMAT, label: 'File Format', limit: 8 # config.add_facet_field Settings.FIELDS.THEME, label: 'Theme', limit: 8 @@ -160,8 +160,8 @@ class CatalogController < ApplicationController # rubocop:disable Metrics/ClassL config.add_show_field Settings.FIELDS.ALTERNATIVE_TITLE, label: 'Alternative Title', itemprop: 'alt_title' config.add_show_field Settings.FIELDS.DESCRIPTION, label: 'Description', itemprop: 'description', helper_method: :render_value_as_truncate_abstract - config.add_show_field Settings.FIELDS.CREATOR, label: 'Creator', itemprop: 'creator' - config.add_show_field Settings.FIELDS.PUBLISHER, label: 'Publisher', itemprop: 'publisher' + config.add_show_field Settings.FIELDS.CREATOR, label: 'Creator', itemprop: 'creator', link_to_facet: true + config.add_show_field Settings.FIELDS.PUBLISHER, label: 'Publisher', itemprop: 'publisher', link_to_facet: true config.add_show_field Settings.FIELDS.PROVIDER, label: 'Provider', link_to_facet: true config.add_show_field Settings.FIELDS.IS_PART_OF, label: 'Collection', link_to_facet: true config.add_show_field Settings.FIELDS.RESOURCE_CLASS, label: 'Resource Class', itemprop: 'class' diff --git a/config/settings.yml b/config/settings.yml index 4279934e..6b76c0cb 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -8,7 +8,7 @@ CARTO_ONECLICK_LINK: 'http://oneclick.carto.com/' ARCGIS_BASE_URL: 'https://www.arcgis.com/home/webmap/viewer.html' # Download path can be configured using this setting -DOWNLOAD_PATH: "/blacklight_data/cache/downloads" +#DOWNLOAD_PATH: "/blacklight_data/cache/downloads" PROXY_URL: 'http://proxy.library.nyu.edu/login?url=https://maps-restricted.geo.nyu.edu' RESTRICTED_URL: 'https://maps-restricted.geo.nyu.edu/geoserver/wms'