vmsreeram / moodle-qtype_essayannotate

A moodle question plugin that supports PDF annotation
0 stars 0 forks source link

About the plugin

The essay annotate question type is an extension to essay question type that allows the teacher to annotate the files uploaded as attachments by the student in an answer. The file types supported include PDF and those with mime type image (such as .png and .jpeg) and mime type text (such as .py, .c, .cpp, and .txt). The plugin requires the permission to execute external binary files on the Moodle server. The user documentation can be found in the Wiki section.

Technical report and demo video can be found here.

Dependencies

Supported versions

Tested on Moodle versions 4.0 to 4.4

Installation steps

  1. Installing the plugin

    Using GUI - Download the repository as a ZIP file by navigating to `Code` > `Local` > `Download ZIP` in the homepage of the repository, or using this [link](https://github.com/vmsreeram/essayannotate/archive/refs/heads/main.zip). - Login to Moodle as Admin - Navigate to `Site administration` > `Plugins` > `Install plugins` - Upload the ZIP file to `ZIP package` section. - Expand `Show more...` - Choose `Plugin type` as `Question type (qtype)`. - Rename the root directory to `essayannotate`. - Click on `Install plugin from ZIP file` and follow the prompted steps.
    Manually - Get the contents of the repo by either - Downloading the repository as a ZIP file by navigating to `Code` > `Local` > `Download ZIP` in the homepage of the repository, or using this [link](https://github.com/vmsreeram/essayannotate/archive/refs/heads/main.zip). Then unzip the repo, and rename the folder name to `essayannotate`. - Cloning this repo. Then rename the folder name to `essayannotate`. - Move this folder into the `question/type` folder on your Moodle site, to create a new folder at `question/type/essayannotate`. - Login to Moodle as Admin - Follow the prompted steps to install the plugin. If install/upgrade does not begin automatically, you can initiate it manually by navigating to the following link: `Administration` > `Site administration` > `Notifications`
  2. Installing the dependencies (if required)

    • Install ImageMagick from here.
    • Install Ghostscript from here.
  3. Configuring the settings

    • Once installation is successful, you will be prompted to enter ImageMagick Path and Ghostscript Path. You can get these by running which convert and which gs respectively.
    • Replace the following line in /etc/ImageMagick-xx/policy.xml (xx is the version number).

      <policy domain="coder" rights="none" pattern="PDF" />

      with

      <policy domain="coder" rights="read|write" pattern="PDF" />

      To check ImageMagick is working, convert a png file to a pdf, in terminal run convert file.png file.pdf.

    • Create a directory essayPDF with write permission to the user running the Moodle server in the temp dir of Moodle data.

The Team

This work has been completed as part of three Undergraduate Major Projects at IIT Palakkad over the years 2021-22, 2022-23, and 2023-24.

Project Mentor Email ID
Dr. Jasine Babu jasine@iitpkd.ac.in
Developers Email ID Year Repo
Nideesh N nideeshnagarajan@gmail.com 2023-24 https://github.com/vmsreeram/moodle-qtype_essayannotate
VM Sreeram vm.sreeram02@gmail.com
Asha Jose ashaj0308@gmail.com 2022-23 github.com/Parvathy-S-Kumar/Moodle_Quiz_PDF_Annotator
Parvathy S Kumar parvathyskumar187@gmail.com
Vishal Rao raovishal487@gmail.com 2021-22 github.com/TausifIqbal/moodle_quiz_annotator
Tausif Iqbal tausifiqbalti21@gmail.com

Special thanks to Mr. Sumesh K S (Technical Supdt.) & Mr. Neeraj Patil (BTech 2022) for their support in testing.

Third party code used

Icon

The icon for this plugin is taken from svgrepo.com.

LICENSE: MIT License
AUTHOR: instructure-ui