Sha256: 808d11b7c50e45bce1176f0ff41302e48d21016b7bb3712510cd0d39ce3bc40c

Contents?: true

Size: 332 Bytes

Versions: 24

Compression:

Stored size: 332 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.except(*custom_field_keys)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.5 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.4 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.3 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.3.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.2.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.1.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.1.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.1.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.0.3 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.0.2 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.0.1 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-4.0.0 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.6.0.beta10 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.6.0.beta9 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.6.0.beta8 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.6.0.beta7 app/helpers/spotlight/translations_helper.rb
blacklight-spotlight-3.6.0.beta6 app/helpers/spotlight/translations_helper.rb