mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
feat: student name popover preview on /repertoire via htmx
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user