diff --git a/contenthub/hydration/hydration-utils.js b/contenthub/hydration/hydration-utils.js index bdcf6216..a4b36809 100644 --- a/contenthub/hydration/hydration-utils.js +++ b/contenthub/hydration/hydration-utils.js @@ -31,9 +31,8 @@ export function formIsComplete(metadataSchema, formValues) { if(formValues['gmo:campaignName']){ if(!formValues['gmo:programName']) return false; - if(!formValues['gmo:deliverableType']) return false; } - + if(formValues['gmo:licensedContent'] !== 'no'){ if(!formValues['gmo:usageTerms']) return false; if(formValues['gmo:licensedContent'] === 'yes-expire' && !formValues['gmo:licenseExpiryDate']) return false; @@ -145,6 +144,7 @@ export function getMetadataSchema(facetOptions){ { name: 'Digital Editions', id: 'digital-editions' }, { name: 'Dreamweaver', id: 'dreamweaver' }, { name: 'Fill Sign', id: 'fill-sign' }, + { name: 'Firefly', id: 'firefly' }, { name: 'Frame.io', id: 'frame-io' }, { name: 'Fresco', id: 'fresco' }, { name: 'Http Dynamic Streaming', id: 'http-dynamic-streaming' }, @@ -254,11 +254,6 @@ export function getMetadataSchema(facetOptions){ name: 'Tutorial', }, ], - requires: [{ - property: 'gmo:campaignName', - expectedValue: '', - operator: '!==' - }] }, { mapToProperty: 'gmo:licensedContent', @@ -293,6 +288,12 @@ export function getMetadataSchema(facetOptions){ { property: 'gmo:licensedContent', expectedValue: '', operator: '!==' } ], }, + { + mapToProperty: 'gmo:owner', + label:'Campaign/Asset Owner', + element: 'textarea', + required: true, + }, { mapToProperty: 'gmo:contentType', label: 'Content Type', diff --git a/contenthub/hydration/hydration.js b/contenthub/hydration/hydration.js index 2074fcd6..f3ecc720 100644 --- a/contenthub/hydration/hydration.js +++ b/contenthub/hydration/hydration.js @@ -90,7 +90,7 @@ export async function openUploadDialog() { dialogBody.appendChild(container); const folderUUID = crypto.randomUUID(); - const targetUploadPath = `/content/dam/hydrated-assets/${folderUUID.substring(0, 2)}/${folderUUID.substring( + const targetUploadPath = `/content/dam/gmo/upload/${folderUUID.substring(0, 2)}/${folderUUID.substring( 2, 4, )}/${folderUUID}`;