feat: student name popover preview on /repertoire via htmx

This commit is contained in:
Pontoporeia
2026-04-24 13:13:26 +02:00
parent ede53746ba
commit 53c3127140
6 changed files with 127 additions and 69 deletions

View File

@@ -461,13 +461,13 @@ class Database {
*/
public function getThesesByAuthorName(string $name): array {
$stmt = $this->pdo->prepare(
"SELECT t.id, t.title
FROM theses t
JOIN thesis_authors ta ON ta.thesis_id = t.id
"SELECT vp.id, vp.title, vp.subtitle, vp.year, vp.synopsis,
vp.orientation, vp.finality_type, vp.banner_path, vp.authors
FROM v_theses_public vp
JOIN thesis_authors ta ON ta.thesis_id = vp.id
JOIN authors a ON a.id = ta.author_id
WHERE t.is_published = 1
AND a.name = ?
ORDER BY t.year DESC, t.title ASC"
WHERE a.name = ?
ORDER BY vp.year DESC, vp.title ASC"
);
$stmt->execute([$name]);
return $stmt->fetchAll();