Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add consistent reporting-org-ref table #337

Open
wants to merge 1 commit into
base: pre-2024-master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions templates/reporting_orgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,32 @@ <h3 class="panel-title">
</tbody>
</table>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
Consistent Reporting Org references
</h3>
</div>
<div class="panel-body">
<p>List of Publishers where only one reporting-org-ref is listed and this matches the reporting-org field in the IATI Registry.</p>
</div>
<table class="table table-striped">
<thead><tr>
<th>Publisher</th>
<th>Reporting Orgs on Registry and in Data</th>
</tr></thead>
<tbody>
{% for publisher_title,publisher in publishers_ordered_by_title %}
{% set publisher_stats = get_publisher_stats(publisher) %}
{% if publisher_stats.reporting_orgs|count == 1 and publisher_stats.reporting_orgs.keys()[0] == ckan_publishers[publisher].result.publisher_iati_id %}
<tr>
<td><a href="publisher/{{publisher}}.html">{{publisher_title}}</a></td>
<td>{% for ro in publisher_stats.reporting_orgs%}<code>{{ro}}</code> {% endfor %}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}