adamjenkins / moodle-block_oerexchangemodqueue
Dashboard block for OER Exchange moderators: pending reports, failed backup parses, and pending site registrations at a glance.
Package info
github.com/adamjenkins/moodle-block_oerexchangemodqueue
Type:moodle-block
pkg:composer/adamjenkins/moodle-block_oerexchangemodqueue
Requires
- adamjenkins/moodle-local_oerexchange: ^1.0.7
- moodle/composer-installer: ^1.0
- moodle/moodle: >=5.0 <5.3
README
A Moodle Dashboard block for OER Exchange moderators: a single at-a-glance summary of what needs attention, with links straight to the pages that let you act on it.
Each section is gated on its own capability: reports and failed parses on
local/oerexchange:moderate, pending site registrations on
local/oerexchange:managesites. A user holding neither sees empty content
even if an instance somehow ended up on their page, so someone who only
approves site registrations gets that section and nothing else.
What it shows
- Open reports — count, and the oldest few still awaiting review, each
Links through to
moderate.php. - Failed parses — count, and the most recent backup uploads whose
structure parsing failed. Links through to
moderate.php. - Hidden by moderators — how many resources a moderator is currently
holding. Links through to
moderate_hidden.php, the Exchange's report of what has already been taken down. Resources the Exchange removes automatically as abandoned courseware are not counted — no moderator hid them. - Pending site registrations — count, and the oldest few sites still
awaiting approval. Links through to
manage_sites.php.
All data is read directly from
local_oerexchange's
own tables — this block has no database schema, settings, or business logic
of its own. It is presentation-layer only.
Requirements
- Moodle 5.0–5.2 (
$plugin->supported). local_oerexchange1.0.7 or later must already be installed —version.phpdeclares it as a hard dependency, pinned to the build that adds the hidden-resources report, and the Moodle installer will refuse to install this block without it.- The viewing/adding user needs
local/oerexchange:moderateorlocal/oerexchange:managesites(both granted to themanagerarchetype by default); each governs its own section of the block.
Installation
git clone https://github.com/adamjenkins/moodle-block_oerexchangemodqueue.git blocks/oerexchangemodqueue php admin/cli/upgrade.php
Then add the "OER Exchange: moderation queue" block to the Dashboard from the block drawer (available only to users with the required capability).
License
GPL-3.0-or-later, see LICENSE.