originalworks / protocol

Protocol of Original Works
https://www.original.works
2 stars 0 forks source link

Adding image to the ERN message #25

Closed criadoperez closed 2 weeks ago

criadoperez commented 2 months ago

We need to add the image related to Release to the ERN message following the ERN v.4.3

ERN_example.xml

There seem to be a two options here.

Using SupplementalDocumentList (inside Release --> ReleaseDetailsByTerritory):

              <SupplementalDocumentList>
                    <SupplementalDocument>
                        <DocumentType>FrontCoverImage</DocumentType>
                        <DocumentFileName>example_cover_image.jpg</DocumentFileName>
                        <DocumentReference>
                            <Locator>
                                <URL>http://example.com/images/example_cover_image.jpg</URL>
                            </Locator>
                        </DocumentReference>
                    </SupplementalDocument>
                </SupplementalDocumentList>

Or using ResourceGroup (inside ReleaseDetailsByTerritory --> TechnicalDetails):

<!-- Adding Image as a Resource -->
                    <ResourceGroup>
                        <Resource>
                            <ImageResource>
                                <ImageId>
                                    <ProprietaryId>IMG12345</ProprietaryId>
                                </ImageId>
                                <ImageType>FrontCoverImage</ImageType>
                                <Title>
                                    <TitleText>Example Cover Image</TitleText>
                                </Title>
                                <ImageDetailsByTerritory>
                                    <TerritoryCode>Worldwide</TerritoryCode>
                                    <Locator>
                                        <URL>http://example.com/images/example_cover_image.jpg</URL>
                                    </Locator>
                                </ImageDetailsByTerritory>
                            </ImageResource>
                        </Resource>
                    </ResourceGroup>
criadoperez commented 3 weeks ago

Update: URL link will be an IPFS link

criadoperez commented 3 weeks ago

@revelator-labs , can you please recommend of both options where the link should be stored? SupplementalDocumentList or ResourceGroup.

revelator-labs commented 2 weeks ago

Lets go with the second option - @criadoperez can you please add this to https://github.com/originalworks/protocol/blob/48773f57da140a0ad67725337bd906a5943e2732/DDEX_messages/ERN_NewReleaseMessage_example.xml#L114

criadoperez commented 2 weeks ago

Done.