Skip to content
Kamoorjdocs
Documentation

Data Bank

Materials, files, role access and notifications.

On this page

Find a resource

Open Administration → Data Bank (/data-bank). An entry contains translated titles and descriptions, a category, recipient roles and attached files. The table shows the name, category, description, file count, roles and active indicator. Search matches translated titles and descriptions. Filters include category, roles, activity and last notification date. An email link with focus_id opens the corresponding entry when access is available.

Set up categories

Open the bank settings (/data-bank/settings) and choose Categories. Add a category, for example “Regulations”. Enter a name in at least one configured language. Each supplied name is required, is limited to 255 characters and must be unique in its language, including names of deleted categories. A category's slug is generated automatically and retained when renamed. If a name is already taken, check the list and its trash. Category search matches names and slugs.

You can edit, soft-delete and restore categories. A deleted category is removed from the list of choices for new entries. Existing materials stay in the bank. Edit an entry to assign another category or restore the original category.

Create and edit an entry

  1. Choose the create action. The tabs show the institution's configured languages, with the default language first. Enter at least one translation. Every tab you start needs a title of up to 255 characters. Each optional description is limited to 250 characters.
  2. Select a category or leave it empty. Select at least one role. For an ordinary user, the list, detail and trash show active entries sharing at least one of their roles. Super administrators can also see inactive entries and entries assigned to other roles. Role matching does not compare faculties or departments. Roles and scopes
  3. Optionally select local files and check the staged list. Attachments are shared across translations. The editor has no import field for a URL, Moodle or a cloud drive. A text-only entry is valid. The bank accepts uploads of up to 20 MiB each and its validator has no extension allowlist.
  4. Save and check the file count in the list. Creation and editing send is_active=true. There is no separate active switch in the form. The tick in the notification column indicates an active entry. The time of the last notification is tracked in notified_at.

The editor saves the text and roles first, then uploads the newly selected files in a separate request. If an upload fails, find the existing entry and add the missing files through Edit. This avoids creating a second copy of the entry.

Download or remove an attachment

Click the file count, choose the filename and download it to view its contents. The dialog shows name and size and offers no inline preview. Files are kept on the protected disk protected_uploads in the entry's directory. The server checks access, the entry–file association and the existence of the file. If you receive a 404, refresh the entry and check whether the attachment is still present.

To discard a staged upload, remove it from the list before saving. Confirming removal of an existing attachment in the editor sends a separate request and deletes its file. Cancelling the editor cannot restore that file. Deleting the entire entry sends it to the trash. Restoring the entry brings back its remaining attachments.

Notify recipients

Select one or more entries and choose Send notification. Review the displayed roles, enter a subject of up to 255 characters and a nonempty message. In-app delivery (the notification bell) is selected initially. You can add email or select email alone. At least one channel is required.

The system processes each selected entry separately. It resolves recipients from direct assignments to the selected roles in user_roles. A person matching two roles receives one notification per entry. Email delivery requires an address. If no eligible recipient is found, the previous notification date is retained. The bulk result counts successfully processed entries and errors. It does not confirm individual email delivery.

Permissions and example

The interface uses entries.index, entries.show, entries.store, entries.update, entries.destroy, entries.deleted-items and entries.restore. Upload, download, file removal and notification have separate permissions, respectively data-bank.entries.attachments.upload, data-bank.entries.attachments.download, data-bank.entries.delete-attachment and data-bank.entries.notify. Settings require the data-bank-categories module and the relevant categories.index/store/update/destroy/deleted-items/restore actions. The routes declare no organisational data_scope. Role permissions

For example, create “Resit procedure” under Regulations, attach the current PDF and select the Dean role. Verify the title and download the file from the list. Select the entry and notify recipients of the effective date. If someone cannot see the material, check their module access, the entry's activity and their role assignment.

Implementation references

Updated Nov 27, 2026