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