IWriteMetadataAndBlobPlugin - BlobExtractXPath
Searches for attributes containing XPath expressions and execute them to extract information from the XML content towards the appropriate repository metadata fields (specified by the MetadataField and MetadataFieldLevel parameters).
Plugin Configuration
| Field Name | Field Level |
|---|---|
| The name specified in the MetadataField parameter | The level specified in the MetadataFieldLevel parameter |
| Parameter | Required | Default value | Allowed values | Description |
|---|---|---|---|---|
| XPathAttribute | Yes | XPath query syntax used to search and retrieve the information from within the supplied XML document | ||
| MetadataField | Yes | The metadata field which should be set. Only string fields are support, number and date fields are not. | ||
| MetadataFieldLevel | No | lng | logical, version, lng | The metadata field level |
| AllowDuplicates | No | No | Yes, No | If set to 'No', an error will be thrown when duplicate values are found in the content. If set to "Yes", duplicate values are extracted only once to the metadata property. |
<plugin name="FIELDTOMETADATA" handler="BlobExtractXPath" ishcondition="ISHType in ('ISHModule') and EDT='EDTXML'">
<description>Extracts all ids to the configured metadata field</description>
<workingset>
<ishfields>
<ishfield name="FISHVARASSIGNED" level="lng"/>
</ishfields>
</workingset>
<initialize>
<parameters>
<parameter name="XPathAttribute">ishvarassignedxpath</parameter>
<parameter name="MetadataField">FISHVARASSIGNED</parameter>
<parameter name="MetadataFieldLevel">lng</parameter>
<parameter name="AllowDuplicates">No</parameter>
</parameters>
</initialize>
</plugin>
Plugin flow
The plugin will first get the nodes that contain the given attribute, get the attribute value (which should be an xpath expression) and execute the xpath expression on the node.
If configured, the plugin will raise an error for duplicate values.