Annotation of loncom/html/adm/help/tex/Batch_Creation.tex, revision 1.3
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}
9:
10: <?xml version=\char`\"{}1.0\char`\"{} encoding=\char`\"{}UTF-8\char`\"{}?>
11:
12: <!DOCTYPE text>
13:
14: <class id=\char`\"{}ss05ubw101\char`\"{}>
15:
16: <title>Underwater Basket Weaving</title>
17:
18: <crstype>Course</crstype>
19:
20: <coursecode>ss05ubw101</coursecode>
21:
22: <coursehome>msul1</coursehome>
23:
24: <coursedomain>msu</coursedomain>
25:
26: <reshome>/res/msu/</reshome>
27:
28: <optional\_id></optional\_id>
29:
30: <adds>1</adds>
31:
32: <drops>1</drops>
33:
34: <enrollstart>2005:01:04:10:30</enrollstart>
35:
36: <enrollend>2005:07:04:20:30</enrollend>
37:
38: <accessstart>2005:01:10:10:30</accessstart>
39:
40: <accessend>2005:05:31:10:30</accessend>
41:
42: <authentication>
43:
44: <method>krb4</method>
45:
46: <param>MSU.EDU</param>
47:
48: </authentication>
49:
50: <nonstandard></nonstandard>
51:
52: <topmap></topmap>
53:
54: <firstres>nav</firstres>
55:
56: <crsquota>20</crsquota>
57:
58: <clonecrs>466011437c34194msul1</clonecrs>
59:
60: <clonedom>msu</clonedom>
61:
1.3 ! raeburn 62: <datemode>shift</datemode>
! 63:
! 64: <dateshift>365</dateshift>
! 65:
1.1 raeburn 66: <showphotos></showphotos>
67:
68: <setpolicy>1</setpolicy>
69:
70: <setcontent>1</setcontent>
71:
72: <setkeys>0</setkeys>
73:
74: <keyauth>keyadmin@msu</keyauth>
75:
76: <disresdis>1</disresdis>
77:
78: <disablechat>1</disablechat>
79:
80: <openall></openall>
81:
82: <notify\_dc>1</notify\_dc>
83:
84: <notify\_owner>1</notify\_owner>
85:
86: <owner>
87:
88: <username>sparty</username>
89:
90: <domain>msu</domain>
91:
92: <authtype>krb4</authtype>
93:
94: <autharg>MSU.EDU</autharg>
95:
96: </owner>
97:
98: <sections>
99:
100: <section>
101:
102: <inst>001</inst>
103:
104: <loncapa>1</loncapa>
105:
106: </section>
107:
108: <section>
109:
110: <inst>002</inst>
111:
112: <loncapa>2</loncapa>
113:
114: </section>
115:
116: </sections>
117:
118: <crosslists>
119:
120: <xlist>
121:
122: <inst>ss05zzz101001</inst>
123:
124: <loncapa>1</loncapa>
125:
126: </xlist>
127:
128: </crosslists>
129:
130: <users>
131:
132: <user>
133:
134: <username>sparty</username>
135:
136: <domain>msu</domain>
137:
138: <email>sparty@msu.edu</email>
139:
140: <authtype>krb4</authtype>
141:
142: <autharg></autharg>
143:
144: <firstname>MSU</firstname>
145:
146: <generation></generation>
147:
148: <lastname>Spartan</lastname>x
149:
150: <middlename></middlename>
151:
152: <studentID></studentID>
153:
154: <roles></roles>
155:
156: </user>
157:
158: <user>
159:
160: <username>itds0001</username>
161:
162: <domain>northwood5</domain>
163:
164: <email>itds0001@msu.edu</email>
165:
166: <authtype>int</authtype>
167:
168: <autharg></autharg>
169:
170: <firstname>Info</firstname>
171:
172: <generation></generation>
173:
174: <lastname>Techc</lastname>x
175:
176: <middlename></middlename>
177:
178: <studentID></studentID>
179:
180: <roles>
181:
182: <role id='in'>
183:
184: <start>2005:01:01:12:10</start>
185:
186: <end>2005:12:01:12:10</end>
187:
188: <usec>1</usec>
189:
190: <usec>2</usec>
191:
192: </role>
193:
194: </roles>
195:
196: </user>
197:
198: </users>
199:
200: </class>
201:
202: Many of these are binary options (corresponding to either checkboxes
203: or radio buttons in the interactive {}``Create Course'' page).
204:
205: Examples include: setpolicy, setcontent, setkeys, disableresdis, disablechat,
206: openall.
207:
208: A value of 1 between opening and closing tags is equivalent to a checked
209: checkbox or 'Yes' response in the original interactive {}``Create
210: Course'' web page.
211:
212: A value of 0 or blank is equivalent to an unchecked box or 'No' response.
213:
214: Dates are in the format YYYY:MM:DD:HH:MM:SS (:separators required)
215:
216: firstres can be nav, syl, or blank for \char`\"{}Navigate Contents\char`\"{},
217: Syllabus, or no entry respectively.
218:
219: crstype is currently Course
220:
221: crsquota is the total disk space (in Mb) permitted for course group portfolio
222: files in all course groups.
223:
224: For format of other parameters, refer to the interactive CCRS page
225: and view how the equivalent parameter is displayed in the web form.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>