Class: Mei::LcshSubjectResource

Inherits:
Object
  • Object
show all
Defined in:
app/models/mei/lcsh_subject_resource.rb

Class Method Summary collapse

Class Method Details

.find(subject, type, solr_field) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'app/models/mei/lcsh_subject_resource.rb', line 4

def self.find(subject, type, solr_field)
  authority_check = Mei::Loc.new('subjects', solr_field)
  authority_result = authority_check.search(subject) #URI escaping doesn't work for Baseball fields?
  if authority_result.present?
    return authority_result
  else
    return []
  end
end