Skip to content

Commit

Permalink
add format
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Sep 10, 2024
1 parent 4e9420b commit 98f6990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/concerns/spot/core_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ module CoreMetadata
index.as :stored_searchable
end

property :format, predicate: ::RDF::Vocab::DC.format do |index|
index.as :stored_searchable, :facetable
end

# Both standard and local identifiers. Values should have an prefix declaring the source.
# @see {Spot::Identifier}
property :identifier, predicate: ::RDF::Vocab::DC.identifier do |index|
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/spot/solr_document_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module SolrDocumentAttributes
attribute :creator, ::Blacklight::Types::Array, 'creator_tesim'
attribute :description, ::Blacklight::Types::Array, 'description_tesim'
attribute :identifier, ::Blacklight::Types::Array, 'identifier_ssim'
attribute :format, ::Blacklight::Types::Array, 'format_ssim'
attribute :keyword, ::Blacklight::Types::Array, 'keyword_tesim'
attribute :language, ::Blacklight::Types::Array, 'language_ssim'
attribute :language_label, ::Blacklight::Types::Array, 'language_label_ssim'
Expand Down

0 comments on commit 98f6990

Please sign in to comment.