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

Atualiza a versão do opac_schema inclui no rodapé a licença e adiciona a permissão de preservação da clockss #204

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions opac/webapp/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@

- Interface languages
- OPAC_LANGUAGES: os idiomas com seus respectivos labels, exemplo: {'pt_BR': 'Português','en': 'English','es': 'Español'}

- Site License
- OPAC_SITE_LICENSE_ENABLE: ativa/desativa a exibição do logo do creative commons no rodapé do site
- OPAC_SITE_LICENSE_NAME: Nome da licença (default: "Creative Common - by 4.0")
- OPAC_SITE_LICENSE_URL: URL da licença (default: https://creativecommons.org/licenses/by-nc/4.0/)
- OPAC_SITE_LICENSE_IMG_URL: Imagem da licença (default: https://licensebuttons.net/l/by/4.0/88x31.png)
"""

PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
Expand Down Expand Up @@ -671,3 +677,8 @@

# Citation Export Format
CITATION_EXPORT_FORMATS = {"bib": "BibTex", "ris": "Reference Manager"}

SITE_LICENSE_ENABLE = os.environ.get("OPAC_SITE_LICENSE_ENABLE", "True") == "True"
SITE_LICENSE_NAME = os.environ.get("OPAC_SITE_LICENSE_NAME", "Creative Common - by 4.0")
SITE_LICENSE_URL = os.environ.get("OPAC_SITE_LICENSE_URL", "https://creativecommons.org/licenses/by-nc/4.0/")
SITE_LICENSE_IMG_URL = os.environ.get("OPAC_SITE_LICENSE_IMG_URL", "https://licensebuttons.net/l/by/4.0/88x31.png")
2 changes: 2 additions & 0 deletions opac/webapp/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<script src="{{ url_for('static', filename='js/vendor/html5-3.6-respond-1.1.0.min.js') }}"></script>
<![endif]-->

{% include "includes/clockss.html" %}

{% if not config.DEBUG and config.GA_TRACKING_CODE %}
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.GA_TRACKING_CODE }}"></script>
Expand Down
10 changes: 10 additions & 0 deletions opac/webapp/templates/includes/clockss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- 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>
15 changes: 14 additions & 1 deletion opac/webapp/templates/includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,24 @@
<div class="col col-12 col-sm-2 text-center">
<div class="scielo__logo-scielo--small" alt="Logo SciELO"></div>
</div>
<div class="col col-12 col-sm-10 text-center text-sm-start">
<div class="col col-12 col-sm-8 text-center text-sm-start">
<p><small><strong> SciELO - Scientific Electronic Library Online</strong></small></p>
<p><small>{{ g.collection.address1 or '' }}<br/>
{{ g.collection.address2 or '' }}</small></p>
</div>
<div class="col col-12 col-sm-2 text-center">
{% if config.SITE_LICENSE_ENABLE %}
<div class="container-license">
<div class="row">
<div class="col-sm-3 col-md-2">
<a href="{{config.SITE_LICENSE_URL}}" target="_blank" title="" rel="license"><img
src="{{config.SITE_LICENSE_IMG_URL}}" alt="{{config.SITE_LICENSE_NAME}}">
</a>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ zope.interface==5.5.2
tox==4.3.5
PyJWT==2.8.0
tenacity==8.2.3
-e git+https://[email protected]/scieloorg/[email protected].0#egg=Opac_Schema
-e git+https://[email protected]/scieloorg/[email protected].1#egg=Opac_Schema
-e git+https://[email protected]/scieloorg/[email protected]#egg=packtools
-e git+https://github.com/scieloorg/[email protected]#egg=scieloh5m5