Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Random assignment: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
 
(13 revisions intermèdies per 2 usuaris que no es mostren)
Línia 1: Línia 1:
__NOTOC__
__NOTOC__


'''Random assignment''' is an attempt to handle larger classes of students. For this purpose, we generate a series of html or pdf files with the
'''Random assignment''' is an attempt to handle larger classes of students. For this purpose, we generate a series of html (txt, pdf, ...) files with the
same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.  
same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.  


== Basic functionality of the module ==
== Basic functionality of the module ==
If there are more files than students, each student will get a different assignment. If there are more students than assignments, then some students will get the same assignment.


=== Students ===
=== Students ===


* Each student gets one file from a given directory randomly.
* Each student gets one file randomly.
* If the file has extension htm or html, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.
* If the file has extension htm, html, or txt, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.


=== Teachers ===
=== Teachers ===


* Teacher specifies a directory containing one or more files for assignments and (optionally) a directory with solutions
* Teacher specifies one or more files for assignments and (optionally) solution files with the same names
* In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.
* In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.


=== Directory structure ===
==Installation Moodle 2.3-2.4==
 
The following structure of directories must be created in the course area
 
  /moddata/random
  /moddata/random/assignment
  /moddata/random/solution
 
The assignments and solutions are then stored in subdirectories of these directories with numerical names, for example


  /moddata/random/assignment/10
* Copy directory random/ to moodle/mod/assign/submission/.
  /moddata/random/solution/20
* If needed, add your language. Language files are located in moodle/mod/assign/submission/random/lang
* Hack file mod/assign/renderer.php: add code from random/renderer_hack/renderer.include.php before the return statement of the function render_assign_header. The detailed procedure is as follows:
** backup mod/assign/renderer.php to mod/assign/renderer.orig.php
** find last line of the function render_assign_header in mod/assign/renderer.php and add file random/renderer_hack/renderer.include.php before it
** the difference between modified and original file must be the same as between random/renderer_hack/renderer.php and random/renderer_hack/renderer.orig.php
** if your Moodle is updated, check if file mod/assign/renderer.php was not modified. If yes, repeat the previous steps


We can for example have
==Installation Moodle 2.0-2.2==


  /moddata/random/assignment/10/file1.html
* Copy directory random/ to moodle/mod/assignment/type/.
  /moddata/random/assignment/10/otherfile.html
* If needed, add your language. Language files are located in moodle/mod/assignment/type/random/lang
  /moddata/random/assignment/10/file2.pdf
* If upgrade from Moodle 1.9 will be performed, replace the file assignment/db/upgrade.php by the provided one.
  /moddata/random/assignment/10/file-without-solution.doc
 
and (if needed)
 
  /moddata/random/solution/20/file1.html
  /moddata/random/solution/20/otherfile.html
  /moddata/random/solution/20/file2.pdf 
 
==Installation==
 
* Copy directory random/ to moodle/mod/assignment/type/
* Add the content of the language file lang/en_utf8/random_assignment.php to moodle/lang/en_utf8/assignment.php
* Optionally, for better security, add the content in file.php (file.part.php) regarding random assignment to the corresponding place in moodle/file.php (otherwise, students can guess the solution directory name and then they can read the solution directly from server). Only if there are solutions.
 
==Preparation for assignments==
 
* In the files area check whether directory 'moddata' exists. If not, create it.
* In the directory moddata, create directory 'random'.
* In the directory random, create two directories: 'assignment' and 'solution'.  


==Creation of an assignment==
==Creation of an assignment==


* Create a directory with numerical name in directory 'assignment'. Numerical name can be for example 1, 2, 10, 300, ...
* Create activity: Assignment: random assignment and specify files for assignments and solutions.
* Copy files with assignments to this directory.
* Optionally, create a directory in directory 'solution' with numerical name and copy the files with the same names as before. These contain solutions or hints to solutions for teachers.
* Create activity: random assignment and specify directories for assignments and solutions.
 


==Credits==
==Credits==
Línia 70: Línia 45:
* Miroslav Fikar - Slovak Technical University in Bratislava > design concept
* Miroslav Fikar - Slovak Technical University in Bratislava > design concept


==Links==
==Issues==


* [http://www.kirp.chtf.stuba.sk/moodle/file.php/1/random_assignment.zip Download]
* Not known at the moment.


[[Category:Teacher]]
[[Category:Contributed code]]

Revisió de 07:06, 13 abr 2013


Random assignment is an attempt to handle larger classes of students. For this purpose, we generate a series of html (txt, pdf, ...) files with the same structure but different numbers. In addition, we generate corresponding files with hints to solutions for teachers.

Basic functionality of the module

If there are more files than students, each student will get a different assignment. If there are more students than assignments, then some students will get the same assignment.

Students

  • Each student gets one file randomly.
  • If the file has extension htm, html, or txt, it will be shown directly at the assignment page. Otherwise, only a link to file will be shown.

Teachers

  • Teacher specifies one or more files for assignments and (optionally) solution files with the same names
  • In the assignment feedback page, teacher sees the assignment file and optionally the solution file as well. However, assignments are assigned to students (and teacher sees links to them) only after they see them for the first time.

Installation Moodle 2.3-2.4

  • Copy directory random/ to moodle/mod/assign/submission/.
  • If needed, add your language. Language files are located in moodle/mod/assign/submission/random/lang
  • Hack file mod/assign/renderer.php: add code from random/renderer_hack/renderer.include.php before the return statement of the function render_assign_header. The detailed procedure is as follows:
    • backup mod/assign/renderer.php to mod/assign/renderer.orig.php
    • find last line of the function render_assign_header in mod/assign/renderer.php and add file random/renderer_hack/renderer.include.php before it
    • the difference between modified and original file must be the same as between random/renderer_hack/renderer.php and random/renderer_hack/renderer.orig.php
    • if your Moodle is updated, check if file mod/assign/renderer.php was not modified. If yes, repeat the previous steps

Installation Moodle 2.0-2.2

  • Copy directory random/ to moodle/mod/assignment/type/.
  • If needed, add your language. Language files are located in moodle/mod/assignment/type/random/lang
  • If upgrade from Moodle 1.9 will be performed, replace the file assignment/db/upgrade.php by the provided one.

Creation of an assignment

  • Create activity: Assignment: random assignment and specify files for assignments and solutions.

Credits

The activity has been designed and built with the contributions of the following people:

  • Lubos Cirka - Slovak Technical University in Bratislava > development
  • Miroslav Fikar - Slovak Technical University in Bratislava > design concept

Issues

  • Not known at the moment.