Skip to content

Tags: scieloorg/packtools

Tags

4.16.2

Toggle 4.16.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Refactor data availability section: add doc-version mode, display-dat…

…a-availability with anchor links, and fn rendering templates (#1145)

4.16.1

Toggle 4.16.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix ValueError: image has wrong mode in thumbnail generation (#1128)

* Initial plan

* Fix ValueError: image has wrong mode in thumbnail generation

Convert images with unsupported PIL modes (P, CMYK, I, F, 1, LA, PA)
to RGB or RGBA before calling thumbnail() in get_thumbnail_bytes().
This prevents the ValueError that occurs when PIL tries to resize
images with these modes using high-quality resamplers.

Co-authored-by: robertatakenaka <[email protected]>

* Improve thumbnail tests: use 300x300 images and assert JPEG output

Use image dimensions larger than thumbnail_size (267x140) to ensure
the resize path is exercised. Assert the result is valid JPEG with
dimensions bounded by thumbnail_size.

Co-authored-by: robertatakenaka <[email protected]>

* Simplify mode normalization: single rule converting to RGB

Remove LA/PA special-casing since _get_bytes() always converts to RGB
before saving. Add comment explaining why the conversion is needed.

Co-authored-by: robertatakenaka <[email protected]>

* Extract _normalize_mode() helper and reuse in both create_thumbnail() and get_thumbnail_bytes()

Co-authored-by: robertatakenaka <[email protected]>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <[email protected]>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: robertatakenaka <[email protected]>
Co-authored-by: Copilot <[email protected]>

4.16.0

Toggle 4.16.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update version.py

4.15.0

Toggle 4.15.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adicionar argumentos advice_text e advice_params em build_response (#…

…1080)

* Initial plan

* Replace format_response with build_response in article_abstract.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in article_and_subarticles.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in article_license.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in article_xref.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in fig.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in journal_meta.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in metadata_langs.py

Co-authored-by: robertatakenaka <[email protected]>

* Replace format_response with build_response in tablewrap.py

Co-authored-by: robertatakenaka <[email protected]>

* Fix advice_text and advice_params parameterization in validation modules

Co-authored-by: robertatakenaka <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: robertatakenaka <[email protected]>

4.14.4

Toggle 4.14.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(models): ix: ensure abstract language is correctly identified fro…

…m XML node (#1076)

4.14.3

Toggle 4.14.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Corrige local do menu superior esquerdo (#1074)

* feat(htmlgenerator): add article-section-header reusable template

* refactor(htmlgenerator): update article layout grid and responsivity

* refactor(htmlgenerator): use section-header template in references

* refactor(htmlgenerator): use section-header template in data availability

* refactor(htmlgenerator): use section-header template in history section

* refactor(htmlgenerator): use section-header template in publication dates

* refactor(htmlgenerator): use section-header template in abstracts

* Atualiza css obtido do opac_5

* feat(ui): add scrollbar-gutter stable to modal-dialog-scrollable

* fix(ref): remove redundant div wrapper in article-text-ref

* refactor(abstract): use article-section-header template for consistency

4.14.2

Toggle 4.14.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Pagina artigo - acessibilidade - Acessibilidade e Semântica: Implemen…

…tação de ARIA Labels, Navegação Estruturada e Ajustes de Hierarquia (#1073)

* fix: adiciona âncora de nome ao material suplementar para melhorar navegação interna

* fix(html): ajusta hierarquia semântica de títulos de seção (h4 para h3)

* feat(accessibility): implementa aria-describedby para elementos gráficos com long-desc

* feat(accessibility): implementa aria-label dinâmico e multi-idioma para links externos

- Adiciona termos de interface para 'acesso', 'nova aba' e 'recurso externo' em config-labels.xml.
- Aplica aria-label informativo em licenças, DOIs, links genéricos e perfis de contribuidores.
- Garante conformidade com WCAG informando comportamento de abertura de janela via leitores de tela.

* style: remove regras de CSS não utilizadas em html-modals-contribs

* refactor(nav): melhora semântica da navegação do artigo com <nav> e labels

4.14.1

Toggle 4.14.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adicionar chave text em Abstract.data (#1072)

* Initial plan

* Add text property to Abstract.data with sections and non-sections support

Co-authored-by: robertatakenaka <[email protected]>

* Refactor text property to avoid unnecessary list conversion

Co-authored-by: robertatakenaka <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: robertatakenaka <[email protected]>

4.14.0

Toggle 4.14.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Cria deprecated_sps_pkg_name para manter acessível a versão anterior …

…do nome do pacote (#1065)

* Add deprecated_sps_pkg_name properties to XMLWithPre

- Add deprecated_sps_pkg_name_fpage: formats fpage without underscore before seq
- Add deprecated_sps_pkg_name_suppl: returns raw suppl value (not prefixed with 's')
- Add deprecated_sps_pkg_name: builds package name using deprecated format

* Expose deprecated_sps_pkg_name in PidProviderXMLAdapter

* Adiciona test_xml_sps_lib

4.13.6

Toggle 4.13.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove self.additional_sps_pkg_name_suffix da formação do nome do pac…

…ote (#1061)