Skip to content

Commit

Permalink
turn on facets with links
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cain committed Oct 30, 2023
1 parent e7dc6a9 commit afa6a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit afa6a52

Please sign in to comment.