Orgform of Stg in searchresults

This commit is contained in:
cgfhtw
2024-11-07 17:01:51 +01:00
parent 72c992569c
commit 2ed5df8c1c
3 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -309,7 +309,18 @@ $config['prestudent'] = [
FROM public.tbl_status
WHERE status_kurzbz = public.get_rolle_prestudent(ps.prestudent_id, NULL)
LIMIT 1
) as status"
) AS status",
"COALESCE(
(
SELECT COALESCE(plan.orgform_kurzbz, pss.orgform_kurzbz)
FROM public.tbl_prestudentstatus pss
LEFT JOIN lehre.tbl_studienplan plan USING (studienplan_id)
WHERE pss.prestudent_id=ps.prestudent_id
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
LIMIT 1
),
sg.orgform_kurzbz
) AS orgform"
],
'resultjoin' => "
LEFT JOIN public.tbl_prestudent ps USING (prestudent_id)
@@ -139,7 +139,7 @@ export default {
<div class="searchbar_tablerow">
<div class="searchbar_tablecell ps-3">{{ $p.t('lehre/studiengang') }}</div>
<div class="searchbar_tablecell">
{{ student.bezeichnung }}
{{ student.bezeichnung }} {{ student.orgform ? '(' + student.orgform + ')' : '' }}
</div>
</div>
<div class="searchbar_tablerow">
@@ -60,7 +60,7 @@ export default {
<div class="searchbar_tablerow">
<div class="searchbar_tablecell">{{ $p.t('lehre/studiengang') }}</div>
<div class="searchbar_tablecell">
{{ res.bezeichnung }}
{{ res.bezeichnung }} {{ res.orgform ? '(' + res.orgform + ')' : '' }}
</div>
</div>
</div>