mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
tfe: hyperlink metadata values to repertoire.php with correct filter params
This commit is contained in:
4
TODO.md
4
TODO.md
@@ -1,6 +1,10 @@
|
||||
# TODO
|
||||
|
||||
## Done
|
||||
- [x] TFE metadata values are hyperlinks to repertoire.php with correct filter/search params
|
||||
- orientation → `or[]`, ap_program → `ap[]`, year → `fy[]`, keywords → `kw[]` (per keyword)
|
||||
- languages, formats → `query=` (text search); jury members → `query=` (text search)
|
||||
- access_type, license_type, file_size_info, context_note, baiu_link remain plain text/links as-is
|
||||
- [x] Fix TFE page gradient bleed & layout collapse
|
||||
- [x] Scope `header` nav CSS in common.css to `body > header` (prevents article `<header>` inheriting gradient)
|
||||
- [x] Add `width: 100%` + `align-items: start` to `.tfe-layout` grid
|
||||
|
||||
@@ -30,35 +30,43 @@ extract($ctrl->handle());
|
||||
<?php if (!empty($data['orientation'])): ?>
|
||||
<div>
|
||||
<dt>Orientation :</dt>
|
||||
<dd><?= htmlspecialchars($data['orientation']) ?></dd>
|
||||
<dd><a href="/repertoire.php?or[]=<?= urlencode($data['orientation']) ?>"><?= htmlspecialchars($data['orientation']) ?></a></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($data['ap_program'])): ?>
|
||||
<div>
|
||||
<dt>Atelier pluridisciplinaire :</dt>
|
||||
<dd><?= htmlspecialchars($data['ap_program']) ?></dd>
|
||||
<dd><a href="/repertoire.php?ap[]=<?= urlencode($data['ap_program']) ?>"><?= htmlspecialchars($data['ap_program']) ?></a></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($data['year'])): ?>
|
||||
<div>
|
||||
<dt>Date :</dt>
|
||||
<dd><?= htmlspecialchars($data['year']) ?></dd>
|
||||
<dd><a href="/repertoire.php?fy[]=<?= urlencode($data['year']) ?>"><?= htmlspecialchars($data['year']) ?></a></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($data['languages'])): ?>
|
||||
<div>
|
||||
<dt>Langue :</dt>
|
||||
<dd><?= htmlspecialchars($data['languages']) ?></dd>
|
||||
<dd><?php
|
||||
$langs = array_map('trim', explode(',', $data['languages']));
|
||||
$langLinks = array_map(fn($l) => '<a href="/repertoire.php?query=' . urlencode($l) . '">' . htmlspecialchars($l) . '</a>', $langs);
|
||||
echo implode(', ', $langLinks);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($data['formats'])): ?>
|
||||
<div>
|
||||
<dt>Format :</dt>
|
||||
<dd><?= htmlspecialchars($data['formats']) ?></dd>
|
||||
<dd><?php
|
||||
$fmts = array_map('trim', explode(',', $data['formats']));
|
||||
$fmtLinks = array_map(fn($f) => '<a href="/repertoire.php?query=' . urlencode($f) . '">' . htmlspecialchars($f) . '</a>', $fmts);
|
||||
echo implode(', ', $fmtLinks);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -72,35 +80,51 @@ extract($ctrl->handle());
|
||||
<?php if (!empty($data['keywords'])): ?>
|
||||
<div>
|
||||
<dt>Mots-clés :</dt>
|
||||
<dd><?= htmlspecialchars($data['keywords']) ?></dd>
|
||||
<dd><?php
|
||||
$kws = array_map('trim', explode(',', $data['keywords']));
|
||||
$kwLinks = array_map(fn($k) => '<a href="/repertoire.php?kw[]=' . urlencode($k) . '">' . htmlspecialchars($k) . '</a>', $kws);
|
||||
echo implode(', ', $kwLinks);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($promoteursInternes)): ?>
|
||||
<div>
|
||||
<dt>Promoteur·ice interne :</dt>
|
||||
<dd><?= htmlspecialchars(implode(', ', $promoteursInternes)) ?></dd>
|
||||
<dd><?php
|
||||
$links = array_map(fn($n) => '<a href="/repertoire.php?query=' . urlencode($n) . '">' . htmlspecialchars($n) . '</a>', $promoteursInternes);
|
||||
echo implode(', ', $links);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($promoteursExternes)): ?>
|
||||
<div>
|
||||
<dt>Promoteur·ice externe :</dt>
|
||||
<dd><?= htmlspecialchars(implode(', ', $promoteursExternes)) ?></dd>
|
||||
<dd><?php
|
||||
$links = array_map(fn($n) => '<a href="/repertoire.php?query=' . urlencode($n) . '">' . htmlspecialchars($n) . '</a>', $promoteursExternes);
|
||||
echo implode(', ', $links);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($juryPresidents)): ?>
|
||||
<div>
|
||||
<dt>Président·e du jury :</dt>
|
||||
<dd><?= htmlspecialchars(implode(', ', $juryPresidents)) ?></dd>
|
||||
<dd><?php
|
||||
$links = array_map(fn($n) => '<a href="/repertoire.php?query=' . urlencode($n) . '">' . htmlspecialchars($n) . '</a>', $juryPresidents);
|
||||
echo implode(', ', $links);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($juryLecteurs)): ?>
|
||||
<div>
|
||||
<dt>Lecteur·ices :</dt>
|
||||
<dd><?= htmlspecialchars(implode(', ', $juryLecteurs)) ?></dd>
|
||||
<dd><?php
|
||||
$links = array_map(fn($n) => '<a href="/repertoire.php?query=' . urlencode($n) . '">' . htmlspecialchars($n) . '</a>', $juryLecteurs);
|
||||
echo implode(', ', $links);
|
||||
?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user