34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
<%
|
|
bibtexdiv = "bibtex-#{LabMetadata.shortname_for(pub).gsub(/:/,"")}"
|
|
|
|
links = [
|
|
"<a onclick=\"$('##{bibtexdiv}').toggle();\">bibtex</a>"
|
|
];
|
|
links = (
|
|
pub.fetch("urls", []).
|
|
to_a.
|
|
map {|r,url| "<a href=\"#{url}\">#{r}</a>"}
|
|
) + links
|
|
|
|
%>
|
|
|
|
|
|
<li class="list-group-item">
|
|
<h4 class="list-group-item-heading"><%= pub["title"] %></h4>
|
|
<p class="list-group-item-text">
|
|
<div class="authors"><%= pub["authors"].map { |author| LabMetadata::link_for author }.join(", ") %></div>
|
|
<div class="metadata" style="font-weight: bold;"><span class="venue"><%= pub["venue"] %> <%= pub["year"] %></span>
|
|
<%
|
|
type = LabMetadata.complete_venue(pub)["type"]
|
|
case type
|
|
when nil, "conference", "journal" then "ignore"
|
|
when "techreport" then %>(Tech Report)<%
|
|
else %>(<%= type.capitalize %>)<%
|
|
end
|
|
%> <span class="paper_links">[ <%= links.join(" | ") %> ]</span>
|
|
</div>
|
|
<div id="<%=bibtexdiv%>" style="display: none">
|
|
<pre class="well" style="margin-left: auto; margin-right: auto; font-size: 8pt;"><%= LabMetadata.bibtex_for pub %></pre>
|
|
</div>
|
|
</p>
|
|
</li> |