Subir cursos

De MoodleDocs

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)

Moodle 2.6

Un administrador puede subir múltiples cursos empleando un archivo de texto.

Hay muchas cosas que pueden hacerse empleando esta herramienta; no solamente crear cursos, también actualizarlos o eliminarlos. usted también puede actualizar los métodos para inscripción al curso o importar el contenido de otro curso.

Subir el archivo

Usted puede subir el archivo al navegar hacia Administración > Administración del sitio > Cursos > Subir cursos y allí puede arrastrar y colocar el archivo CSV o elegir el botón para subirlo desde el selector de archivos.

Pantalla de administración de subir cursos
Cursos exitosamente subidos


Nota: también es posible utilizar la herramienta por línea de comando admin/tool/uploadcourse/cli/uploadcourse.php.

Al usar la interfase web, use el botón para Vista previa para ver si se detectaron errores en las filas pre-visualizadas. Si Usted continúa con la subida y hubiera algún error detectado dentro de un curso, será ignorado.

Crear el archivo de texto

El archivo de texto usado para subir cursos debe de ser un archivo CSV. Acepta las siguientes columnas, que están divididas en dos categorías: la información del curso y las acciones del curso.

Campos de información del curso

La mayoría de estas configuraciones están disponibles en la página de configuraciones de un curso. Por favor refiérase Configuraciones del curso para más información.

shortname
El nombre corto del curso
fullname
El nombre completo del cursos
idnumber
El número ID (identificación)
category
La ID de la categoría en donde acomodar al curso. Esto tiene prioridad por sobre category_idnumber y category_path.
category_idnumber
El número ID de la categoría en donde acomodar el curso. Esto tiene prioridad por sobre category_path.
category_path
La ruta de la categoría en donde se acomoda el curso. Si Usted quiere poner al curso dentro de la categoría de "Ciencia-Ficción" que está localizada debajo de la categoría "Películas", el valor a proporcionar es: Películas > Ciencia-Ficción. Tome nota de que el separador debe de ser [space]>[space]. También tome nota de que la categoría DEBE DE EXISTIR, porque no será creada.
visible
1 si el curso es visible, 0 si está oculto
startdate
La hora en que inicia el curso. Por favor, tome nota de que este valor es pasado a la función PHP strtotime para generar el sello de la hora (timestamp).
summary
El resumen del curso
format
El formato de curso a empear, testo debe de ser un nombre válido de plugin de formato de curso; por ejemplo: weeks, topics.
theme
El tema gráfico a usar
lang
El idioma a usar
newsitems
El número de ítems de noticias
showgrades
1 pára mostrarles el Libro de calificaciones a los estudiantes y 0 para ocultarlo.
showreports
1 para mostrar los reportes de actividades y 0 para ocultarlos.
legacyfiles
1 para habilitar los Archivos de curso heredados y 0 para no habilitarlos.
maxbytes
El tamaño en bytes máximo de archivo a subir en el curso. Use 0 para emplear el límite del sitio.
groupmode
0 para Sin grupos, 1 para Grupos separados y 2 para Grupos visibles.
groupmodeforce
1 para forzar el modo de grupo; de otra forma usar 0.
enablecompletion
1 para habilitar Finalización de actividad y 0 para no hacerlo.

Campos de inscripción

Algunos campos pueden emplearse para habilitar y configurar Métodos de inscripción. Los campos deben nombrarse enrolment_[number] para el nombre del método de inscripción, y enrolment_[number]_property para sus propiedades.

enrolment_[number]
The name of the enrolment method
enrolment_[number]_delete
1 to delete this enrolment method from the course, if set to 1 all the other properties will be ignored.
enrolment_[number]_disable
1 to disable this enrolment method from the course, if set to 1 all the other properties will be ignored.
enrolment_[number]_startdate
The enrolment start date. This value is passed to the PHP function strtotime().
enrolment_[number]_enddate
The enrolment start date. This value is passed to the PHP function strtotime().
enrolment_[number]_enrolperiod
Number of seconds, or if not a value understood by strtotime() such as "4 days".
enrolment_[number]_role
The role short name
enrolment_[number]_[property]
Where property is understood by the specified enrolment method

Ejemplo

enrolment_1: manual
enrolment_1_role: student
enrolment_1_enrolperiod: 1 month

enrolment_2: self
enrolment_2_startdate: 2013-01-30

Renombrar roles

Para renombrar algunos roles, usando el patrón siguiente:

role_[shortname]
El nuevo nombre para [shortname].

Example

role_student: Apprentice
role_teacher: Master
role_mycustomrole: Jedi

Campos de acción del curso

Those settings take precedence over the Course process parameters.

delete
1 to delete the course
rename
The shortname to rename the course to
backupfile
An absolute path to a backup file (.mbz) to import in the course
templatecourse
The short name of a course to import the content from
reset
1 to reset the course

Campos obligatorios

shortname
This field is mandatory for every operation, with the only exception of creating new courses. See details on the course process parameter Shortname template for more information.
fullname
Required when creating a new course.
category, category_idnumber, category_path
One of these is required when creating a course.


Opciones para importar

To prevent unexpected behaviours, you have to specify what you want the tool to be able to do.

Upload mode
This allows you to specify if courses can be created and/or updated.
Update mode
If you allow courses to be updated, you also have to tell the tool what to update the courses with.
Allow deletes
Whether the delete field is accepted or not
Allow renames
Whether the rename field is accepted or not
Allow resets
Whether the reset field is accepted or not

Proceso del curso

This allows you to specify actions to be taken on every single courses uploaded.

Shortname template
If you are creating courses without a shortname, you can use this field to automatically generate a shortname. This field accepts two placeholders: %i for the ID number, %f for the summary.
Restore file
A backup file (.mbz) to import in the course after create/update.
Restore from course
The shortname of a course to import content from after create/update.
Reset after upload
Whether to reset the course after creating/updating it.

Valores por defecto del curso

Those are values that can be set in the web interface for all the fields that are not specified in the CSV file. Note that they are always used when creating a course, but only when specified during update (see Update mode).

Aumentar velocidad

When importing the content of a backup file, or another course, you are adviced to enable the setting keeptempdirectoriesonbackup. This will considerably speed up the process of the upload if you are importing multiple times from the same source.