bobopinna / moodle-mod_reservation

Moodle Reservation activity module
https://moodle.org/plugins/mod_reservation
GNU General Public License v3.0
5 stars 4 forks source link

CSV Import template #33

Closed LorenzoDesign closed 8 months ago

LorenzoDesign commented 1 year ago

Hi everyone, first of all thanks for your dedication and compliments for the plugin.

One very interesting functionality is to import dates from a csv file. I not was able to find any csv file to use as template to import.

Would be nice to provide this file. The file can be linked in the moodle plugin directory home page, here in the description or can be included in the zip file.

Thanks

ian-4tek commented 11 months ago

I am also interrested in a csv template. I'm currently mistified as to the requirements and how to use this. The documentation seems to be absent. Anyone use this and have a template they can provide?

I would be most gratefull. Thanks

ian-4tek commented 11 months ago

Digging in the code I'm guessing that the csv headers should look like the following:

name,teachers,location,locationtext,timestart,timeend,timeopen,timeclose,note,maxrequest,showrequest,parent,overbook,requestlimit_1,field_1,operator_1,matchvalue_1,completionreserved Is this correct, or am I lost?

Please help.

bobopinna commented 11 months ago

Hello, sorry for the big delay in response. Reservation upload works as Moodle user upload works. There is an online help, the question mark near "Reservations upload" in the upload page.

For a full description of Reservation upload file format you could see new documentation.

ALn668 commented 10 months ago

Hallo, i'm a complete newbie.

When i try to import this text file:

course;section;name;timestart
provaGOU24;1;101ProvaProvaProva;2024-12-17 12:42:00

the answer is Warning: Undefined array key 4 in /var/www/html/moodle/mod/reservation/tool/upload.php on line 325 ... Warning: Undefined array key 12 in /var/www/html/moodle/mod/reservation/tool/upload.php on line 325 10 times and image

On row 12 is the correct result. Thank you very much