Skip to content

Commit

Permalink
Merge pull request #1718 from DDMAL/i1684-institution-detail-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller authored Dec 2, 2024
2 parents 1237c89 + 5d990b1 commit 093325d
Showing 1 changed file with 66 additions and 42 deletions.
108 changes: 66 additions & 42 deletions django/cantusdb_project/main_app/templates/institution_detail.html
Original file line number Diff line number Diff line change
@@ -1,68 +1,92 @@
{% extends "single_column_with_search_bar.html" %}

{% block title %}

{% endblock %}

{% block header %}
<h3>{{ institution.name }} {% if institution.siglum %}({{ institution.siglum }}){% endif %}</h3>
<h4>{% if institution.city %}{{ institution.city }}{% else %}[No City]{% endif %}, {{ institution.country }}</h4>
<h3>
{{ institution.name }}
{% if institution.siglum %}
({{ institution.siglum }})
{% endif %}
</h3>
<h4>
{% if institution.city %}
{{ institution.city }}
{% else %}
[No City]
{% endif %}
, {{ institution.country }}
</h4>
{% endblock %}
{% block maincontent %}
{% if institution_authorities %}
<hr />
<div class="row">
<div class="col">
{% for authority in institution_authorities %}
{% for authority in institution_authorities %}
<div class="row">
<div class="col">
View this institution in <a href="{{ authority.1 }}">{{ authority.0 }}</a>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
{% endif %}
<hr />
<div class="row">
{% if num_cantus_sources > 0 %}
<div class="col">
<h5>Cantus Database</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<th>Sources</th>
</tr>
</thead>
<tbody>
{% for source in cantus_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}

{% if num_bower_sources > 0 %}
<div class="col">
<h5>Clavis Sequentiarum (Sequence Database by Calvin Bower)</h5>
<h5>
Cantus Database
</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<th>Sources</th>
</tr>
<tr>
<th>
Sources
</th>
</tr>
</thead>
<tbody>
{% for source in bower_sources %}
{% for source in cantus_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
{% if source.name %}
("{{ source.name }}")
{% endif %}
</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if num_bower_sources > 0 %}
<div class="col">
<h5>
Clavis Sequentiarum (Sequence Database by Calvin Bower)
</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
</td>
<th>
Sources
</th>
</tr>
{% endfor %}
</thead>
<tbody>
{% for source in bower_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
{% if source.name %}
("{{ source.name }}")
{% endif %}
</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{% endblock %}
{% endblock %}

0 comments on commit 093325d

Please sign in to comment.