app/models/solr_document.rb
# If this is a boolean, return the boolean value
# If this is a string, transform it into a boolean
# If the value is nil or can't be determined, assume it is NOT embargoed
If this is a boolean, return the boolean value
If this is a string, transform it into a boolean
If the value is nil or can't be determined, assume it is NOT embargoed
If this is a boolean return the boolean value If this is a string transform it into a boolean If the value is nil or can ' t be determined assume it is NOT embargoed
def abstract_embargoed
    return self['abstract_embargoed_bsi'] unless self['abstract_embargoed_bsi'].nil?
    return self['abstract_embargoed_tesim'].first.to_s == "true" if self['abstract_embargoed_tesim']
    false
  end
def abstract_embargoed return self [ 'abstract_embargoed_bsi' ] unless self [ 'abstract_embargoed_bsi' ] . nil? return self [ 'abstract_embargoed_tesim' ] . first . to_s == "true" if self [ 'abstract_embargoed_tesim' ] false end
If this is a boolean, return the boolean value
If this is a string, transform it into a boolean
If the value is nil or can't be determined, assume it is NOT embargoed
If this is a boolean return the boolean value If this is a string transform it into a boolean If the value is nil or can ' t be determined assume it is NOT embargoed