CoI updates and bugfixes
parent
e13b57577d
commit
f7df8c0b99
|
@ -134,9 +134,16 @@
|
|||
"email" : "vasudha.krishnaswamy@oracle.com"
|
||||
},
|
||||
"Wolfgang Gatterbauer" : {
|
||||
"institution" : "Carnegie Mellon University",
|
||||
"institution" : "Northeastern University",
|
||||
"updated" : "2017",
|
||||
"email" : "gatt@cmu.edu"
|
||||
"email" : "gatterbauer@gmail.com",
|
||||
"old" : [
|
||||
{
|
||||
"institution" : "Carnegie Mellon University",
|
||||
"updated" : "2016",
|
||||
"email" : "gatt@cmu.edu"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Xing Niu" : {
|
||||
"institution" : "Illinois Institute of Technology",
|
||||
|
|
|
@ -134,7 +134,7 @@ class NSFConflicts
|
|||
f.puts("\t#{@my_data["name"]}\t#{@my_data["work"]["employer"]}")
|
||||
f.puts("==== TABLE B ====")
|
||||
full_details(advisors).each do |adv|
|
||||
"G:\t#{render_name(adv)}\t#{adv["institution"]}\t#{adv["email"]}"
|
||||
f.puts "G:\t#{render_name(adv)}\t#{adv["institution"]}\t#{adv["email"]}"
|
||||
end
|
||||
full_details((phd_students + phd_alumni).uniq.sort).each do |stud|
|
||||
f.puts "T:\t#{render_name(stud)}\t#{stud["institution"]}\t#{stud["email"]}"
|
||||
|
|
|
@ -142,7 +142,10 @@ module Text
|
|||
end
|
||||
|
||||
def split_name(name)
|
||||
first, *last = name.split(/ +/)
|
||||
[first, last.join(" ")]
|
||||
parts = name.split(/ +/)
|
||||
[
|
||||
parts[0...-1].join(" "), # first name(s)
|
||||
parts[-1] # last name
|
||||
]
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue