Skip to content

Commit

Permalink
Merge Metadata
Browse files Browse the repository at this point in the history
This patch removes the special recording metadata section and merges it
into the default metadata to avoid the appearance that these are
separate metadata catalogs.
  • Loading branch information
lkiesow committed Jul 11, 2024
1 parent 47c9e5f commit 39bab94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,27 @@ const NewMetadataPage = <T extends RequiredFormProps>({
</td>
</tr>
))}
{formik.values.sourceMode === "UPLOAD"
&& sourceMetadata.UPLOAD
&& sourceMetadata.UPLOAD.metadata.map((field, key) => (
<tr key={key}>
<td>
<span>{t(field.label)}</span>
{field.required && <i className="required">*</i>}
</td>
<td className="editable">
<Field
name={field.id}
metadataField={field}
component={RenderField}
/>
</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
{formik.values.sourceMode === "UPLOAD" && (
<div className="obj list-obj">
<header className="no-expand">
{t("EVENTS.EVENTS.NEW.SOURCE.UPLOAD.RECORDING_METADATA")}
</header>
<div className="obj-container">
<table className="main-tbl">
<tbody>
{/* One row for each metadata field*/}
{sourceMetadata.UPLOAD && sourceMetadata.UPLOAD.metadata.map((field, key) => (
<tr key={key}>
<td>
<span>{t(field.label)}</span>
{field.required && <i className="required">*</i>}
</td>
<td className="editable">
<Field
name={field.id}
metadataField={field}
component={RenderField}
/>
</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
)}
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@
"UPLOAD": {
"CAPTION": "Upload",
"RECORDING_ELEMENTS": "Recording elements",
"RECORDING_METADATA": "Recording metadata",
"SEGMENTABLE": {
"SHORT": "Presentation",
"DETAIL": "The file contains a recording of a what is shown to an audience (Keynote, Powerpoint, etc)."
Expand Down

0 comments on commit 39bab94

Please sign in to comment.