Sha256: f348ce957ab749f35ff629537daa3cb2fb6bca05fe8f5443764ce6bdf1ac7fd6
Contents?: true
Size: 733 Bytes
Versions: 4
Compression:
Stored size: 733 Bytes
Contents
module ModsDisplay class RecordComponent < ViewComponent::Base DEFAULT_FIELDS = [ :subTitle, :name, :language, :imprint, :resourceType, :genre, :form, :extent, :geo, :description, :cartographics, :abstract, :contents, :audience, :note, :contact, :collection, :nestedRelatedItem, :relatedItem, :subject, :identifier, :location # :accessCondition ].freeze with_collection_parameter :record def initialize(record:, fields: DEFAULT_FIELDS, html_attributes: {}) super @record = record @fields = fields @html_attributes = html_attributes end end end
Version data entries
4 entries across 4 versions & 1 rubygems