Annotation of loncom/html/adm/help/tex/Batch_Creation.tex, revision 1.8
1.2 albertel 1: \label{Batch_Creation}
1.1 raeburn 2: If you choose to batch create LON-CAPA courses by uploading a file
3: containing an XML-based description of the attributes of one or more
4: courses, the XML used in course description should conform to the
5: following, with MSU-specific values replaced with values appropriate for your domain and institution:
6:
7:
8: \paragraph{Example of XML for a single course}
1.6 raeburn 9: \begin{verbatim}
1.1 raeburn 10:
1.6 raeburn 11: <?xml version="1.0" encoding="UTF-8"?>
1.1 raeburn 12: <!DOCTYPE text>
1.6 raeburn 13: <class id="ss05ubw101">
1.1 raeburn 14: <title>Underwater Basket Weaving</title>
15: <crstype>Course</crstype>
16: <coursecode>ss05ubw101</coursecode>
17: <coursehome>msul1</coursehome>
18: <coursedomain>msu</coursedomain>
19: <reshome>/res/msu/</reshome>
1.6 raeburn 20: <optional_id></optional_id>
1.1 raeburn 21: <adds>1</adds>
22: <drops>1</drops>
23: <enrollstart>2005:01:04:10:30</enrollstart>
24: <enrollend>2005:07:04:20:30</enrollend>
25: <accessstart>2005:01:10:10:30</accessstart>
26: <accessend>2005:05:31:10:30</accessend>
27: <authentication>
28: <method>krb4</method>
29: <param>MSU.EDU</param>
30: </authentication>
31: <nonstandard></nonstandard>
32: <topmap></topmap>
33: <firstres>nav</firstres>
34: <crsquota>20</crsquota>
35: <clonecrs>466011437c34194msul1</clonecrs>
36: <clonedom>msu</clonedom>
1.3 raeburn 37: <datemode>shift</datemode>
38: <dateshift>365</dateshift>
1.1 raeburn 39: <showphotos></showphotos>
40: <setpolicy>1</setpolicy>
41: <setcontent>1</setcontent>
1.7 raeburn 42: <setcomment>1</setcomment>
1.1 raeburn 43: <setkeys>0</setkeys>
44: <keyauth>keyadmin@msu</keyauth>
45: <disresdis>1</disresdis>
46: <disablechat>1</disablechat>
47: <openall></openall>
1.8 ! raeburn 48: <openallfrom></openallfrom>
1.6 raeburn 49: <notify_dc>1</notify_dc>
50: <notify_owner>1</notify_owner>
1.1 raeburn 51: <owner>
52: <username>sparty</username>
53: <domain>msu</domain>
54: <authtype>krb4</authtype>
55: <autharg>MSU.EDU</autharg>
56: </owner>
57: <sections>
58: <section>
59: <inst>001</inst>
60: <loncapa>1</loncapa>
61: </section>
62: <section>
63: <inst>002</inst>
64: </section>
65: </sections>
66: <crosslists>
67: <xlist>
68: <inst>ss05zzz101001</inst>
69: <loncapa>1</loncapa>
70: </xlist>
71: </crosslists>
72: <users>
73: <user>
74: <username>sparty</username>
75: <domain>msu</domain>
76: <email>sparty@msu.edu</email>
77: <authtype>krb4</authtype>
78: <autharg></autharg>
79: <firstname>MSU</firstname>
80: <generation></generation>
1.6 raeburn 81: <lastname>Spartan</lastname>
1.1 raeburn 82: <middlename></middlename>
83: <studentID></studentID>
84: <roles></roles>
85: </user>
86: <user>
87: <username>itds0001</username>
88: <domain>northwood5</domain>
89: <email>itds0001@msu.edu</email>
1.4 raeburn 90: <authtype>internal</authtype>
1.1 raeburn 91: <autharg></autharg>
92: <firstname>Info</firstname>
93: <generation></generation>
94: <lastname>Techc</lastname>x
95: <middlename></middlename>
96: <studentID></studentID>
97: <roles>
1.6 raeburn 98: <role id="in">
1.1 raeburn 99: <start>2005:01:01:12:10</start>
100: <end>2005:12:01:12:10</end>
101: <usec>1</usec>
102: <usec>2</usec>
103: </role>
104: </roles>
105: </user>
106: </users>
107: </class>
1.6 raeburn 108: \end{verbatim}
1.1 raeburn 109:
110: Many of these are binary options (corresponding to either checkboxes
111: or radio buttons in the interactive {}``Create Course'' page).
112:
113: Examples include: setpolicy, setcontent, setkeys, disableresdis, disablechat,
114: openall.
115:
116: A value of 1 between opening and closing tags is equivalent to a checked
1.6 raeburn 117: checkbox or `Yes' response in the original interactive ``Create
1.1 raeburn 118: Course'' web page.
119:
120: A value of 0 or blank is equivalent to an unchecked box or 'No' response.
121:
122: Dates are in the format YYYY:MM:DD:HH:MM:SS (:separators required)
123:
1.8 ! raeburn 124: If openall has a value of 1, but openallfrom is blank, then the opendate
! 125: set at a course-level will be the time the batch creation of the course occurs,
! 126: otherwise the date specified for openallfrom will be the date used.
! 127:
1.6 raeburn 128: firstres can be nav, syl, or blank for ``Navigate Contents'',
1.1 raeburn 129: Syllabus, or no entry respectively.
130:
1.5 raeburn 131: crstype is currently one of Course, Community or Placement
1.1 raeburn 132:
133: crsquota is the total disk space (in Mb) permitted for course group portfolio
134: files in all course groups.
135:
136: For format of other parameters, refer to the interactive CCRS page
137: and view how the equivalent parameter is displayed in the web form.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>