Skip to content

Commit

Permalink
Merge pull request #2411 from gitnnolabs/master
Browse files Browse the repository at this point in the history
Ajuste o link para o javcascript do plumx e URL para o Plumx, ajusta a lista de param do link do plumx removendo data-no-link.
  • Loading branch information
gitnnolabs authored Aug 11, 2022
2 parents 61357fe + 6a87340 commit 44f5157
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions opac/webapp/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
- OPAC_USE_DIMENSIONS: ativa/desativa a integração com o Dimensions. Se sim, definir como 'True' (default: 'False')
- OPAC_DIMENSIONS_METRICS_URL: URL para o Dimensions (default: https://badge.dimensions.ai/details/doi)
- OPAC_USE_PLUMX: ativa/desativa a integração com o PlumX. Se sim, definir como 'True' (default: 'False')
- OPAC_PLUMX_METRICS_URL: URL para o PlumX (default: //cdn.plu.mx/widget-popup.js)
- OPAC_PLUMX_METRICS_URL: URL para o PlumX (default: https://plu.mx/a)
- OPAC_PLUMX_METRICS_JS: URL para o JS PlumX (default: //cdn.plu.mx/widget-popup.js)
- OPAC_USE_SCIENCEOPEN: ativa/desativa a integração de métricas com o ScienceOpen. Se sim, definir como 'True' (default: 'False')
- OPAC_USE_SCITE: ativa/desativa a integração de métricas com _SCITE. Se sim, definir como 'True' (default: 'False')
- OPAC_SCITE_URL: URL para o SCITE_ (default: https://cdn.scite.ai/badge/scite-badge-latest.min.js)
Expand Down Expand Up @@ -384,7 +385,9 @@
)
USE_PLUMX = os.environ.get('OPAC_USE_PLUMX', 'False') == 'True'
PLUMX_METRICS_URL = os.environ.get(
'OPAC_PLUMX_METRICS_URL', '//cdn.plu.mx/widget-popup.js')
'OPAC_PLUMX_METRICS_URL', 'https://plu.mx/scielo/a')
PLUMX_METRICS_JS = os.environ.get(
'OPAC_PLUMX_METRICS_JS', '//cdn.plu.mx/widget-popup.js')


USE_ALTMETRIC = os.environ.get('OPAC_USE_ALTMETRIC', 'False') == 'True'
Expand Down
2 changes: 1 addition & 1 deletion opac/webapp/templates/article/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='js/scielo-article-min.js') }}"></script>

{% if config.USE_PLUMX %}
<script type="text/javascript" src="{{ config.PLUMX_METRICS_URL }}"></script>
<script type="text/javascript" src="{{ config.PLUMX_METRICS_JS }}"></script>
{% endif %}

{% if config.USE_ALTMETRIC %}
Expand Down
6 changes: 3 additions & 3 deletions opac/webapp/templates/includes/metric_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ <h4 class="modal-title">{% trans %}Métricas{% endtrans %}</h4>
<div class="badge-link col-center">
<div class="logo-statistc logo-statistc-plumx">
<div class="badge-logo">
<a href="{{ config.PLUMX_METRICS_URL }}/?doi={{ article_macros.get_doi_by_lang(article=article, article_lang=article_lang) }}" data-popup="right" data-size="large"
class="plumx-plum-print-popup plum-liberty-theme" data-site="plum" data-hide-when-empty="true"
data-no-link="true" target="_blank">{{ article_macros.get_translate_title_by_lang(article=article, article_lang=article_lang) }}</a>
<a href="{{ config.PLUMX_METRICS_URL }}/?doi={{ article_macros.get_doi_by_lang(article=article, article_lang=article_lang) }}" data-popup="right" data-size="large"
class="plumx-plum-print-popup" data-hide-when-empty="true"
target="_blank">{{ article_macros.get_translate_title_by_lang(article=article, article_lang=article_lang) }}</a>
</div>
</div>
<a target="_blank" href="{{ config.PLUMX_METRICS_URL }}/?doi={{ article_macros.get_doi_by_lang(article=article, article_lang=article_lang) }}">
Expand Down

0 comments on commit 44f5157

Please sign in to comment.