Sha256: f62e628f87856a951783148b2511633a268f90ec3ff023f2ec594e204c03f84f

Contents?: true

Size: 361 Bytes

Versions: 24

Compression:

Stored size: 361 Bytes

Contents

module Hydra
  module Collections
    module SolrDocumentBehavior
      def title_or_label
        title || label
      end
    
      def title
        Array(self[Solrizer.solr_name('desc_metadata__title')]).first
      end
  
      def description
        Array(self[Solrizer.solr_name('desc_metadata__description')]).first
      end
      
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hydra-collections-4.0.0.beta2 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.beta1 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-3.0.0.beta2 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-3.0.0.beta1 lib/hydra/collections/solr_document_behavior.rb