Quiz OMR : an extention to quiz module to support offline assessments

Quiz OMR : an extention to quiz module to support offline assessments

by Harmeet Saini -
Number of replies: 27
Hi Everyone,
We have added a new patch "Quiz OMR" to "Modules and Plugins" section.
"Quiz OMR" is an extension to Moodle's "Quiz" module. Quiz OMR provides online support for managing and evaluating objective-type assessments which are conducted offline using OMR sheets.

follow the "Modules and Plugins" link for complete details.

It can be downloaded from contrib CVS.

Try out the system and please provide us with your valuable inputs to make the system better. you can post the issues related to "Quiz OMR" in tracker.
Comments and suggestions are welcome.

Thanks,
Harmeet Saini
(For Quiz OMR team)

Average of ratings: -
In reply to Harmeet Saini

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Thoan Van Nguyen -
Dear Harmeet Saini
(For Quiz OMR team)

I am trying to apply Patch of QuizOmr but I really do not know how to do it correctly. Please kindly advise me step by step.

Thank you very much.

Best regards,

NV.Thoan
In reply to Thoan Van Nguyen

applying quiz OMR patch

by Harmeet Saini -
Applying patch on a linux system:
1. Place the patch file in the Moodle installation directory (e.g moodle/patchfile.diff)
2. Navigate to the Moodle directory using shell.
3. So having moodle as the current working directory type following in shell
patch -p1 < patchfile.diff
where patchfile.diff or patchfile.patch is the name of your patch file.
That way patch will be applied to Moodle.

Applying patch on a windows system
1. Download GnuWin from this link
2. create a directory named "bin" in your C drive.
3. place the patch.exe binary in C:\bin
4. Download the patch file and place it in the same directory you put Moodle (C:\moodle\QuizOMR.diff or QuizOMR.patch)
5. Open the patch file with Wordpad, and click 'File' >> 'Save as...', choose a different name for the file eg ('mynewpatch.diff') and "Save as type" >> 'Text Document - MS-DOS Format'
6. Open up a command text window, and type:
cd \moodle
c:\bin\patch.exe --dry-run -p1 < mynewpatch.diff

At this stage the patch has not been applied. We just simulated the application (with the '--dry-run' option), to see if we are going to find any problems with it.
If you do not encounter any problems go ahead with following command to actually apply the patch

7. type
cd \moodle
c:\bin\patch.exe -p1 < mynewpatch.diff

I hope it will work. If still you are facing problems, please specify where you encounter the problem and what is the error that you get.
you can always refer to the documentation "how to apply a patch"
for complete details of how to apply a patch.
In reply to Harmeet Saini

Re: applying quiz OMR patch

by Sojan chandy തേരകം -

dear harmeet ,

My moodle is in c:\wamp\www\

i have gone through all the steps as you said, but the executing patch .exe doesnt display anthing

step by step

1. downloaded gnuwin

2. copied patch.exe to the c:\bin

3. copied the QuizOMR.patch

4 opened QuizOMR.patch in wordpad and saved as ms-dos format, which renames the extension to txt

5. i have renamed the extension to mynewpatch.diff

6. ran the command C:\wamp\www\moodle>c:\bin\patch.exe -p1 < mynewpatch.diff

patch.exe automatically opens but nothing happens.

my bin folder in c:

my moodle folder

Please help

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Jalpa Bhavsar -

try the command given below:

First go to "C:\wamp\www\moodle" from cmd command prompt

1. to test the patch without applying it

c:\bin\patch.exe --dry-run --binary -p1 < mynewpatch.diff

2. to apply patch on moodle

c:\bin\patch.exe  --binary -p1 < mynewpatch.diff

 

Jal.

In reply to Jalpa Bhavsar

Re: applying quiz OMR patch

by Sojan chandy തേരകം -

but how can i confirm whether the patch is applied

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Sojan chandy തേരകം -

actually my concern is mainly,

to have an upload button which will enable the students to upload answers for a particular question.

 

 

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Jalpa Bhavsar -

Can you elaborate what exactly you are looking for

"to have an upload button which will enable the students to upload answers for a particular question." ?

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Jalpa Bhavsar -

to Confirm that patch is applied successfuly. Follow the steps below:

(a) First refer the steps in  http://moodle.org/mod/forum/discuss.php?d=146511#p673783

(b) After applying patch successfully

  1. Login as "Administrator" in your Moodle site
  2. Go to "Site Administrator" block
  3. And click "Notification"
  4. this will install new tables for the patch
  5. Once it shows list of table installed properly without any error
  6. that means your patched is applied successfuly

smile

In reply to Jalpa Bhavsar

Re: applying quiz OMR patch

by dhileep s -

Hi,

I'm using moodle 1.9+ version and i install Quizomr module.The installation was successful but i find difficult to create a quiz using omr i.e Omr quiz .i create the quiz by selecting quiz type as Omr after that create some questions and added to the quiz. i also create a configuration file and add some variants but it difficult for me that how to create an omr answer sheet can anyone plz help me with detail procedure.it is very urgent.

plz help me...

thanks in advance...

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Vishal Upadhayay -

Hii Even i m facing lot of problem in applying patch..!!

I have neva applied n e patch before i m going through instruction given above but getting same error..!!!

Please help me

!!!

In reply to Sojan chandy തേരകം

Re: applying quiz OMR patch

by Allwin Decosta -

I'm having exactly the same problem. How did you solve it ?

In reply to Harmeet Saini

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Yogalakshmi Jayabal -
Hi Harmeet,

I am facing some issue while I am trying to apply the Quiz omr patch. I have followed the instruction given in the documentation to use Gnuwin and apply the patch.

As advised, I went on to have a dry run of the patch, but apparently I get this message in the command prompt,

*****strip count 1 is not a number

which I do not understand. Kindly help me apply the patch.
Attachment Patch_install.JPG
In reply to Yogalakshmi Jayabal

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Jalpa Bhavsar -
Hi Jayabal,

I had one question that the patch which you are applying is applied on fresh moodle or any changes or other patch is applied to the Moodle before applying the OMR quiz patch.

Depending on this I can check and reply you back what will be the solution.

Thanks,
Jalpa
In reply to Yogalakshmi Jayabal

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Jalpa Bhavsar -

Hi Jayabal,

I found the same problem in the same way how you are applying the patch.
I tried the same step for the fresh Moodle and found the same error.

Now, try the following Steps:
  • Go to moodle/mod/quiz/version.php copy the value of $module->version
  • Open the patch file in text editor and rename as "newfilepatchname.diff"
  • Go to your newfilepatch.diff file
  • Open the file and edit the $module->version at line no : 3577 which you copied earlier from version.php file.
  • Now, Copy the diff file

And try the command to check the patch is OK or Not,
"C:\Program Files\GnuWin32\bin\patch.exe" --dry-run --binary -p1 < diffomrquiz.diff

it will show some records like :
patching file course/modedit.php
patching file lang/en_utf8/help/quiz/omranswers.html
patching file lang/en_utf8/help/quiz/omrattempts.html
patching file lang/en_utf8/help/quiz/omrattendance.html
patching file lang/en_utf8/help/quiz/omrconfigupload.html
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
patching file lang/en_utf8/help/quiz/omrvariant.html
patching file lang/en_utf8/help/quiz/quiztype.html

if their is no error like "Hunk error" than try below command to apply the patch
"C:\Program Files\GnuWin32\bin\patch.exe" --binary -p1 < diffomrquiz.diff

Note Usage of options:--dry-run : Print the results of applying the patches without actually changing any files
--binary : Read and write all files in binary mode.
On systems like DOS where this option makes a difference, the patch should be generated by diff −a −−binary.


Thanks,
Jalpa

In reply to Jalpa Bhavsar

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Yogalakshmi Jayabal -
Hi Jalpa,

Thanks for your information. I was able to apply the patch successfully. I am yet to try out the example provided in the documentation.
In reply to Yogalakshmi Jayabal

Re: Quiz OMR : an extention to quiz module to support offline assessments

by eric schultz -

Hill all

I just installed moodle and tried to install the quizomr.batch and I always have the same error : **** malformed patch at line 409 with or without the --binary option :

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\moodle>c:\bin\patch
.exe --dry-run --binary -p1  <quizomr.diff
(Stripping trailing CRs from patch.)
patching file course/modedit.php
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omranswers.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrattempts.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrattendance.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrconfigupload.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrvariant.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/quiztype.html
c:\bin\patch.exe: **** malformed patch at line 409:


C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\moodle>c:\bin\patch
.exe  --binary -p1  <quizomr.diff
(Stripping trailing CRs from patch.)
patching file course/modedit.php
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omranswers.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrattempts.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrattendance.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrconfigupload.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/omrvariant.html
(Stripping trailing CRs from patch.)
patching file lang/en_utf8/help/quiz/quiztype.html
c:\bin\patch.exe: **** malformed patch at line 409:

 

If somenone can help... that would be great !!!

thanks

In reply to eric schultz

Re: Quiz OMR : an extention to quiz module to support offline assessments

by eric schultz -

I found the solution : it's essential to use WordPad... I was using textpad with a Pc format and this did not work

So it's ok now

In reply to Jalpa Bhavsar

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

I have followed the above instruction everthing went fine but i didnt get records in d end like

 

patching file course/modedit.php
patching file lang/en_utf8/help/quiz/omranswers.html
patching file lang/en_utf8/help/quiz/omrattempts.html
patching file lang/en_utf8/help/quiz/omrattendance.html
patching file lang/en_utf8/help/quiz/omrconfigupload.html
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
patching file lang/en_utf8/help/quiz/omrvariant.html
patching file lang/en_utf8/help/quiz/quiztype.html

have i succesfully  updated my moodle patch or not??

HELP ME........!!!!!!!!

In reply to Jalpa Bhavsar

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

Hiii Jalpa

I have followed the above instruction everthing went fine but i didnt get records in d end like

 

patching file course/modedit.php
patching file lang/en_utf8/help/quiz/omranswers.html
patching file lang/en_utf8/help/quiz/omrattempts.html
patching file lang/en_utf8/help/quiz/omrattendance.html
patching file lang/en_utf8/help/quiz/omrconfigupload.html
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
patching file lang/en_utf8/help/quiz/omrvariant.html
patching file lang/en_utf8/help/quiz/quiztype.html

have i succesfully  updated my moodle patch or not??

HELP ME........!!!!!!!!

In reply to Jalpa Bhavsar

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

Hiii Jalpa

I have followed the above instruction everthing went fine but i didnt get records in d end like

 

patching file course/modedit.php
patching file lang/en_utf8/help/quiz/omranswers.html
patching file lang/en_utf8/help/quiz/omrattempts.html
patching file lang/en_utf8/help/quiz/omrattendance.html
patching file lang/en_utf8/help/quiz/omrconfigupload.html
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
patching file lang/en_utf8/help/quiz/omrvariant.html
patching file lang/en_utf8/help/quiz/quiztype.html

have i succesfully  updated my moodle patch or not??

HELP ME........!!!!!!!!

In reply to Vishal Upadhayay

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

I also checkd out notification but der was nothing available..!!!

Help me pls!!!!

In reply to Vishal Upadhayay

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

I also checkd out notification but der was nothing available..!!!

Help me pls!!!!

In reply to Jalpa Bhavsar

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Vishal Upadhayay -

Hiii Jalpa

I have followed the above instruction everthing went fine but i didnt get records in d end like

 

patching file course/modedit.php
patching file lang/en_utf8/help/quiz/omranswers.html
patching file lang/en_utf8/help/quiz/omrattempts.html
patching file lang/en_utf8/help/quiz/omrattendance.html
patching file lang/en_utf8/help/quiz/omrconfigupload.html
patching file lang/en_utf8/help/quiz/omrdiagnostics.html
patching file lang/en_utf8/help/quiz/omrvariant.html
patching file lang/en_utf8/help/quiz/quiztype.html

have i succesfully  updated my moodle patch or not??

HELP ME........!!!!!!!!

In reply to Harmeet Saini

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Nyree Williams -

Hi

Does quiz OMR work with Moodle 2?

In reply to Nyree Williams

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Cody Nosfe -

Since it is a patch, I doubt it. I would conflict with the main installation and every upgrade. Maybe Harmeet can assist in this.

Student clearly outnumber computers in my institution, so this is sorely needed.
Anyone knows of a OMR plugin for Moodle 2.+?

In reply to Harmeet Saini

Re: Quiz OMR : an extention to quiz module to support offline assessments

by Allwin Decosta -

I'm having some difficulty applying the patch. To apply the quizomr patch, I did these steps - 

1. Installed moodle at C:\wamp\www\moodle 

2. Downloaded gnuwin32 and saved it at C:\bin\patch.exe

3. I opened quizomr.patch in wordpad, saved it as mynewpatch.diff as a Text Document MS Dos format in the same directory where moodle is installed, ie in C:\wamp\www\moodle 

4. I opened command line and entered the following -     

cd wamp\www\moodle 
c:\bin\patch.exe --dry-run -p1 < mynewpatch.diff

 

But I get this error - 

This system cannot find the file specified.

 

My problem is same as the problem of Sojan chandy തേരകം in this thread but I'm unable to find a solution even after reading all the posts here. 

Attachment err.png