Skip to content

Commit

Permalink
documents: hide Dewey classification
Browse files Browse the repository at this point in the history
* Hides Dewey classification in documents detail views.
* Closes #550.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Jul 12, 2021
1 parent a4d785c commit c28a771
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions sonar/modules/documents/templates/documents/record.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,21 +258,17 @@ <h5 class="d-inline">

<!-- CLASSIFICATION -->
{% if record.classification and record.classification | length > 0 %}
{% for classification in record.classification %}
<dt class="col-lg-3">
{{ _('Classification') }}
</dt>
<dd class="col-lg-9">
{% if classification.type == 'bf:ClassificationUdc' %}
{% for classification in record.classification if classification.type == 'bf:ClassificationUdc' -%}
<a
href="{{ url_for('documents.search', view=view_code, q='classification.classificationPortion:' + classification.classificationPortion) }}">
{{ _('classification_' + classification.classificationPortion) }}
</a>
{% else %}
{{ _('classification_' + classification.classificationPortion) }}
{% endif %}
href="{{ url_for('documents.search', view=view_code, q='classification.classificationPortion:' + classification.classificationPortion) }}">{{
_('classification_' + classification.classificationPortion) }}</a>{% if not loop.last %}&nbsp;;&nbsp;{%
endif %}
{%- endfor %}
</dd>
{% endfor %}
{% endif %}

<!-- CUSTOM FIELDS -->
Expand Down

0 comments on commit c28a771

Please sign in to comment.