grade/import/smart/index: Difference between revisions
Robert Russo (talk | contribs) |
Robert Russo (talk | contribs) |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
Below you will find a quick description of each file type followed by a more detailed description.<br /> | Below you will find a quick description of each file type followed by a more detailed description.<br /> | ||
At LSU, | == Miscellaneous Information == | ||
At LSU, all idnumbers start with 89. | |||
We call idnumber LSUID; and username PAWSid. Please substitute accordingly. This can be changed in the language editing interface or by editing the language file directly. | |||
If you want to change any of the following formats for use outside of LSU (most are useful as is), please edit classes.php. | If you want to change any of the following formats for use outside of LSU (most are useful as is), please edit classes.php. | ||
This importer is for '''ONE''' grade per imported file. '''You can import multiple files at once''' and they '''do not''' need to be of the same file type. | This importer is for '''ONE''' grade per imported file. '''You can import multiple files at once''' and they '''do not''' need to be of the same file type. | ||
Grades can be in ANY of the following formats: 090.00, 90.00, 90 and will be accepted for all file types. | |||
CSV files can have any number of spaces following or preceding commas to no ill effect. | |||
== Fixed Width Formats == | == Fixed Width Formats == | ||
Line 20: | Line 28: | ||
<pre>XXX89XXXXXXX 100.00 | <pre>XXX89XXXXXXX 100.00 | ||
XXX89XXXXXXX 090.00</pre> | XXX89XXXXXXX 090.00</pre> | ||
'''MEC (Measurement and Evaluation Center)''' | |||
<pre>XXX89XXXXXXXHUE ELLIS 098 1 GEOG100102 88080002 098 100.00 | |||
XXX89XXXXXXXTHE TIGER MIKE 056 1 GEOG100102 88080002 056 090.00</pre> | |||
The fixed width file formats are generally .txt files or files without an extension (coming from alternate sources) and use spaces as a method of creating the appearance of columns.<br /> | The fixed width file formats are generally .txt files or files without an extension (coming from alternate sources) and use spaces as a method of creating the appearance of columns.<br /> | ||
Line 25: | Line 37: | ||
== Comma Separated idnumber File Formats == | == Comma Separated idnumber File Formats == | ||
'''Comma separated grade file keyed with idnumber that contains extra information''' | |||
'''Comma | |||
<pre>89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 100.00 | <pre>89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 100.00 | ||
89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 90.00</pre> | 89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 90.00</pre> | ||
'''Comma | '''Comma separated grade file keyed with idnumber that contains random extra information''' | ||
<pre>89XXXXXXX, {any number of fields}, 100.00 | <pre>89XXXXXXX, {any number of fields}, 100.00 | ||
89XXXXXXX, {any number of fields}, 90.00</pre> | 89XXXXXXX, {any number of fields}, 90.00</pre> | ||
'''Grade file with comma-separated values keyed with idnumber''' | '''Grade file with comma-separated values keyed with idnumber''' | ||
<pre>89XXXXXXX, 100.00 | <pre>89XXXXXXX,100.00 | ||
89XXXXXXX, 90.00</pre> | 89XXXXXXX,90.00</pre> | ||
'''Grade file from the Maple software package''' | '''Grade file from the Maple software package (Please note there are no spaces surrounding the LSUID)''' | ||
<pre>Irrelevant line | <pre>Irrelevant line | ||
Irrelevant line | Irrelevant line | ||
Name, 89XXXXXXX, Grade %, Grade, Weighted %, Blank | Name,89XXXXXXX,Grade%,Grade,Weighted%,Blank | ||
Name, 89XXXXXXX, Grade %, Grade, Weighted %, Blank | Name,89XXXXXXX,Grade%,Grade,Weighted%,Blank | ||
Irrelevant line | Irrelevant line | ||
Irrelevant line</pre | Irrelevant line</pre> | ||
The CSV idnumber files generally come with .csv but the extension is not important with this importer.<br /> | The CSV idnumber files generally come with .csv but the extension is not important with this importer.<br /> | ||
Line 53: | Line 61: | ||
== Comma Separated username File Formats == | == Comma Separated username File Formats == | ||
'''Comma | '''Comma separated grade file keyed with username that contains extra information''' | ||
<pre>username, F, L, M, shortname, data, time, XX, XX, 100.00 | <pre>username, F, L, M, shortname, data, time, XX, XX, 100.00 | ||
username, F, L, M, shortname, data, time, XX, XX, 90.00</pre> | username, F, L, M, shortname, data, time, XX, XX, 90.00</pre> | ||
'''Comma | '''Comma separated grade file keyed with username that contains random extra information''' | ||
<pre>username, {any number of fields}, 100.00 | <pre>username, {any number of fields}, 100.00 | ||
username, {any number of fields}, 90.00</pre> | username, {any number of fields}, 90.00</pre> | ||
'''Grade file with comma-separated values keyed with username''' | '''Grade file with comma-separated values keyed with username''' | ||
<pre>username, 100.00 | <pre>username,100.00 | ||
username, 90.00</pre> | username,90.00</pre> | ||
The CSV username files generally come with .csv but the extension is not important with this importer.<br /> | The CSV username files generally come with .csv but the extension is not important with this importer.<br /> | ||
Line 82: | Line 90: | ||
'''Tab-delimited grade file keyed with username''' | '''Tab-delimited grade file keyed with username''' | ||
<pre>username 100.00 | <pre>username 100.00 | ||
username 90.00</pre> | username 90.00</pre> | ||
'''Tab-delimited grade file keyed with username that contains extra information''' | '''Tab-delimited grade file keyed with username that contains extra information''' | ||
<pre>username F, L M shortname data time XX XX 100.00 | <pre>username F, L M shortname data time XX XX 100.00 | ||
username F, L M shortname data time XX XX 90.00</pre> | username F, L M shortname data time XX XX 90.00</pre> | ||
The Tab-delimited username files generally come with .txt but the extension is not important with this importer.<br /> | The Tab-delimited username files generally come with .txt but the extension is not important with this importer.<br /> | ||
== keypadid file formats == | |||
'''Grade file with comma-separated values keyed with keypadid''' | |||
<pre>keypadid, 100.00 | |||
keypadid, 90.00</pre> | |||
'''Grade file with tabbed values keyed with keypadid''' | |||
<pre>keypadid 100.00 | |||
keypadid 90.00</pre> | |||
== Import Instructions == | == Import Instructions == | ||
Line 109: | Line 127: | ||
#Set permissions accordingly | #Set permissions accordingly | ||
#Enjoy! | #Enjoy! | ||
[[Category:Contributed code]] |
Latest revision as of 20:34, 27 August 2009
Supported File Types
The LSU Smart File Importer accepts many file types of varying extension (.csv, .txt, or no extension at all) and auto detects between the various supported file types.
Below you will find a quick description of each file type followed by a more detailed description.
Miscellaneous Information
At LSU, all idnumbers start with 89.
We call idnumber LSUID; and username PAWSid. Please substitute accordingly. This can be changed in the language editing interface or by editing the language file directly.
If you want to change any of the following formats for use outside of LSU (most are useful as is), please edit classes.php.
This importer is for ONE grade per imported file. You can import multiple files at once and they do not need to be of the same file type.
Grades can be in ANY of the following formats: 090.00, 90.00, 90 and will be accepted for all file types.
CSV files can have any number of spaces following or preceding commas to no ill effect.
Fixed Width Formats
Fixed Width
89XXXXXXX 100.00 89XXXXXXX 090.00
MEC (Measurement and Evaluation Center)
XXX89XXXXXXX 100.00 XXX89XXXXXXX 090.00
MEC (Measurement and Evaluation Center)
XXX89XXXXXXXHUE ELLIS 098 1 GEOG100102 88080002 098 100.00 XXX89XXXXXXXTHE TIGER MIKE 056 1 GEOG100102 88080002 056 090.00
The fixed width file formats are generally .txt files or files without an extension (coming from alternate sources) and use spaces as a method of creating the appearance of columns.
Comma Separated idnumber File Formats
Comma separated grade file keyed with idnumber that contains extra information
89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 100.00 89XXXXXXX, F, L, M, shortname, data, time, XX, XX, 90.00
Comma separated grade file keyed with idnumber that contains random extra information
89XXXXXXX, {any number of fields}, 100.00 89XXXXXXX, {any number of fields}, 90.00
Grade file with comma-separated values keyed with idnumber
89XXXXXXX,100.00 89XXXXXXX,90.00
Grade file from the Maple software package (Please note there are no spaces surrounding the LSUID)
Irrelevant line Irrelevant line Name,89XXXXXXX,Grade%,Grade,Weighted%,Blank Name,89XXXXXXX,Grade%,Grade,Weighted%,Blank Irrelevant line Irrelevant line
The CSV idnumber files generally come with .csv but the extension is not important with this importer.
Comma Separated username File Formats
Comma separated grade file keyed with username that contains extra information
username, F, L, M, shortname, data, time, XX, XX, 100.00 username, F, L, M, shortname, data, time, XX, XX, 90.00
Comma separated grade file keyed with username that contains random extra information
username, {any number of fields}, 100.00 username, {any number of fields}, 90.00
Grade file with comma-separated values keyed with username
username,100.00 username,90.00
The CSV username files generally come with .csv but the extension is not important with this importer.
Tab-delimited idnumber File Formats
Tab-delimited grade file keyed with idnumber
89XXXXXXX 100.00 89XXXXXXX 90.00
Tab-delimited grade file keyed with idnumber that contains extra information
89XXXXXXX F, L M shortname data time XX XX 100.00 89XXXXXXX F, L M shortname data time XX XX 90.00
The Tab-delimited idnumber files generally come with .txt but the extension is not important with this importer.
Tab-delimited username File Formats
Tab-delimited grade file keyed with username
username 100.00 username 90.00
Tab-delimited grade file keyed with username that contains extra information
username F, L M shortname data time XX XX 100.00 username F, L M shortname data time XX XX 90.00
The Tab-delimited username files generally come with .txt but the extension is not important with this importer.
keypadid file formats
Grade file with comma-separated values keyed with keypadid
keypadid, 100.00 keypadid, 90.00
Grade file with tabbed values keyed with keypadid
keypadid 100.00 keypadid 90.00
Import Instructions
- Using the file upload dialog, choose a grade file from your filesystem.
- Click the "Validate File(s)" button.
- The importer will attempt to validate that file and find which format it is.
- If your file does not validate, you must fix any formatting errors in it.
- Once your file is validated, fix any idnumber errors that exist by using the interface that will pop up using the idnumber mapping system.
- Using the "Grade Item Mapping" select box, choose a grade item to map the soon the be imported grades to.
- You may add new files using the green "+" and red "-" buttons.
- Once all of your files are validated and you have selected grade item mappings for them, click the "Upload validated file(s) button.
- On the next screen, you will most likely be shown a success message.
- Any errors that occurred during the import will be reported as well.
Installation
- Copy the smart folder into your moodle_root/grade/import/ folder
- Copy the lang/en_utf8/gradeimport_smart.php file to your appropriate language folder
- Set permissions accordingly
- Enjoy!