Ignore:
Timestamp:
14 Nov 2012, 09:09:14 (12 years ago)
Author:
Henrik Bettermann
Message:

Display faculty and department in search result tables.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/searchpage.pt

    r7811 r9631  
    1313                <th i18n:translate="">Code</th>
    1414                <th i18n:translate="">Title</th>
     15                <th i18n:translate="">Faculty</th>
     16                <th i18n:translate="">Department</th>
    1517                <th i18n:translate="">Type</th>
    1618            </tr>
     
    2527                TITLE
    2628            </td>
     29            <td tal:content="item/fac">
     30                FACULTY
     31            </td>
     32            <td tal:content="item/dep">
     33                DEPARTMENT
     34            </td>
    2735            <td tal:content="item/type">
    2836                TTYPE
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r9479 r9631  
    780780        if row['current_verdict'] in (IGNORE_MARKER, ''):
    781781            return 'No verdict in import file.'
    782         # Check if studylevel exists#
     782        # Check if studylevel exists
    783783        level_string = str(obj.current_level)
    784784        if obj.get(level_string) is None:
  • main/waeup.kofa/trunk/src/waeup/kofa/university/catalog.py

    r8920 r9631  
    139139        self.title = context.title
    140140        self.code = context.code
     141        self.dep = context.__parent__.__parent__.code
     142        self.fac = context.__parent__.__parent__.__parent__.code
    141143        self.type = 'Course'
    142144
     
    149151        self.title = context.title
    150152        self.code = context.code
     153        self.dep = context.__parent__.__parent__.code
     154        self.fac = context.__parent__.__parent__.__parent__.code
    151155        self.type = 'Certificate'
    152156
     
    159163        self.title = context.course.title
    160164        self.code = context.getCourseCode
     165        self.dep = context.__parent__.__parent__.__parent__.code
     166        self.fac = context.__parent__.__parent__.__parent__.__parent__.code
    161167        self.type = 'Certificate Course'
    162168
Note: See TracChangeset for help on using the changeset viewer.