Skip to content

Commit

Permalink
DXI-24690 (#59)
Browse files Browse the repository at this point in the history
* Changed folder for uploaded assets (#52)

Co-authored-by: Mathieu Lessard <[email protected]>

* updated hydration-utils.js (#54)

MH: Added Firefly  product to AA Modal 'Product' Field List

* MH: Add 'Asset Owner' Field to Add Assets Modal

* Update hydration-utils.js

* Comment Update

---------

Co-authored-by: mathieu-lessard <[email protected]>
Co-authored-by: Mathieu Lessard <[email protected]>
  • Loading branch information
3 people authored Apr 3, 2024
1 parent 15a823b commit 12142e8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions contenthub/hydration/hydration-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' },
Expand Down Expand Up @@ -254,11 +254,6 @@ export function getMetadataSchema(facetOptions){
name: 'Tutorial',
},
],
requires: [{
property: 'gmo:campaignName',
expectedValue: '',
operator: '!=='
}]
},
{
mapToProperty: 'gmo:licensedContent',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 12142e8

Please sign in to comment.