Sha256: 9fa40fc2d6dbeae94016bcc678ae6babe4aa8f177df684e233c0a6d71dff5d9a

Contents?: true

Size: 374 Bytes

Versions: 52

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Helper module for the Translations admin UI
  module TranslationsHelper
    def non_custom_metadata_fields
      custom_field_keys = current_exhibit.custom_fields.pluck(:field)

      current_exhibit.blacklight_config.show_fields.reject do |key, _|
        custom_field_keys.include?(key)
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
blacklight-spotlight-3.5.0.4 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.5.0.3 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.5.0.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.5.0.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.5.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.4.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.4 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.3 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.2.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.2.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.4.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.3.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.2.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.1.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.0.3 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.0.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.0.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.0.0 app/helpers/spotlight/translations_helper.rb