Awarded Grant

pull/1/head
Oliver Kennedy 2020-09-16 16:51:45 -04:00
parent 2062910793
commit 4caf74aad1
Signed by: okennedy
GPG Key ID: 3E5F9B3ABD3FDB60
2 changed files with 24 additions and 14 deletions

View File

@ -61,10 +61,10 @@
},
{ "title" : "Collaborative Research: III: MEDIUM: U4U - Taming Uncertainty with Uncertainty-Annotated Databases",
"agency" : "NSF: CISE: IIS: MEDIUM",
"role" : "Co-PI",
"role" : "PI",
"amount" : 532923,
"effort" : "50%",
"status" : "submitted",
"status" : "accepted",
"start" : "08/15/2020", "end" : "08/14/2024",
"type" : "grant",
"commitment" : { "summer" : 0.25 },
@ -72,6 +72,8 @@
"copis" : [
"Atri Rudra"
],
"agency_id" : "IIS-1956149",
"lead" : false,
"collaborative" : [
{ "institution" : "Illinois Inst. Tech.",
"pis" : ["Boris Glavic"],

View File

@ -21,10 +21,18 @@ title: Funding Sources
</div>
<div class="section"><b>PIs:</b>
<% pis = grant.fetch("copis", []).clone
collab_pis = grant.fetch("collaborative", [])
.map { |partner_inst| partner_inst.fetch("pis", []) }
.flatten
if grant["role"] == "PI"
pis.unshift("Oliver Kennedy")
else
pis.push("Oliver Kennedy")
end
if grant.fetch("lead", true)
pis = pis + collab_pis
else
pis = collab_pis + pis
end %>
<%= pis.map { |pi| LabMetadata::link_for pi }.join(", ") %></div>
<% if grant.has_key? "supports" %>
@ -35,19 +43,19 @@ title: Funding Sources
<div class="section"><b>Projects: </b>
<%= grant["projects"].map { |proj| LabMetadata.project_link(proj) }.join(", ") %></div>
<% end %>
<% if grant.has_key? "urls" %>
<%
urls = grant["urls"].map { |r, url| "<a href=\"#{url}\">#{r}</a>" }
if grant.fetch("agency", "").split(/:/)[0] == "NSF" then
grant_id = grant.fetch("agency_id", "").split(/-/)[-1]
if grant_id != ""
urls.push("<a href='https://www.nsf.gov/awardsearch/showAward?AWD_ID=#{grant_id}'>nsf abstract</a>")
end
<%
urls = grant.fetch("urls", []).map { |r, url| "<a href=\"#{url}\">#{r}</a>" }
p grant.fetch("agency", "")
if grant.fetch("agency", "").split(/:/)[0] == "NSF" then
grant_id = grant.fetch("agency_id", "").split(/-/)[-1]
if grant_id != ""
urls.push("<a href='https://www.nsf.gov/awardsearch/showAward?AWD_ID=#{grant_id}'>nsf abstract</a>")
end
%>
<div class="section">
<%= urls.join(", ") %>
</div>
end
if urls.size > 0 %>
<div class="section">
<%= urls.join(", ") %>
</div>
<% end %>
</li>
<% end %>