Skip to content

Commit

Permalink
Merge pull request #844 from samuelveigarangel/issue-842
Browse files Browse the repository at this point in the history
Adiciona declaração de CLOCKSS na página informativa
  • Loading branch information
samuelveigarangel authored Sep 3, 2024
2 parents 64a22b5 + 46f05ec commit 4ab6d15
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion journalpage/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def journal_bibliographic_info_page(self, request, collection_acron3, acron):
financing_statement = journal.financing_statement.get_object_in_preferred_language(language=language)
acknowledgements = journal.acknowledgements.get_object_in_preferred_language(language=language)
additional_information = journal.additional_information.get_object_in_preferred_language(language=language)
digital_preservation = journal.digital_preservation.get_object_in_preferred_language(language=language)
digital_preservation = journal.digital_pa.all()
ethics = journal.ethics.get_object_in_preferred_language(language=language)
fee_charging = journal.fee_charging.get_object_in_preferred_language(language=language)
sponsor_history = journal.sponsor_history.all()
Expand Down Expand Up @@ -95,6 +95,7 @@ def journal_bibliographic_info_page(self, request, collection_acron3, acron):
"acknowledgements": acknowledgements,
"additional_information": additional_information,
"digital_preservation": digital_preservation,
"digital_preservation_clockss": digital_preservation.filter(acronym="CLOCKSS"),
"ethics": ethics,
"fee_charging": fee_charging,
"sponsor_history": sponsor_history,
Expand Down
18 changes: 14 additions & 4 deletions journalpage/templates/journalpage/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,20 @@ <h5 id="item-1-8">{% trans 'Patrocinadores e agências de Fomento' %}</h5>
<!-- InlinePanel Preservacao Digital -->
<!-- Panel Policy -->
<h5 id="item-1-9">{% trans 'Preservação digital' %}</h5>
<ul type="disc">
{% for dp in digital_preservation %}
<li>{{ dp.rich_text|richtext }}</li>
{% endfor %}
{% if digital_preservation_clockss %}
<!-- CLOCKSS system has permission to ingest, preserve, and serve this Archival Unit -->
<div class="widget widget-Lockss widget-instance-IssueBrowseByYear_Lockss">

<input class="at-locks-messaging" type="hidden" value="LOCKSS system has permission to collect, preserve, and serve this Archival Unit" />

<input class="at-clockss-messaging" type="hidden" value="CLOCKSS system has permission to ingest, preserve, and serve this Archival Unit" />

</div>
{% endif%}
<ul type="disc">
{% for dp in digital_preservation %}
<li>{{ dp.name }}</li>
{% endfor %}
</ul>
<hr>
<h4 id="item-2">{% trans 'Política editorial' %}</h4>
Expand Down

0 comments on commit 4ab6d15

Please sign in to comment.