Polish origins and guidelines
Add issue/magazine links and ordering to entry origins, and document preferred validation guidance. Signed-off-by: codex@lucy.xalior.com
This commit is contained in:
@@ -28,6 +28,7 @@ export type EntryDetailData = {
|
||||
publication: string | null;
|
||||
containerId: number | null;
|
||||
issueId: number | null;
|
||||
issue: { id: number; magazineId: number | null; magazineTitle: string | null } | null;
|
||||
date: { year: number | null; month: number | null; day: number | null };
|
||||
}[];
|
||||
// extra fields for richer details
|
||||
@@ -359,7 +360,7 @@ export default function EntryDetailClient({ data }: { data: EntryDetailData | nu
|
||||
<th>Type</th>
|
||||
<th>Title</th>
|
||||
<th>Publication</th>
|
||||
<th style={{ width: 140 }}>Issue</th>
|
||||
<th style={{ width: 200 }}>Issue</th>
|
||||
<th style={{ width: 140 }}>Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -375,10 +376,17 @@ export default function EntryDetailClient({ data }: { data: EntryDetailData | nu
|
||||
<td>{o.libraryTitle}</td>
|
||||
<td>{o.publication ?? <span className="text-secondary">-</span>}</td>
|
||||
<td>
|
||||
{o.issueId ? (
|
||||
<Link href={`/zxdb/issues/${o.issueId}`}>#{o.issueId}</Link>
|
||||
{o.issue ? (
|
||||
<div className="d-flex flex-column">
|
||||
<Link href={`/zxdb/issues/${o.issue.id}`}>Issue #{o.issue.id}</Link>
|
||||
{o.issue.magazineId != null && (
|
||||
<Link className="text-secondary small" href={`/zxdb/magazines/${o.issue.magazineId}`}>
|
||||
{o.issue.magazineTitle ?? `Magazine #${o.issue.magazineId}`}
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
) : o.containerId ? (
|
||||
<span>#{o.containerId}</span>
|
||||
<span>Container #{o.containerId}</span>
|
||||
) : (
|
||||
<span className="text-secondary">-</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user