Skip to content

Commit 0c8d5c4

Browse files
committed
Data Exchange: Examination XML
- Examination XML Export: added the following examination attributes: enrollment: number of students enrolled in the classes/courses of the exam limit: total limit of the classes/courses of the exam
1 parent 6255b25 commit 0c8d5c4

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Documentation/Interfaces/CourseOfferingExport.dtd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
<!ATTLIST exam id CDATA #IMPLIED >
133133
<!ATTLIST exam name CDATA #REQUIRED >
134134
<!ATTLIST exam size NMTOKEN #IMPLIED >
135+
<!ATTLIST exam enrollment NMTOKEN #IMPLIED >
136+
<!ATTLIST exam limit NMTOKEN #IMPLIED >
135137
<!ATTLIST exam note CDATA #IMPLIED >
136138
<!ATTLIST exam length NMTOKEN #REQUIRED >
137139
<!ATTLIST exam seatingType ( normal | exam) #IMPLIED >

JavaSource/org/unitime/timetable/dataexchange/CourseOfferingExport.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ protected void exportExam(Element offeringElement, InstructionalOffering offerin
523523
examElement.addAttribute("name", exam.getLabel());
524524
if (exam.getExamSize() != null)
525525
examElement.addAttribute("size", String.valueOf(exam.getExamSize()));
526+
examElement.addAttribute("enrollment", String.valueOf(exam.countStudents()));
527+
examElement.addAttribute("limit", String.valueOf(exam.getLimit()));
526528
examElement.addAttribute("length", String.valueOf(exam.getLength()));
527529
if (exam.getNote()!=null)
528530
examElement.addAttribute("note", exam.getNote());

WebContent/help/Release-Notes.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@
100100
<line>Fixed an exception that was thrown when a first name or a last name is just a single space for name formats using initials.</line>
101101
</description>
102102
</item>
103+
<item>
104+
<name>Data Exchange: Examination XML</name>
105+
<description>
106+
<line>Examination XML Export: added the following examination attributes:
107+
<line>enrollment: number of students enrolled in the classes/courses of the exam</line>
108+
<line>limit: total limit of the classes/courses of the exam</line>
109+
</line>
110+
</description>
111+
</item>
103112
<item>
104113
<name>Technology Update</name>
105114
<description>

0 commit comments

Comments
 (0)