app/models/dor_harvester.rb
##
# Enumerate the resource, and any collection members, that should be indexed
# into this exhibit
#
# @return [Enumerator] an enumerator of resources to index
Enumerate the resource, and any collection members, that should be indexed
into this exhibit
Enumerate the resource and any collection members that should be indexed into this exhibit
def indexable_resources
    return to_enum(:indexable_resources) { size } unless block_given?
    resources.each do |resource|
      unless resource.exists?
        on_error(resource, 'Missing')
        next
      end
      yield resource
      resource.items.each do |r|
        yield r
      end
    end
  end
def indexable_resources return to_enum ( :indexable_resources ) { size } unless block_given? resources . each do | resource | unless resource . exists? on_error ( resource , 'Missing' ) next end yield resource resource . items . each do | r | yield r end end end
Enumerate the resource, and any collection members, that should be indexed
into this exhibit
Enumerate the resource and any collection members that should be indexed into this exhibit
an enumerator of resources to index
an enumerator of resources to index
Enumerator