-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cove_bods: Add support for BODS 0.4 data
- Loading branch information
Ed (ODSC)
committed
Jan 8, 2025
1 parent
8b595eb
commit 7c8f243
Showing
15 changed files
with
1,127 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
676 changes: 616 additions & 60 deletions
676
cove_bods/templates/cove_bods/additional_checks_table.html
Large diffs are not rendered by default.
Oops, something went wrong.
84 changes: 84 additions & 0 deletions
84
cove_bods/templates/cove_bods/additional_fields_table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{% load i18n %} | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th class="">{% trans 'Field Name' %}</th> | ||
<th class="">{% trans 'Field Path' %}</th> | ||
<th class="">{% trans 'Usage Count' %}</th> | ||
<th class="">{% trans 'First 3 Values' %}</th> | ||
<th class="">{% trans 'Child Fields' %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for full_path, info in additional_fields.items %} | ||
{% if info.root_additional_field %} | ||
<tr> | ||
<td> | ||
{{ info.field_name }} | ||
</td> | ||
<td> | ||
{{ full_path }} | ||
</td> | ||
<td> | ||
{{ info.count }} | ||
</td> | ||
<td> | ||
<ul class="list-unstyled"> | ||
{% for example in info.examples|slice:":3" %} | ||
<li> | ||
{{ example }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
<td> | ||
{% if info.additional_field_descendance %} | ||
{{info.additional_field_descendance|length}} | ||
<a data-toggle="modal" data-target="#additional-field-{{full_path|slugify}}">{% trans "(See child fields)" %}</a> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
{% for parent_full_path, parent_info in additional_fields.items %} | ||
{% if parent_info.root_additional_field and parent_info.additional_field_descendance %} | ||
<div class="modal fade" id="additional-field-{{parent_full_path|slugify}}" tabindex="-1" role="dialog"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4>{% blocktrans %}Child fields of {{parent_full_path}}{% endblocktrans %} </h4> | ||
|
||
</div> | ||
<div class="modal-body"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th> {% trans 'Field' %}</th> | ||
<th> {% trans 'Path to Field' %}</th> | ||
<th> {% trans 'Value' %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for full_path, info in parent_info.additional_field_descendance.items %} | ||
<tr> | ||
<td>{{info.field_name}}</td> | ||
<td>{{info.path}}</td> | ||
<td> | ||
{{ info.examples|first }} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
dealer | ||
sentry-sdk | ||
Django>3.2,<3.3 | ||
Django>5.0,<5.1 | ||
jsonschema | ||
libcovebods>=0.15.0 | ||
libcoveweb2>=0.1.0 | ||
libcovebods>=0.16.0 | ||
libcoveweb2>=0.4.0 | ||
gunicorn | ||
django-bootstrap3 | ||
flattentool | ||
flattentool>=0.27.0 | ||
pandas | ||
urllib3<2 # selenium (requirements_dev.in) does not support v2 |
Oops, something went wrong.