38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<div class="modal-header">
|
|
<h5 class="modal-title">{{ paper.title }}</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
{% for key, value in paper.__dict__.items() %} {% if key == 'doi' %}
|
|
<p>
|
|
<strong>DOI:</strong>
|
|
<a href="https://doi.org/{{ value }}" target="_blank">{{ value }}</a>
|
|
</p>
|
|
{% elif key == 'issn' %} {% if ',' in value %}
|
|
<p>
|
|
<strong>ISSN:</strong>
|
|
{% for issn in value.split(',') %}
|
|
<a
|
|
href="https://www.worldcat.org/search?q=issn:{{ issn.strip() }}"
|
|
target="_blank"
|
|
>{{ issn.strip() }}</a
|
|
>{% if not loop.last %}, {% endif %} {% endfor %}
|
|
</p>
|
|
{% else %}
|
|
<p>
|
|
<strong>ISSN:</strong>
|
|
<a href="https://www.worldcat.org/search?q=issn:{{ value }}" target="_blank"
|
|
>{{ value }}</a
|
|
>
|
|
</p>
|
|
{% endif %} {% endif %} {% if not key.startswith('_') and key != 'metadata'
|
|
and key != 'doi' and key != 'issn' %}
|
|
<p><strong>{{ key.replace('_', ' ').capitalize() }}:</strong> {{ value }}</p>
|
|
{% endif %} {% endfor %}
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
|
|
Close
|
|
</button>
|
|
</div>
|