Diferencia entre revisiones de «Importar grupos»

De MoodleDocs
m (tidy up)
m (tidy up)
Línea 1: Línea 1:
{{EnTraduccion}}
{{EnTraduccion}}
{{Agrupando usuarios}}
{{Agrupando usuarios}}
Groups import provides a simple, easy way to create groups from a spreadsheet (CSV).
Importar grupos proporciona una forma sencilla y fácil para crear grupos a partir de una hoja de cálculo (CSV).


To import groups
Para importar grupos
*Click the 'Import groups' button in ''Settings > Course administration > Users > Groups''
*lija el botón para 'Importar grupos' en ''Configuraciones > Administración del sitio > Usuarios > Grupos''
*Upload the CSV file (see below for file format) either by dragging and dropping into the box with the arrow (''1 below'') or by clicking "choose a file" and uploading from the [[File picker]]. (''2 below'')
*Suba el archivo CSV file (vea el formato del archivo más adelante) ya sea mediante 'arrastrar y soltar' el archivo dentro de la caja con la flecha (''1 más abajo'') o al elegir "elija un archivo" y subirlo con el [[Selector de archivos]]. (''2 más abajo'')


[[File:newimportgroups.png]]
[[File:newimportgroups.png]]


*Click the 'Import groups' button
*Elija el botón para 'Importar grupos'


==CSV file fieldnames==
==Nombres de los campos en el archivo CSV==


The CSV file has just one required fieldname (groupname), but can include default and/or optional fieldnames
El archivo sólamente tiene un nombredecampo obligatorio (groupname), pero puede incluir nombres de campo estándar (por defecto) o nombresdecampo opcionales


* Each line of the file contains one record
* Cada línea del archivo solamente contiene un registro
* Each record is a series of data separated by commas
* Cda registro es una serie de datos separados por comas
* The first record of the file is special, and contains a list of fieldnames. This defines the format of the rest of the file.
* El primer registro del archivo es especial, y contiene una lista de nombresdecampos. Esto define el formato para el resto del archivo.




'''Required fieldnames''' - These fields must be included in the first record, and defined for each user
'''Nombresdecampo obligatorios''' - Estos campos deben estar incluídos en el primer registro, y deben de estar definidos para cada usuario


  groupname
  groupname


'''Default fieldnames''' - These are optional - if they are not included then the values are taken from the current language and current course
'''Nombresdecampo por defecto''' - Estos son opcionales - si no están incluidos, entonces los valores serán tomados del idioma actual y del curso actual


  idnumber,coursename,lang
  idnumber,coursename,lang


'''Optional fieldnames'''
'''Nombresdecampo opcionales'''


  description,enrolmentkey,picture,hidepicture,groupidnumber
  description,enrolmentkey,picture,hidepicture,groupidnumber

Revisión del 17:45 10 mar 2013


Importar grupos proporciona una forma sencilla y fácil para crear grupos a partir de una hoja de cálculo (CSV).

Para importar grupos

  • lija el botón para 'Importar grupos' en Configuraciones > Administración del sitio > Usuarios > Grupos
  • Suba el archivo CSV file (vea el formato del archivo más adelante) ya sea mediante 'arrastrar y soltar' el archivo dentro de la caja con la flecha (1 más abajo) o al elegir "elija un archivo" y subirlo con el Selector de archivos. (2 más abajo)

newimportgroups.png

  • Elija el botón para 'Importar grupos'

Nombres de los campos en el archivo CSV

El archivo sólamente tiene un nombredecampo obligatorio (groupname), pero puede incluir nombres de campo estándar (por defecto) o nombresdecampo opcionales

  • Cada línea del archivo solamente contiene un registro
  • Cda registro es una serie de datos separados por comas
  • El primer registro del archivo es especial, y contiene una lista de nombresdecampos. Esto define el formato para el resto del archivo.


Nombresdecampo obligatorios - Estos campos deben estar incluídos en el primer registro, y deben de estar definidos para cada usuario

groupname

Nombresdecampo por defecto - Estos son opcionales - si no están incluidos, entonces los valores serán tomados del idioma actual y del curso actual

idnumber,coursename,lang

Nombresdecampo opcionales

description,enrolmentkey,picture,hidepicture,groupidnumber


  • Separation between the comma and the text can not be a blank.
  • Commas within the data should be encoded as &#44 - the script will automatically decode these back to commas.
  • For Boolean fields, use 0 for false and 1 for true.
  • Either idnumber or coursename can be used to identify the course. Idnumber overrides coursename. If neither is specified, the groups will be added to the current course.
  • Coursename is the course shortname.
  • Group ID numbers are for matching groups against external systems. Within a course, all group ID numbers must be unique.
  • The file must be in ANSI encoding, at least not be saved in UTF-8 encoding.

Note: If a group is already registered in the Moodle database for a particular course, this script will return the group name for that group. Teachers are only allowed to upload groups in courses they are authorized to edit.


A sample file looks like this:

groupname,description,enrolmentkey
Team 1,Group Assignment Team 1,orange
Team 2,Group Assignment Team 2,purple
Team 3,Group Assignment Team 3,green

Note that groups import doesn't currently handle anything to do with Agrupamientos.