From 0a9511b0c7ad123d2b572cdd8783ec038ff0eb07 Mon Sep 17 00:00:00 2001 From: Manfred Date: Thu, 4 Nov 2021 15:57:49 +0100 Subject: [PATCH] BPK einkommentiert, SVNR <-> Geburtsdatum nur mehr als Hinweis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wenn die SVNR das Geburtsdatum nicht enthält (was in Ausnahmefällen sein kann) wird nur mehr ein Hinweis angezeigt, die Person aber trotzdem ins XML übernommen. --- vilesci/bis/studentenmeldung.php | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/vilesci/bis/studentenmeldung.php b/vilesci/bis/studentenmeldung.php index 901181a24..73f9098e2 100644 --- a/vilesci/bis/studentenmeldung.php +++ b/vilesci/bis/studentenmeldung.php @@ -50,6 +50,7 @@ if(!$rechte->isBerechtigt('student/stammdaten',null,'suid') && !$rechte->isBerec die('Sie haben keine Berechtigung für diese Seite'); $error_log=''; +$error_log_hinweis=''; $error_log1=''; $error_log_all=""; $error_log_io = ''; // error log fuer plausichecks von incomings/outgoings @@ -683,6 +684,7 @@ function GenerateXMLStudentBlock($row) global $kodex_studientyp_array, $kodex_studstatuscode_array; global $stg_kz; $error_log=''; + $error_log_hinweis=''; $error_log1=''; $error_log_io = ''; $datei = ''; @@ -815,7 +817,7 @@ function GenerateXMLStudentBlock($row) } if($row->svnr!='' && $row->svnr!=null && substr($row->svnr,4,6)!=$row->vdat && substr($row->vdat,0,4)!='0101' && substr($row->vdat,0,4)!='0107') { - $error_log.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht"; + $error_log_hinweis.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht"; } if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && substr($row->ersatzkennzeichen,4,6)!=$row->vdat) { @@ -845,7 +847,7 @@ function GenerateXMLStudentBlock($row) { $error_log.=(!empty($error_log)?', ':'')."Heimat-Nation ('".$nation."')"; } - /*if($row->bpk == '' || $row->bpk == null) + if($row->bpk == '' || $row->bpk == null) { $error_log .= (!empty($error_log) ? ', ' : '') . "bPK fehlt"; } @@ -860,7 +862,7 @@ function GenerateXMLStudentBlock($row) { $error_log.=(!empty($error_log) ? ', ' : ''). "bPK ist nicht 28 Zeichen lang"; } - }*/ + } if (!$ausserordentlich && !$incoming) { if ($zustell_plz == '' || $zustell_plz == null) @@ -1240,6 +1242,11 @@ function GenerateXMLStudentBlock($row) { $v.="     ".$error_log1; } + if($error_log_hinweis != '') + { + $v.="     ".$error_log_hinweis." (Nicht BIS-Relevant)\n"; + $error_log_hinweis = ''; + } $anzahl_fehler++; $v.="\n"; $error_log=''; @@ -1247,7 +1254,14 @@ function GenerateXMLStudentBlock($row) return ''; } else + { + if($error_log_hinweis != '') { + $v.="Bei Student (UID, Vorname, Nachname) '".$row->student_uid."', '".$row->nachname."', '".$row->vorname."' ($laststatus->status_kurzbz): \n"; + $v.="     ".$error_log_hinweis." (Nicht BIS-Relevant)\n"; + $error_log_hinweis = ''; + } + $datei .= " " . trim($row->matrikelnr) . ""; @@ -1294,9 +1308,9 @@ function GenerateXMLStudentBlock($row) " . $row->ersatzkennzeichen . ""; } - /*$datei .= " + $datei .= " " . $row->bpk . " - ";*/ + "; $datei .= " " . $row->staatsbuergerschaft . "