Annotation of loncom/html/adm/help/tex/Batch_Creation.tex, revision 1.6
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>
42: <setkeys>0</setkeys>
43: <keyauth>keyadmin@msu</keyauth>
44: <disresdis>1</disresdis>
45: <disablechat>1</disablechat>
46: <openall></openall>
1.6 ! raeburn 47: <notify_dc>1</notify_dc>
! 48: <notify_owner>1</notify_owner>
1.1 raeburn 49: <owner>
50: <username>sparty</username>
51: <domain>msu</domain>
52: <authtype>krb4</authtype>
53: <autharg>MSU.EDU</autharg>
54: </owner>
55: <sections>
56: <section>
57: <inst>001</inst>
58: <loncapa>1</loncapa>
59: </section>
60: <section>
61: <inst>002</inst>
62: </section>
63: </sections>
64: <crosslists>
65: <xlist>
66: <inst>ss05zzz101001</inst>
67: <loncapa>1</loncapa>
68: </xlist>
69: </crosslists>
70: <users>
71: <user>
72: <username>sparty</username>
73: <domain>msu</domain>
74: <email>sparty@msu.edu</email>
75: <authtype>krb4</authtype>
76: <autharg></autharg>
77: <firstname>MSU</firstname>
78: <generation></generation>
1.6 ! raeburn 79: <lastname>Spartan</lastname>
1.1 raeburn 80: <middlename></middlename>
81: <studentID></studentID>
82: <roles></roles>
83: </user>
84: <user>
85: <username>itds0001</username>
86: <domain>northwood5</domain>
87: <email>itds0001@msu.edu</email>
1.4 raeburn 88: <authtype>internal</authtype>
1.1 raeburn 89: <autharg></autharg>
90: <firstname>Info</firstname>
91: <generation></generation>
92: <lastname>Techc</lastname>x
93: <middlename></middlename>
94: <studentID></studentID>
95: <roles>
1.6 ! raeburn 96: <role id="in">
1.1 raeburn 97: <start>2005:01:01:12:10</start>
98: <end>2005:12:01:12:10</end>
99: <usec>1</usec>
100: <usec>2</usec>
101: </role>
102: </roles>
103: </user>
104: </users>
105: </class>
1.6 ! raeburn 106: \end{verbatim}
1.1 raeburn 107:
108: Many of these are binary options (corresponding to either checkboxes
109: or radio buttons in the interactive {}``Create Course'' page).
110:
111: Examples include: setpolicy, setcontent, setkeys, disableresdis, disablechat,
112: openall.
113:
114: A value of 1 between opening and closing tags is equivalent to a checked
1.6 ! raeburn 115: checkbox or `Yes' response in the original interactive ``Create
1.1 raeburn 116: Course'' web page.
117:
118: A value of 0 or blank is equivalent to an unchecked box or 'No' response.
119:
120: Dates are in the format YYYY:MM:DD:HH:MM:SS (:separators required)
121:
1.6 ! raeburn 122: firstres can be nav, syl, or blank for ``Navigate Contents'',
1.1 raeburn 123: Syllabus, or no entry respectively.
124:
1.5 raeburn 125: crstype is currently one of Course, Community or Placement
1.1 raeburn 126:
127: crsquota is the total disk space (in Mb) permitted for course group portfolio
128: files in all course groups.
129:
130: For format of other parameters, refer to the interactive CCRS page
131: and view how the equivalent parameter is displayed in the web form.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>