Sha256: 68d5d8c9f6168174a38bed3812a037777c6cad7f36ff5b2119c309efc58c8417
Contents?: true
Size: 1.5 KB
Versions: 24
Compression:
Stored size: 1.5 KB
Contents
# -*- encoding : utf-8 -*- # # A SolrDocument is a wrapper of a raw Solr document result. # class SolrDocument include Blacklight::Solr::Document # self.unique_key = 'id' # The following shows how to setup this blacklight document to display marc documents # extension_parameters[:marc_source_field] = :marc_display # extension_parameters[:marc_format_type] = :marcxml # use_extension( Blacklight::Solr::Document::Marc) do |document| # document.key?( :marc_display ) # end # Email uses the semantic field mappings below to generate the body of an email. SolrDocument.use_extension( Blacklight::Solr::Document::Email ) # SMS uses the semantic field mappings below to generate the body of an SMS email. SolrDocument.use_extension( Blacklight::Solr::Document::Sms ) # DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document # Semantic mappings of solr stored fields. Fields may be multi or # single valued. See Blacklight::Solr::Document::ExtendableClassMethods#field_semantics # and Blacklight::Solr::Document#to_semantic_values # Recommendation: Use field names from Dublin Core use_extension( Blacklight::Solr::Document::DublinCore) field_semantics.merge!( :title => "title_display", :author => "author_display", :language => "language_facet", :format => "format" ) include Ddr::Models::SolrDocument end
Version data entries
24 entries across 24 versions & 1 rubygems