{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}
<li value="{{pub.id}}">
    <p class="left">
    <strong>{{pub.title}}</strong>
    <span class="right">
        {% for a in pub.authors -%}
            {% assign ca = authors[a] -%}
            {% if ca.home -%}
                <a href="{{ca.home)}}">{{ca.name}}</a>
            {% else -%}
                {{ca.name}}
            {% endif -%}
            {% if forloop.last -%}{% else -%},{% endif -%}
        {% endfor -%}
    </span>
    </p>
    <p class="clear">
    {% if pub.journal %}<em>{{pub.journal}}</em> {{pub.issue}}{% else %} <em>preprint</em> {% endif %}
    <span class="right">
    {% for link in pub.links %}
    {% for l in link %}{% assign k = l[0] %}
    <span class="paper_link"><a href="{{ sources[k].baseurl}}{{l[1]}}">{{ sources[k].name }}</a></span>
    {% endfor %}
    {% if forloop.last -%}{% else -%}&middot;{% endif -%}
    {% endfor %}
    </span>
    </p>
</li>
