feat(media): add enrichment metadata fields across admin and public

This commit is contained in:
2026-02-12 22:42:08 +01:00
parent 6e9c0ad4e5
commit b9424c8a8b
14 changed files with 212 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ export default async function PublicArtworkPage({ params }: PublicArtworkPagePro
notFound()
}
const primaryMedia = artwork.renditions[0]?.mediaAsset ?? null
return (
<section className="mx-auto w-full max-w-5xl space-y-6 px-6 py-16">
<header className="space-y-2">
@@ -94,6 +96,22 @@ export default async function PublicArtworkPage({ params }: PublicArtworkPagePro
<strong>{t("fields.tags")}:</strong>{" "}
{formatLabelList(artwork.tagLinks.map((entry) => entry.tag.name))}
</p>
<p>
<strong>{t("fields.licenseType")}:</strong> {primaryMedia?.licenseType || "-"}
</p>
<p>
<strong>{t("fields.licenseUrl")}:</strong> {primaryMedia?.licenseUrl || "-"}
</p>
<p>
<strong>{t("fields.usageContext")}:</strong> {primaryMedia?.usageContext || "-"}
</p>
<p>
<strong>{t("fields.location")}:</strong> {primaryMedia?.location || "-"}
</p>
<p>
<strong>{t("fields.capturedAt")}:</strong>{" "}
{primaryMedia?.capturedAt ? primaryMedia.capturedAt.toLocaleDateString("en-US") : "-"}
</p>
</div>
</section>
</section>

View File

@@ -87,7 +87,12 @@
"galleries": "Galerien",
"albums": "Alben",
"categories": "Kategorien",
"tags": "Tags"
"tags": "Tags",
"licenseType": "Lizenztyp",
"licenseUrl": "Lizenz-URL",
"usageContext": "Nutzungskontext",
"location": "Ort",
"capturedAt": "Aufgenommen am"
}
}
}

View File

@@ -87,7 +87,12 @@
"galleries": "Galleries",
"albums": "Albums",
"categories": "Categories",
"tags": "Tags"
"tags": "Tags",
"licenseType": "License type",
"licenseUrl": "License URL",
"usageContext": "Usage context",
"location": "Location",
"capturedAt": "Captured at"
}
}
}

View File

@@ -87,7 +87,12 @@
"galleries": "Galerías",
"albums": "Álbumes",
"categories": "Categorías",
"tags": "Etiquetas"
"tags": "Etiquetas",
"licenseType": "Tipo de licencia",
"licenseUrl": "URL de licencia",
"usageContext": "Contexto de uso",
"location": "Ubicación",
"capturedAt": "Capturado el"
}
}
}

View File

@@ -87,7 +87,12 @@
"galleries": "Galeries",
"albums": "Albums",
"categories": "Catégories",
"tags": "Tags"
"tags": "Tags",
"licenseType": "Type de licence",
"licenseUrl": "URL de licence",
"usageContext": "Contexte d'utilisation",
"location": "Lieu",
"capturedAt": "Capturé le"
}
}
}