| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
⬇️ Install package: OJS 3.5 · OJS 3.4 — or browse all Releases.
A generic plugin for Open Journal Systems (OJS) that displays each article's abstract views and downloads (sum of galleys) on the article summary lists and on the article landing page — discreetly, as icons with a tooltip near the title.
Maintained by OJSBR. Rewritten and adapted from an original OJS 3.3 access/downloads counter by STI-FFLCH/USP and ABCD/USP. See the full Credits & authorship section below.
| OJS version | Branch | Plugin release |
|---|---|---|
| OJS 3.5.x | stable-3_5_0 (default) | 1.3.0.3 |
| OJS 3.4.x | stable-3_4_0 | 1.1.1.3 |
Pick the branch matching your OJS version. Each branch is installable as-is.
Go to Settings → Website → Plugins → View counter → Settings:
Both are enabled by default and take effect on the next page load (no cache to clear).
PHPUnit (tests/*Test.php, on PKP\tests\PKPTestCase): the badge markup and its accessible labels, one grouped query per metric for a list and the 24-hour cache afterwards, submissions without metrics, the site level without settings, no constant that only exists outside PKP's strict mode, the plugin classes against the installed PKP, the 38 translations and the template. From the installation root:
lib/pkp/lib/vendor/bin/phpunit --configuration lib/pkp/tests/phpunit.xml --no-coverage "$PWD/plugins/generic/viewcounter/tests"Cypress (cypress/tests/functional/Viewcounter.cy.js, run by pkp-github-actions on every push): enables the plugin, checks the badge inside the titles of the current issue and of an article page (it fails with the hook off), and saves each place on its own, putting the setting back.
Verified on OJS 3.5.0.3 and 3.4.0.10.
Tests are kept in the repository and are not part of the release package.
Generative AI (Claude, by Anthropic) was used to write and run tests, improve the code and bring it in line with PKP standards. Every change is reviewed and tested by OJSBR, which is responsible for the published releases.
Issues and pull requests are welcome. Please target the branch matching the OJS version you are working against.
Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.
Plugin genérico para o Open Journal Systems (OJS) que mostra a quantidade de visualizações do resumo e de downloads (soma das galés) de cada artigo, nas listas de resumo e na página do artigo — de forma discreta, com ícones e tooltip próximos ao título.
Mantido pela OJSBR. Reescrito e adaptado a partir de um contador de acessos/downloads original do OJS 3.3 da STI-FFLCH/USP e do ABCD/USP. Veja a seção Créditos e autoria abaixo.
| Versão do OJS | Branch | Release do plugin |
|---|---|---|
| OJS 3.5.x | stable-3_5_0 (padrão) | 1.3.0.3 |
| OJS 3.4.x | stable-3_4_0 | 1.1.1.3 |
Instale em Configurações → Website → Plugins → Enviar um novo plugin, ou extraia a pasta em plugins/generic/ (ficando plugins/generic/viewcounter/). Depois ative o Contador de visualizações na lista de plugins Genéricos.
Em Configurações → Website → Plugins → Contador de visualizações → Configurações, escolha exibir no resumo (listas) e/ou na página do artigo (padrão: ambos ativos). A mudança vale no próximo carregamento de página, sem limpar cache algum.
PHPUnit em tests/ (sobre PKP\tests\PKPTestCase) e Cypress em cypress/tests/functional/ (rodado pelo pkp-github-actions a cada push), com os comandos da seção em inglês. A suíte cobre o selo e seus rótulos acessíveis, uma consulta agrupada por métrica nas listas e o cache de 24 horas, submissões sem métricas, o nível do site sem configurações, as classes contra o PKP instalado, as 38 traduções e o template; o Cypress confere o selo nos títulos do fascículo atual e de um artigo e o salvamento de cada lugar. Verificado no OJS 3.5.0.3 e 3.4.0.10.
Os testes ficam no repositório e não fazem parte do pacote da release.
Foi usada IA generativa (Claude, da Anthropic) para escrever e rodar testes, melhorar o código e alinhá-lo aos padrões da PKP. Toda mudança é revisada e testada pela OJSBR, que responde pelas releases publicadas.
Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.
| Back | FazBrowse Home | New Git URL |