source: main/waeup.kofa/trunk/docs/source/userdocs/students/browser.rst @ 14596

Last change on this file since 14596 was 14574, checked in by Henrik Bettermann, 8 years ago

Add outstanding attribute to course tickets.

File size: 17.6 KB
Line 
1.. _logging_in_as_student:
2
3Impersonate Students
4====================
5
6Officers with
7:py:class:`LoginAsStudent<waeup.kofa.students.permissions.LoginAsStudent>`
8permission do see a 'Login as student' button on student display
9pages which redirects to a page, where a temporary student password
10can be set by clicking a 'Set password now' form button. The
11temporary password is valid for 10 minutes. During this period the
12student can't login. The officer is being redirected to a login page
13which allows to directly login as student with pre-filled temporary
14credentials. The second page is to avoid that officers must remember
15the student credentials, have to logout from their own account and
16manually login as student via the regular login page. After 10
17minutes the officer is automatically thrown out and the student is
18able to login again (if the officer hasn't changed the password).
19Attention: When logging in as student, the officer really
20impersonates the student. All actions are logged with the student id
21and not with the officer's user id. However, start of student
22impersonation is also logged, so that officers can be identified and
23fraudulent use can be discovered.
24
25
26.. _starting_clearance:
27
28Starting Clearance
29==================
30
31When students start the clearance process, Kofa checks if the
32passport picture has been uploaded and the email address field as
33well as the phone number field filled. If not, students can't
34proceed with clearance.
35
36
37.. _rejecting_clearance:
38
39Rejecting Clearance
40===================
41
42When a clearance officer clicks the 'Save comment and reject
43clearance now' button, the `reject` action method of the
44:py:class:`StudentRejectClearancePage<waeup.kofa.students.browser.StudentRejectClearancePage>`
45is called. This method first checks, in which workflow state the
46student is, and fires a transition accordingly. Then the comment,
47which should explain why the request was requested, is saved twice
48in the `officer_comment` attribute of the student and in
49``students.log``. As soon as the `clear` transition (d) is effected,
50an event handler clears the attribute again. The logfile message is
51permanent and ensures that the original cause of rejection can
52always be reconstructed.
53
54Finally, the method redirects to the `ContactStudentFormPage` and prefills
55the HTML form with the comment previously saved. The clearance
56officer can leave the comment as it is, or can modify the text to
57give more information about the reason of rejection. This comment
58will then be sent to the student by email. This comment is not saved,
59neither in the student object nor in the logfile.
60
61.. important::
62
63  All messages sent via Kofa contact forms are private. They are
64  neither stored in the database nor in any logfile. The emails are
65  also not forwarded to any other email address. Thus senders and
66  recipients can be sure that nobody else is eavesdropping and the
67  correspondence is kept secret.
68
69.. seealso::
70
71  :ref:`Clearance Handling Tests <test_handle_clearance>`
72
73
74.. _transferring_students:
75
76Student Transfer
77================
78
79Transferring a student means enabling the student to study another
80programme.
81
82The simple but dirty way is to select another certificate and adjust
83study course attributes accordingly. Existing study levels can be
84either removed or, in case registered courses can be credited, left
85as they are. This simple way is tedious and also dangerous, because
86changes are not tracable. Only the logfile can tell us, that an
87officer has edited the student's data. The data of the previous
88study course are not backed up. They are lost.
89
90Kofa provides a more adequate, cleaner and tracable way of
91transferring students. It can make a backup of the entire study
92course container and create a new and empty container for the new
93study programme with only one click or even by batch processing.
94
95After clicking the 'Transfer student' button the
96`StudentTransferFormPage` opens and asks for the new certificate,
97current session, current level and current verdict. After submitting
98this form, the student transfer method checks if the old study
99course is complete and ready for transfer. It also checks if the
100number of possible transfers is not exceeded. Kofa allows two (2)
101transfers! Finally the copying process is started and history and
102logfile messages are added.
103
104The old study course container(s) can still be accessed via links on
105the current study course display form page. But, they can neither be
106edited, removed, exported or reimported.
107
108
109Batch Transferring Students
110---------------------------
111
112Sometimes students of an entire study programme have to be
113transferred to another programme. This can be done with the
114:py:class:`StudentStudyCourseProcessor<waeup.kofa.students.batching.StudentStudyCourseProcessor>`.
115The import file must contain the following columns: `student_id`
116(or any other locator), `certificate`, `current_session`,
117`current_level` and `entry_mode`. Do not import `entry_session`. A
118transfer is automatically initialized if the `entry_mode` value is
119``transfer``.
120
121
122Reverting Previous Transfers
123----------------------------
124
125Previous transfers can be reverted by opening the previous study
126course and clicking the 'Reactivate this study course (revert
127previous transfer)' button. This is a complete rollback of the last
128transfer. The current study mode will be irrevocably deleted and
129replaced by the previous study course. The second last study course
130will become the previous study course.
131
132
133.. _student_payment_tickets:
134
135Payments
136========
137
138The `PaymentsManageFormPage` is used by both students and students
139officers. The page tabulates existing payment tickets and allows to
140add or remove tickets. Officers can remove all payment tickets,
141students only those without a response code (`r_code`). Attention:
142Students can remove tickets without response code even if they have
143been marked paid.
144
145There are three different add form pages to add
146`StudentOnlinePayment` instances (= payment tickets). They all
147create objects of the same type, only their attributes are set
148differently.
149
150
151Current Session Payment Tickets
152-------------------------------
153
154Current session payments are the regular payments which have to be
155made in each session to proceed to the next registration step. The
156add form provides a select box of available payment categories
157(`p_category`). After submitting the form, Kofa determines the total
158amount and sets attributes like payment item (`p_item`), payment
159session (`p_session`) and payment level (`p_level`) automatically.
160The Boolean `p_current` attribute is set ``True``. The creation
161datetime is stored in the `creation_date` attribute and is also used
162to construct the unique payment id (`p_id`).
163
164.. note::
165
166  Kofa always determines the total amount, including any fees charged
167  by the school and its service providers. This is the amount which is
168  authorized by students and finally submitted to one of the payment
169  gateways. No fees can be added once the payment ticket is created.
170  Payment tickets do not store any information about charged fees.
171
172
173Payment Ticket Redemption
174-------------------------
175
176Directly after a student payment ticket has been paid - either by
177approval by an officer or by receiving a positive response from a
178payment gateway - the
179:py:meth:`redeemTicket<waeup.kofa.students.payments.StudentOnlinePayment.redeemTicket>`
180method is called. Depending on the category of the payment, an
181appropriate access or activation code is beeing created for the
182owner of the ticket. This code must be entered on certain form pages
183to activate the paid service or to access the next stage of the
184registration process. In other words, making a payment and redeeming
185a payment are two different steps. Successful payments do not
186automatically trigger any action in the portal but create a specifc
187access code which can be used to trigger access-code-related actions
188(see :ref:`accesscodes`).
189
190Until May 2015 also school fee payments had produced access codes,
191which enabled students to start the next session. Since software
192revision 12889, Kofa bypasses SFE access code creation and starts
193the next session automatically.
194
195
196Previous Session Payment Tickets
197--------------------------------
198
199Previous session payments are additional payments which do not
200induce further actions in Kofa. Their sole purpose is to enable
201students to pay for services in previous sessions which they missed
202to pay. The add form for previous session payments allows the
203student to select the payment category, session and level by
204him/herself.
205
206
207Balance Payment Tickets
208-----------------------
209
210Balance payments have been introduced to correct previously made
211payments. In some cases, students select the wrong payment category,
212or other things may have happened which led students pay less than
213expected. This can be balanced by paying a differential amount.
214Therefore, the add form for balance payments allows to freely choose
215the total amount to be paid. It also asks for the category, the
216session and the level the payment is meant for. Like previous
217session payments, balance payments do not induce further actions in
218Kofa. Both can be omitted in customized versions of Kofa if these
219features are not needed.
220
221.. _course_registration:
222
223Course Registration
224===================
225
226Study levels are pre-filled with course tickets. When adding a study
227level,
228:py:meth:`StudentStudyCourse.addStudentStudyLevel<waeup.kofa.students.studycourse.StudentStudyCourse.addStudentStudyLevel>`
229automatically adds course tickets in two steps:
230
2311.  :py:meth:`StudentStudyLevel.addCertCourseTickets<waeup.kofa.students.studylevel.StudentStudyLevel.addCertCourseTickets>`
232    is called which iterates over the certificate courses of the
233    certificate container object in the academic section and creates
234    course tickets if the `level` attribute matches. `title`, `fcode`,
235    `dcode`, `credits`, `passmark` and `semester` are copied from the
236    course object which is attached to the certificate course;
237    `mandatory` is taken from the certificate course itself. Finally,
238    `automatic` is set to ``True`` and `carry_over` to ``False.``
239
2402. The portal can be configured
241   (`IConfigurationContainer.carry_over`) such that failed courses
242   are automatically carried over from one session to the next.
243   Failed course tickets from the previous level, i.e. tickets
244   with a score below the passmark, are collected and 'copied'
245   into the current study level container. The attributes
246   `automatic` and `carry_over` are set to ``True``.
247
248In most cases such an automatically created course list is not
249perfect or even ready for submission to the course adviser. The list
250must be edited according to the student's needs. Students can select
251further courses, which they desire to attend, and can create
252additional course tickets, as long as the total number of credits do
253not exceed 50 (value customizable).
254
255In most cases such an automatically created course list is not
256perfect or even ready for submission to the course adviser. The list
257must be edited according to the student's needs. Students can select
258further courses, which they desire to attend, and can create
259additional course tickets, as long as the total number of credits of
260non-outstanding courses (if `outstanding` attribute is ``True``) do
261not exceed 50 (value customizable). That means outstanding courses
262are not considered as registered courses. Usually they are being
263added by officers.
264
265Course tickets can also be removed. Whereas officers can remove any
266ticket from the list, students can remove only optional
267(non-mandatory) course tickets (condition customizable).
268
269The edit form page provides a 'Register course list' button which
270submits the course list to the course adviser for validation. If the
271course registration deadline
272(`ISessionConfiguration.coursereg_deadline`) is set and the
273registration period has expired, a late registration fee
274(`ISessionConfiguration.late_registration_fee`) is charged. This
275payment has to be made first, otherwise a warning message appears in
276the browser.
277
278Course advisers can't edit the registered/submitted course list, but
279they can validate or reject it by pressing the same-named link
280buttons. After pressing the 'Reject courses' button, Kofa redirects
281to the `ContactStudentFormPage` which can be used to inform the
282student about the reason of rejection. In contrast to clearance
283rejection, the message, which is being sent to the student by email,
284is neither stored in the database nor in the logfiles.
285
286.. seealso::
287
288  :ref:`Course List Validation Tests <test_handle_courses>`
289
290
291.. _batch_editing_scores:
292
293Batch Editing Scores by Lecturers
294=================================
295
296Lecturers cannot access student records directly. They don't have
297access to the students section. Instead, lecturers go to their
298course in the academic section and click the 'Update scores' button
299which opens the `EditScoresPage` if score editing is enabled for
300that department (`IDepartment.score_editing_disabled`) and
301`IConfigurationContainer.current_academic_session` has been set on
302the portal's configuration page. The `EditScoresPage` lists all
303students, who are attending the course in the current academic
304session. Score editing is allowed if the student's current session
305corresponds with the current academic session and the student is in
306state 'courses validated', see method
307:py:meth:`CourseTicket.editable_by_lecturer<waeup.kofa.students.studylevel.CourseTicket.editable_by_lecturer>`.
308
309There are two options to edit course results. (1) Scores in course
310tickets can be changed by editing its values in the table and
311pressing the 'Update scores from table' button below. Scores can be
312cleared by removing the respective values. Lecturers have to be
313online during this process.(2) Alternatively, lecturers can download
314a csv file, edit scores in this csv file offline and upload the same
315file when they are online again. This procedure is explained in
316step-by-step instructions which show up when pressing the yellow
317'Help' button:
318
319.. admonition:: Help
320
321  **Step-by-step instructions**
322
323  1. Download csv file.
324  2. Open csv file in a text editor or in a spreadsheet programme
325     (Excel or Calc).
326  3. Edit course results only. Do not modify other entries.
327     Do not remove or add columns. Do not add rows.
328  4. Save file in same format (csv). Do not switch to any other
329     format (xls, xlsx or ods).
330  5. Select same file for upload and press the blue 'Update ...'
331     button.
332  6. The values in the table will be updated. Spot-check if the
333     values in the table correspond with the values in your file.
334
335  Note: Only course results of students which are in state
336  'courses validated' and in current academic session can be modified.
337  Additional data will just be ignored.
338
339.. seealso::
340
341  :ref:`Batch Editing Scores Tests <test_batch_editing_scores>`
342
343
344.. _bed_tickets:
345
346Bed Tickets
347===========
348
349.. _bed_allocation:
350
351Bed Allocation
352--------------
353
354Students can obtain a bed ticket if a series of conditions is met:
355
356- The current date must be inside the booking period (between
357  `IHostelsContainer.startdate` and `IHostelsContainer.enddate`).
358
359- The student's current session must match the accommodation session
360  (`IHostelsContainer.accommodation_session`).
361
362- A bed ticket for the same accommodation session does not exist.
363
364- The student must be in the correct workflow state
365  (`IHostelsContainer.accommodation_states`).
366
367- A bed type, which fits to the student, can be determined.
368
369- A bed of that type is available.
370
371- The HOS activation code is not yet used.
372
373- The student is the owner of the activation code.
374
375The customizable utility method
376:py:meth:`getAccommodationDetails<waeup.kofa.students.utils.StudentsUtils.getAccommodationDetails>`
377composes a bed type string. Three criteria are checked: Is the
378student a new, a returning or a final year student? Is the student
379female or male? Has the student to be accommodated in a special
380hostel (`IHostel.special_handling`)? The resulting bed type string
381contains these information. Example: ``regular_female_fr`` means
382that a bed for a new female student in a regular hostel is wanted.
383If the student record allows to determine such a bed string, Kofa
384starts searching a proper bed space.
385
386Before Kofa searches for a free bed space, which meets the bed type
387criteria above, it checks if a bed space has already been allocated
388manually to the student. If so, then this bed is used, no matter
389whether the bed meets the criteria or not. (Theoretically, a male
390student can be accommodated in a hostel which is reserved for female
391students.) If no manually allocated bed space is found, Kofa
392searches for the right space. If bed booking is subject to a charge,
393Kofa also checks, if the student has entered a valid activation code,
394before delivering the bed coordinates to the student.
395
396
397.. _student_relocation:
398
399Student Relocation
400------------------
401
402Officers with `ManageHostels` permission do see a 'Relocate student'
403link button which calls the `BedTicketRelocationView`. This view
404relocates the student if student parameters or the bed type of the
405bed have changed. The `update` method of this view calls the
406:py:meth:`BedTicket.relocateStudent<waeup.kofa.students.accommodation.BedTicket.relocateStudent>
407` method which checks first, if the student has a 'reserved' bed
408space. Students in reserved beds are never subject to relocation. It
409checks secondly, if booking has been cancelled in the accommodation
410section but other bed space has been manually allocated after
411cancellation. Then this bed is used, no matter whether the bed meets
412the bed type criteria or not. If both checks are negative, Kofa
413searches for a free bed space, which meets the student's bed type
414criteria. Only if it finds a new and free bed space, it starts the
415relocation process by releasing the old bed, booking the new bed and
416designating the new bed in the bed ticket.
417
418.. seealso::
419
420  :ref:`Bed Space Booking Tests <test_handle_accommodation>`
Note: See TracBrowser for help on using the repository browser.