Sha256: d22c2f18060b93410b4ed8e0a5ad4ad75979d9f8317875ce38cd096ad2555878
Contents?: true
Size: 517 Bytes
Versions: 66
Compression:
Stored size: 517 Bytes
Contents
# Methods added to this helper will be available to all templates in the application. module Cul::Scv::Hydra::Controllers::Helpers module ApplicationHelperBehavior def load_dc_document_from_solr(doc) pid = doc[:id] ? doc[:id] : doc[:id.to_s] result = pid ? DcDocument.load_instance_from_solr(pid,doc) : nil result end def get_aggregate_count(doc) count = 0 obj = load_dc_document_from_solr(doc) count += obj.parts.length unless obj.nil? count end end end
Version data entries
66 entries across 66 versions & 1 rubygems