feat(media): add enrichment metadata fields across admin and public
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user