Annotation of loncom/html/adm/help/tex/Batch_Creation.tex, revision 1.7

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>