Auth Functions - warwickfoster/qurantools GitHub Wiki

File: app/admin/lemmata_correction_tool.php

Purpose

This PHP page is a lemma correction tool used to review and edit lemma translations in a database. It allows users to filter, search, and make changes to lemma entries, including correcting translations, adding alternative translations, and marking them as fixed.

Key Features

  • Filtering Users can filter the lemma list based on different criteria, such as status (approved, not yet approved, etc.).
  • Searching A search bar allows users to search for specific lemma entries.
  • Translation Editing Users can edit the corrected and alternative translations of lemma entries.
  • Marking as Fixed Users can mark lemma entries as fixed by checking a checkbox.
  • Page Navigation The page provides a page navigator to navigate through the filtered list of lemma entries.
  • SQL Generation Users can generate SQL code to update an offline database with the changes made in the tool.

Functionality

  1. Filtering and Search Users can select filter criteria and enter search terms using the provided forms.
  2. Lemma Listing The page displays a list of lemma entries based on the filtered criteria.
  3. Translation Editing Users can edit the corrected and alternative translations for each lemma entry.
  4. Marking as Fixed Users can check the checkbox for each lemma entry to mark it as fixed.
  5. Page Navigation The page navigator allows users to navigate through the filtered list of lemma entries.
  6. SQL Generation Users can generate SQL code to update an offline database with the changes made in the tool.

Permissions

  • Only users with administrative privileges can access the tool.
  • Different filter options are available based on user permission levels.

Additional Notes

  • The page uses the Tipped JavaScript library for tooltips.
  • The move_back_to_top_button() function is used to adjust the position of the "Back to Top" button when the page navigator is displayed.