From 58f9e77ef538bf448dac44b27ae46c4ff20aaf5d Mon Sep 17 00:00:00 2001 From: Brian Kelly Date: Tue, 23 Jul 2024 09:57:28 -0500 Subject: [PATCH] Disable SMS tool for Records (#332) --- app/controllers/catalog_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 36b09cb0..f7f33b6b 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -306,7 +306,7 @@ class CatalogController < ApplicationController # rubocop:disable Metrics/ClassL config.add_show_tools_partial(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?) config.add_show_tools_partial(:citation) # config.add_show_tools_partial(:email, callback: :email_action, validator: :validate_email_params) - config.add_show_tools_partial(:sms, if: :render_sms_action?, callback: :sms_action, validator: :validate_sms_params) + # config.add_show_tools_partial(:sms, if: :render_sms_action?, callback: :sms_action, validator: :validate_sms_params) # Custom tools for GeoBlacklight config.add_show_tools_partial :metadata, if: proc { |_context, _config, options| options[:document] && Settings.METADATA_SHOWN.intersect?(options[:document].references.refs.map(&:type).map(&:to_s)) } # rubocop:disable Performance/MapMethodChain: