app/models/proquest_behaviors.rb
# Export a zipped directory of an ETD in the format expected by ProQuest
# @return [String] the full path of the exported .zip file
Export a zipped directory of an ETD in the format expected by ProQuest
Export a zipped directory of an ETD in the format expected by ProQuest
def proquest_code(field_name)
    research_fields_yml = Rails.root.join("config", "authorities", "research_fields.yml")
    research_fields_hash = YAML.safe_load(File.read(research_fields_yml))
    research_fields_hash["terms"].select { |a| a["id"] == field_name }.first["term"]
  end
def proquest_code ( field_name ) research_fields_yml = Rails . root . join ( "config" , "authorities" , "research_fields.yml" ) research_fields_hash = YAML . safe_load ( File . read ( research_fields_yml ) ) research_fields_hash [ "terms" ] . select { | a | a [ "id" ] == field_name } . first [ "term" ] end
Export a zipped directory of an ETD in the format expected by ProQuest
Export a zipped directory of an ETD in the format expected by ProQuest
the full path of the exported .zip file
the full path of the exported . zip file
String
field_name
<not_specific>