NAME

add-courses.pl - script to add or update courses/talks within the system.

DESCRIPTION

This script can add or update course details within the system, based on a CSV style file. File format is:

#ActTalkID, Course ID, Course Title, ActUserID, User ID, Tutor, Email
0,0,Perl 101,0,0,Cool Dude,cool.dude@example.com

If the Act IDs or system IDs are unknown, set to zero, and a course entry will be created. Note that the Tutor may be a user that has not been created witin the system. In this case the name is used to reference the tutor, but the tutor may not be able to receive evaluation feedback without an appropriate email address.

If a course is found, either by Title, ActTalkID or CourseID, and the 'update' option is used, the title of the course and tutor details are updated for that course.

Note that if a user is not found within the system, but an email address, or ActUserID, is provided, and the 'create' option is used, a user entry will be created.

USAGE

add-courses.pl [--update] [--create] <file>

OPTIONS

--update

Update course details, if a course is already found within the system.

--create

If a tutor is not found by their email address or ActUserID, create a user, and associate a new keycode, using the data provided for that user.

SEE ALSO

Labyrinth

http://yapc-surveys.org

BUGS, PATCHES & FIXES

There are no known bugs at the time of this release. However, if you spot a bug or are experiencing difficulties that are not explained within the POD documentation, please submit a bug report and/or patch via RT [1], or raise an issue or submit a pull request via GitHub [2]. Note that it helps immensely if you are able to pinpoint problems with examples, or supply a patch.

[1] http://rt.cpan.org/Public/Dist/Display.html?Name=Labyrinth-Plugin-Survey [2] http://github.com/barbie/labyrinth-plugin-survey

Fixes are dependent upon their severity and my availability. Should a fix not be forthcoming, please feel free to (politely) remind me.

AUTHOR

Barbie, <barbie@cpan.org> Miss Barbell Productions, http://www.missbarbell.co.uk/

COPYRIGHT

Copyright (C) 2006-2014 Barbie for Miss Barbell Productions
All Rights Reserved.

This distribution is free software; you can redistribute it and/or
modify it under the Artistic License 2.0.