Skip to content

Commit

Permalink
Release 05.23.2024 (#90)
Browse files Browse the repository at this point in the history
* Added mapping for uuid (#74)

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

* Removed Prefix from Displayed UUID Value on Assets (#76)

* Modified formatAssetMetadata() to allow custom dc-format Labels (#79)

* Removed "required" and custom values for fields (#86)

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

---------

Co-authored-by: Mathieu Lessard <[email protected]>
Co-authored-by: Christopher Heintzman <[email protected]>
  • Loading branch information
3 people authored May 23, 2024
1 parent 4b29c8c commit 171f67c
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions contenthub/hydration/hydration-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export function formIsComplete(metadataSchema, formValues) {

if(incomplete) return false;

if(formValues['gmo:campaignName']){
if(!formValues['gmo:programName']) return false;
}

if(formValues['gmo:licensedContent'] !== 'no'){
if(!formValues['gmo:usageTerms']) return false;
if(formValues['gmo:licensedContent'] === 'yes-expires' && !formValues['gmo:licenseExpiryDate']) return false;
Expand Down Expand Up @@ -116,7 +112,8 @@ export function getMetadataSchema(facetOptions){
label: 'Product',
placeholder: 'Select one or more',
required: true,
element: 'tags',
element: 'dropdown',
multipleSelection: true,
dropdownOptions: [
{ name: 'N/A', id: 'na' },
{ name: 'Acrobat Export PDF', id: 'acrobat-export-pdf' },
Expand Down Expand Up @@ -217,13 +214,7 @@ export function getMetadataSchema(facetOptions){
return value.toLowerCase().split(' ').every((val) => name.includes(val));
}
)
},
required: true,
requires: [{
property: 'gmo:campaignName',
expectedValue: '',
operator: '!=='
}]
}
},
{
mapToProperty: 'gmo:deliverableType',
Expand Down Expand Up @@ -360,7 +351,8 @@ export function getMetadataSchema(facetOptions){
mapToProperty: 'gmo:ddomStage',
label: 'DDOM Stage',
placeholder: 'Select one or more',
element: 'tags',
element: 'dropdown',
multipleSelection: true,
dropdownOptions: [
{
id: 'discover',
Expand Down Expand Up @@ -388,7 +380,8 @@ export function getMetadataSchema(facetOptions){
mapToProperty: 'gmo:p0TargetMarketGeo',
label: 'Target Market',
placeholder: 'Select one or more',
element: 'tags',
element: 'dropdown',
multipleSelection: true,
dropdownOptions: [
{
id: 'apac',
Expand Down

0 comments on commit 171f67c

Please sign in to comment.