diff --git a/opac/webapp/config/default.py b/opac/webapp/config/default.py index a60ea6b76..2a9b609d5 100644 --- a/opac/webapp/config/default.py +++ b/opac/webapp/config/default.py @@ -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) @@ -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' diff --git a/opac/webapp/templates/article/base.html b/opac/webapp/templates/article/base.html index 4bccf48b8..b862ee7f6 100644 --- a/opac/webapp/templates/article/base.html +++ b/opac/webapp/templates/article/base.html @@ -45,7 +45,7 @@ {% if config.USE_PLUMX %} - + {% endif %} {% if config.USE_ALTMETRIC %} diff --git a/opac/webapp/templates/includes/metric_modal.html b/opac/webapp/templates/includes/metric_modal.html index e86932c34..4e1ea6598 100644 --- a/opac/webapp/templates/includes/metric_modal.html +++ b/opac/webapp/templates/includes/metric_modal.html @@ -83,9 +83,9 @@