Sha256: 69d01cfcf9000b2e60c5d1394560e4a8230ea5f0649fb7f5e4c6bb2ffc48c03a
Contents?: true
Size: 447 Bytes
Versions: 21
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true # Required json.set! :gbl_mdVersion_s, "BTAA Aardvark" Element.exportable.each do |elm| if document.send(elm.export_value).is_a?(Array) if document.send(elm.export_value).any?(&:present?) json.set! elm.solr_field.to_s.to_sym, document.send(elm.export_value) end else json.set! elm.solr_field.to_s.to_sym, document.send(elm.export_value) unless document.send(elm.export_value).blank? end end
Version data entries
21 entries across 11 versions & 1 rubygems