11.11. Fonctions expérimentales

As site administrator you have the following experimental features available to you:

  • exportation par lots au format Leap2A

  • importation par lots au format Leap2A

  • PDF export

  • Utilisation de la variable useruniquebyusername

Vous ne pouvez pas accéder à ces fonctions à l’aide des menus de navigation standards. Vous devez au contraire entrer directement l’adresse URL pour accéder aux options d’actions par lots, ou configurer une variable dans config.php.

Avertissement

The export and import of portfolios uses quite a lot of computing power. Therefore, these bulk options require even more memory. Please try them first out on a test installation or export / import only a small number of accounts instead of an entire institution at once.

11.11.1. Bulk export of accounts

[votre adresse URL normale de Mahara]/admin/users/bulkexport.php

If you need to export the portfolios of multiple accounts at once, you can do so from the bulk export page. Please remember that this is an experimental feature at the moment.

Experimental feature: Bulk export

Fonctionalité expérimentale : Export en lots

  1. new in Mahara 20.04 Choose an export format: Select in which format you want to export accounts. Per default, HTML and Leap2A are available. If you enabled PDF export, you will see that as an option as well.

  2. Institution: Choose the institution from the drop-down menu for which you want to export all accounts.

  3. Usernames to export: Alternatively, choose this option if you only wish to export some people’s accounts. Each username must be on a separate line.

  4. Click the Export accounts button to start the export process. This might take a while.

Note

You can look up the usernames on the people search page or if you exported a CSV file of account holders, you have the usernames in there as well.

11.11.2. Import accounts from Leap2A files

[votre adresse URL normale de Mahara]/admin/users/bulkimport.php

If you need to import the portfolios of multiple people at once, you can do so from the bulk import page. Please remember that this is an experimental feature at the moment. You must have Leap2A files to import. The import of HTML files is not possible.

The easiest option to import portfolios in bulk is to use the bulk export file as all information is contained therein. If that is not possible, you can create the necessary ZIP file manually.

11.11.2.1. Importation par lots en utilisant un fichier d’exportation par lots

Experimental feature: Bulk import

Fonctionalité expérimentale : Import en lots

Ideally, you have exported the account data you wish to import using the bulk export functionality on the other Mahara instance. Then the bulk export file already contains all necessary files and mappings.

Note

Before importing these new accounts, you can change the usernames for these new accounts in the usernames.csv file that is included in the bulk export file.

  1. Institution: Choose the institution in which the accounts shall be created.

  2. Bulk export file: Choose the bulk export ZIP file which contains all accounts that shall be created. A new account will be created for each of them.

  3. Email people about their account: Check this option if people shall receive an email about their new account. This is especially important if they do not know that their account has been moved or if you want to change their username. Don’t use this option if you want to use an external authentication method for their account. They would be emailed their internal Mahara account details but then not be able to use them.

  4. Cliquez sur le bouton Importer comme débuter le processus. Soyez patient car l’importation de nombreuses données peut prendre du temps.

11.11.2.2. Importation par lots en partant de zéro

If you want to import portfolios into one institution using their Leap2A files that you did not receive via the bulk export functionality, you can still import them in bulk.

  1. Créez un dossier, par exemple _ mahara-import-par-lots.

  2. Creez le fichier usernames.csv dans le dossier mahara-import-par-lots. (gardez le nom anglais usernames.csv).

  3. Create a line for each account that you are importing that contains the username and the name of the ZIP file that contains the corresponding Leap2A file.

  4. Créez un sous-dossier users dans le premier. Ne choisissez pas d’autre nom.

  5. Placez tous les fichiers Leap2A que vous désirez importer dans une institution, dans le sous-dossier users. Assurez-vous que chacun de ces fichiers correspond à une entrée dans le fichier usernames.csv.

  6. Create a ZIP file from the folder mahara-bulk-import once you have all accounts in it.

  7. Dans un navigateur web, allez à [l’URL de votre site Mahara]/admin/users/bulkimport.php.

  8. Institution: Choose the institution in which the accounts shall be created.

  9. Bulk export file: Choose the bulk export ZIP file which contains all accounts that shall be created. A new account will be created for each of them.

  10. Email people about their account: Check this option if people shall receive an email about their new account. This is especially important if you change their username and if they do not know that their account has been moved.

  11. Cliquez sur le bouton Importer comme débuter le processus. Soyez patient car l’importation de nombreuses données peut prendre du temps.

Note

Le fichier usernames.csv doit correspondre au modèle ci-dessous et ne dois pas comporter une première ligne de titre :

"petra","mahara-export-leap-user4-1334451885.zip"
"polly","mahara-export-leap-user5-1334451888.zip"

11.11.3. new in Mahara 20.04 PDF export

Voir aussi

See the config.php section on the PDF export for more information.

11.11.4. Utilisation de la variable useruniquebyusername

usersuniquebyusername est une a variable du config.php qui doit être utilisée avec de grandes précautions.

Ci-dessous vous trouverez la documentation qui figure aussi dans le code. Cette fonctionnalité est décrite par l’exemple dans le sujet des forums Mahara Moodle integration and bug? et SSO: Mahara to Moodle.

Note

When turned on, this setting means that it does not matter which other application the person SSOs from. They will be given the same account in Mahara.

Cette configuration implique des risques de sécurité et ne doit donc être utilisée que par des personnes qui savent ce qu’elles font. En particulier, tous les systèmes, comme Mahara, doivent s’assurer que le même nom d’utilisateur se rapporte à la même personne. Cela est assuré par exemple si deux serveurs Moodle utilisent le même service LDAP pour l’authentification.

If this setting is on, it must NOT be possible to self register on the site for ANY institution - otherwise account holders could simply pick usernames of people’s accounts they wished to steal. That is why you should not see the registration checkboxes in any institution if you have this feature turned on.