Available metadata operations

ADD

Type: ADD

Description: add a metadata value to the descriptor indicated in the iecode field.

Example:

<operation>
    <type>ADD</type>
    <iecode><![CDATA[author]]></iecode>
    <value><![CDATA[Miguel de Cervantes]]></value>
</operation>

DELETE

Type: DELETE

Description: it deletes the value associated to a descriptor by its iecode. In case it is a multi-value descriptor, we will also have to specify the idValueMetadata.

Example for a single value descriptor:

<operation>
    <type>DELETE</type>
    <iecode><![CDATA[author]]></iecode>
</operation>

Example for a multi-value descriptor:

<operation>
    <type>DELETE</type>
    <iecode><![CDATA[author]]></iecode>
    <idValueMetadata>456</idValueMetadata>
</operation>

UPDATE

Type: UPDATE

Description: it updates the descriptor referenced by its iecode (in case it is a multi-value descriptor, we must also add idValueMetadata) with the field value.

Example for a single value descriptor:

<operation>
    <type>UPDATE</type>
    <iecode><![CDATA[author]]></iecode>
    <value><![CDATA[M. Cervantes]]></value>
</operation>

Example for a multi-value descriptor:

<operation>
    <type>UPDATE</type>
    <iecode><![CDATA[author]]></iecode>
    <idValueMetadata>456</idValueMetadata>
    <value><![CDATA[M. Cervantes]]></value>
</operation>

ADD IF IT DOES NOT EXIST

Type: ADDIFNOTEXISTS

Description: it adds the indicated value to the descriptor in the field value, if and only if said descriptor has no value associated to it.

Example:

<operation>
    <type>ADDIFNOTEXISTS</type>
    <iecode><![CDATA[author]]></iecode>
    <value><![CDATA[Miguel de Cervantes]]></value>
</operation>

DELETE IF IT EXISTS

Type: DELETEIFEXISTS

Description: it deletes the value associated to a descriptor by its iecode, if and only if said descriptor has a value associated to it. In case of a multi-value descriptor, we will also have to specify the idValueMetadata.

Example:

<operation>
    <type>DELETEIFEXISTS</type>
    <iecode><![CDATA[author]]></iecode>
</operation>

Example for the multi-value descriptor:

<operation>
    <type>DELETEIFEXISTS</type>
    <iecode><![CDATA[author]]></iecode>
    <idValueMetadata>456</idValueMetadata>
</operation>

UPDATE OR ADD

Type: UPDATEORADD

Description: it updates the value of the field value on the descriptor indicated in the field iecode. In case the referenced descriptor has no value, the operation will become an ADD operation. If it is a multi-value descriptor, we will have to specify a value in the idValueMetadata field, in order to update the descriptor value.

Example:

<operation>
    <type>UPDATEORADD</type>
    <iecode><![CDATA[author]]></iecode>
    <value><![CDATA[Miguel de Cervantes]]></value>
</operation>

Example for a multi-value descriptor:

<operation>
    <type>UPDATEORADD</type>
    <iecode><![CDATA[author]]></iecode>
    <idValueMetadata>456</idValueMetadata>
    <value><![CDATA[Miguel de Cervantes]]></value>
</operation>

DELETE ALL

Type: DELETEALL

Description: delete all the values associated to a descriptor by the iecode.

Example:

<operation>
    <type>DELETEALL</type>
    <iecode><![CDATA[author]]></iecode>
</operation>

Last updated