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-8.2.0 app/models/concerns/hydra/collections/solr_document_behavior.rb
hydra-collections-8.1.1 app/models/concerns/hydra/collections/solr_document_behavior.rb
hydra-collections-8.1.0 app/models/concerns/hydra/collections/solr_document_behavior.rb
hydra-collections-8.0.0 app/models/concerns/hydra/collections/solr_document_behavior.rb
hydra-collections-7.0.0 app/models/concerns/hydra/collections/solr_document_behavior.rb
hydra-collections-5.0.4 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-6.0.0 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-6.0.0.rc2 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-6.0.0.rc1 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-5.0.3 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-6.0.0.alpha lib/hydra/collections/solr_document_behavior.rb
hydra-collections-5.0.2 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-5.0.1 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-5.0.0 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.rc3 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.rc2 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.rc1 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.beta4 lib/hydra/collections/solr_document_behavior.rb
hydra-collections-4.0.0.beta3 lib/hydra/collections/solr_document_behavior.rb