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