SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 04608523 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add robustness reports journal label

include multidisciplinary in college list index
parent 1839995c
No related branches found
No related tags found
No related merge requests found
......@@ -50,37 +50,46 @@
<div class="col-12">
<table class="table table-bordered table-secondary">
<thead class="table-dark">
<tr>
<th><h3>Branch of Science</h3></th>
<th><h3>Fields<br><small><em>(click to see list of Fellows)</em></small></h3></th>
</tr>
</thead>
<tbody>
{% for branch in branches %}
{% if branch.name != 'Multidisciplinary' %}
<tr>
<td class="align-middle">
{{ branch.name }}
</td>
<td>
{% for acad_field in branch.academic_fields.all %}
{% if acad_field.colleges.all|length > 0 %}
{% for college in acad_field.colleges.all %}
{% if college.fellowships.all|length > 0 %}
<a href={% url 'colleges:college_detail' college=college.slug %}><button type="button" class="btn btn-primary btn-sm m-1"><small>{{ college.name }}</small></button></a>
{% else %}
<button type="button" class="btn btn-sm btn-outline-secondary m-1"><small><em>{{ acad_field }}</em></small></button>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
<thead class="table-dark">
<tr>
<th><h3>Branch of Science</h3></th>
<th><h3>Fields<br /><small><em>(click to see list of Fellows)</em></small></h3></th>
</tr>
</thead>
<tbody>
{% for branch in branches %}
<tr>
<td class="align-middle">{{ branch.name }}</td>
<td>
{% for acad_field in branch.academic_fields.all %}
{% if acad_field.colleges.all|length > 0 %}
{% for college in acad_field.colleges.all %}
{% if college.name != 'Multidisciplinary' %}
{% if college.fellowships.all|length > 0 %}
<a href={% url 'colleges:college_detail' college=college.slug %}>
<button type="button" class="btn btn-primary btn-sm m-1">
<small>{{ college.name }}</small>
</button>
</a>
{% else %}
<button type="button" class="btn btn-sm btn-outline-secondary m-1">
<small><em>{{ college.name }}</em></small>
</button>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
Does your field not have a College yet? Help us to form one by
......
......@@ -2,7 +2,7 @@ __copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
JOURNAL_DOI_LABEL_REGEX = r"(SciPost)[a-zA-Z]+|(MigPol)"
JOURNAL_DOI_LABEL_REGEX = r"(SciPost)[a-zA-Z]+|(MigPol|RobustRep)"
VOLUME_DOI_LABEL_REGEX = r"({})\.\w+".format(JOURNAL_DOI_LABEL_REGEX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment