app/models/bplmodels/map.rb
# A collection can have another collection as a member, or an image
A collection can have another collection as a member, or an image
A collection can have another collection as a member or an image
def to_solr(doc = {})
      doc = super(doc)
      doc['active_fedora_model_ssi'] = self.class.name
      doc['georeferenced_bsi'] = false
      Bplmodels::Finder.getImageFiles(self.pid).each do |image_file|
        georect_result = image_file.select { |field| field == 'georeferenced_bsi' }
        if georect_result.present? &&
           (georect_result['georeferenced_bsi'] == true || georect_result['georeferenced_bsi'] == 'true')
          doc['georeferenced_bsi'] = true
        end
      end
      doc
    end
def to_solr ( doc = { } ) doc = super ( doc ) doc [ 'active_fedora_model_ssi' ] = self . class . name doc [ 'georeferenced_bsi' ] = false Bplmodels :: Finder . getImageFiles ( self . pid ) . each do | image_file | georect_result = image_file . select { | field | field == 'georeferenced_bsi' } if georect_result . present? && ( georect_result [ 'georeferenced_bsi' ] == true || georect_result [ 'georeferenced_bsi' ] == 'true' ) doc [ 'georeferenced_bsi' ] = true end end doc end
A collection can have another collection as a member, or an image
A collection can have another collection as a member or an image
doc