app/indexers/etd_indexer.rb
def department(solr_doc)
      Array(solr_doc["degree_grantor_tesim"]).map do |a|
        a.sub(/^University of California, Santa Barbara\. /, "")
      end
    end
# Derive department by stripping "UC, SB" from the degree grantor field
Derive department by stripping "UC, SB" from the degree grantor field
Derive department by stripping " UC SB " from the degree grantor field
def department(solr_doc)
      Array(solr_doc["degree_grantor_tesim"]).map do |a|
        a.sub(/^University of California, Santa Barbara\. /, "")
      end
    end
def department ( solr_doc ) Array ( solr_doc [ "degree_grantor_tesim" ] ) . map do | a | a . sub ( / ^University of California, Santa Barbara \. / , "" ) end end
Derive department by stripping "UC, SB" from the degree grantor field
Derive department by stripping " UC SB " from the degree grantor field
solr_doc