adobe-dmeservices / custom-metadata

The home for a Custom Metadata Panel extension for Creative Cloud
https://exchange.adobe.com/creativecloud.details.103752.html
17 stars 8 forks source link

dc:creator saved as bag - should be seq #7

Closed MetadataDeluxe closed 3 years ago

MetadataDeluxe commented 3 years ago

Description When a dc:creator property is created or edited, it is saved as a bag array, but according to the XMP spec, it should be saved as a seq array.

Steps to reproduce

  1. use the View Editor to create a new field
  2. set the XMP Prefix to "dc"
  3. set the XMP Namespace to "http://purl.org/dc/elements/1.1/"
  4. set the XMP Property to "creator"
  5. Save
  6. enter a value in the new field.
  7. Save
  8. view raw XMP:

     <dc:creator>
        <rdf:Bag>
           <rdf:li>CREATOR</rdf:li>
        </rdf:Bag>
     </dc:creator>

Workarounds None

Expected behavior

     <dc:creator>
        <rdf:Seq>
           <rdf:li>CREATOR</rdf:li>
        </rdf:Seq>
     </dc:creator>

XMP Metadata custom_metadata_test_1_2_0.zip

Metadata View JSON reser_cmp_view.zip

Environment

jameslockman commented 3 years ago

I've reviewed your JSON, and I noticed that you did not specify that Creator needed to be a seq.

Open the View Editor, click the pencil, and switch to the Advanced tab. Change the Array Type to Seq. The default is Bag.

Screenshot_11_12_20__8_43_AM

The Custom Metadata Panel does not automagically know details of each metadata property. Please always check the Options and Advanced tabs to ensure that your View is compliant with your schema.

MetadataDeluxe commented 3 years ago

That was my mistake, I missed the array type option. After changing that to Seq, dc:creator is working properly.

jameslockman commented 3 years ago

Super! Glad it works!