Skip to content

Add Accessibility Block (blocks/accessibility) 1.0.2.1 for OJS 3.3, 3.4 and 3.5 - #512

Open
edersotto wants to merge 1 commit into
pkp:mainfrom
OJSBR:add-accessibility-block
Open

edersotto wants to merge 1 commit into
pkp:mainfrom
OJSBR:add-accessibility-block

Conversation

@edersotto

@edersotto edersotto commented Jul 22, 2026

Copy link
Copy Markdown

Adds Accessibility Block 1.0.2.1, a block plugin with reader accessibility controls, with releases for OJS 3.5, 3.4 and 3.3 (one branch per line). This update rebases the entry on the current main and replaces the 1.0.1.0 entry.

What it does

A sidebar block with increase zoom, decrease zoom, high contrast and reset. The reader's choices are kept in the browser and applied again on every page that shows the block. The controls are real buttons with aria-label and aria-pressed, a hidden live region announces the zoom level, and the buttons reuse the theme's button style.

How it plugs in

A standard BlockPlugin: the block template, with its script added through addJavaScript only where the block is shown. No core file or template is replaced and no database table is added.

Tests

  • PHPUnit tests on PKPTestCase (plugin class against the installed PKP, templates, locales).
  • Cypress spec run by pkp/pkp-github-actions on the OJS 3.5 and 3.4 branches — green. PKP's CI no longer starts OJS 3.3 on current runners, so on 3.3 the same spec was run on an OJS 3.3.0.22 installation.
  • Tests stay in the repository; the release packages contain only the plugin.

Checks run before updating this

  • xmllint --schema ./plugins.xsd ./plugins.xml --noout — validates.
  • Each package URL resolves, unpacks as a single plugin directory without tests or CI files, and matches the md5 in the entry:
    • 1.0.2.1: c0099ef52913c6f0ddf620849b759f6a
    • 1.0.2.1-ojs3.4: 5bb5b63721053839b67347441c225cac
    • 1.0.2.1-ojs3.3: 54a607b066b5087ffbd00a7c4c24cae4

Use of generative AI

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 was reviewed and tested by OJSBR, which maintains the plugin and is responsible for its releases.

GPL-3.0 · https://github.com/OJSBR/accessibility

@edersotto

Copy link
Copy Markdown
Author

Updated the entry to release 1.0.2.0: control labels are escaped, the styles and script are files instead of inline code, and the package no longer includes .github. The release carries certification type="reviewed" and en alongside en_US; the XML validates against plugins.xsd.

@edersotto
edersotto force-pushed the add-accessibility-block branch from aac31eb to fbec3c6 Compare September 15, 2026 18:18
@edersotto edersotto changed the title Add Accessibility Block plugin (blocks/accessibility) 1.0.1.0 for OJS 3.5 Add Accessibility Block (blocks/accessibility) 1.0.2.1 for OJS 3.3, 3.4 and 3.5 Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant