diff --git a/app/cis.py b/app/cis.py index 6f64c11..f426b8c 100644 --- a/app/cis.py +++ b/app/cis.py @@ -394,10 +394,20 @@ class CISClient: "role": role, "person_id": m.group(1) if m else "", "username": _pick(r"Username:\s*(\S+)"), + "anrede": _pick(r"Anrede:\s*(.*?)\s*(?:Titel:|Vorname:)"), + "matrikel_nr": _pick(r"Matrikelnummer:\s*(\d+)"), "titel": _pick(r"Titel:\s*(.*?)\s*Vorname:").strip(), "vorname": _pick(r"Vorname:\s*(.*?)\s*Nachname:"), "nachname": _pick(r"Nachname:\s*(.*?)\s*Postnomen:"), "postnomen": _pick(r"Postnomen:\s*(.*?)\s*(?:Geburtsdatum:|Kurzzeichen:|Studiengang:|eMail)"), + "geburtsdatum": _pick(r"Geburtsdatum:\s*([\d.]+)"), + "geburtsort": _pick(r"Geburtsort:\s*(.*?)\s*(?:Hauptwohnsitz:|Studiengang:)"), + "wohnsitz": _pick(r"Hauptwohnsitz:\s*(.*?)\s*Studiengang:"), + "fh_ausweis": _pick(r"FH-Ausweis Status\s*(.*?)\s*eMail"), + "privat_mail": _pick(r"Privat\s+E-Mail\s+(\S+@\S+)"), + "privat_tel": _pick(r"Telefonnummer\s+([+\d][\d\s/-]*)"), + "telefon": _pick(r"Telefon:\s*(.*?)\s*(?:B\xfcro:|eMail|$)"), + "buero": _pick(r"B\xfcro:\s*(\S+)"), "kurzzeichen": _pick(r"Kurzzeichen:\s*(\S+)"), "mail": _pick(r"Intern:\s*([^\s]+@[^\s]+)"), "mail_alias": _pick(r"Alias:\s*([^\s]+@[^\s]+)"), diff --git a/app/templates/person.html b/app/templates/person.html index 0eb5caf..c00b020 100644 --- a/app/templates/person.html +++ b/app/templates/person.html @@ -31,12 +31,21 @@ {% if prof.nachname or prof.username or prof.semester or prof.stg or prof.verband or prof.kurzzeichen or prof.mail %} {% if prof.username %}{% endif %} + {% if prof.anrede %}{% endif %} + {% if prof.matrikel_nr %}{% endif %} {% if prof.stg %}{% endif %} {% if prof.semester %}{% endif %} {% if prof.verband %}{% endif %} {% if prof.kurzzeichen %}{% endif %} - {% if prof.mail %}{% endif %} + {% if prof.telefon %}{% endif %} + {% if prof.buero %}{% endif %} + {% if prof.mail %}{% endif %} {% if prof.mail_alias %}{% endif %} + {% if prof.privat_mail %}{% endif %} + {% if prof.privat_tel %}{% endif %} + {% if prof.geburtsdatum or prof.geburtsort %}{% endif %} + {% if prof.wohnsitz %}{% endif %} + {% if prof.fh_ausweis %}{% endif %}
Username{{ prof.username }}
Anrede{{ prof.anrede }}
Matrikelnummer{{ prof.matrikel_nr }}
Studiengang{{ prof.stg }}
Studien-Semester{{ prof.semester }}
Verband{{ prof.verband }}{{ verband_label(prof.verband) }}
Kurzzeichen{{ prof.kurzzeichen }}
E-Mail{{ prof.mail }}
Telefon (FH){{ prof.telefon }}
Büro{{ prof.buero }}
E-Mail (FH){{ prof.mail }}
E-Mail (Alias){{ prof.mail_alias }}
E-Mail (privat){{ prof.privat_mail }}
Telefon (privat){{ prof.privat_tel }}
Geboren{{ prof.geburtsdatum }}{% if prof.geburtsort %} in {{ prof.geburtsort }}{% endif %}
Wohnsitz{{ prof.wohnsitz }}
FH-Ausweis{{ prof.fh_ausweis }}
{% endif %}