ProcessUpload or ProcessReIdentifyWebService methods identify the Upload as usual.
All defined UploadTags are parsed against the asset_information.infoxml document
A batchUpdate call is prepared from AssetType, Upload ItemID and UploadTag/value Dictionary
BatchUpdateWebService is called.
2 UploadTag definition
Uploadtagname_defintion table
Column
DataType
Description
uploadtagname_definitionid
int
Primary key
uploadtagname
string
uploadTagname
xpath
string
Xpath used to extract the tag value
xmlnamespaces
string
Xmlnamespaces needed by Xpath. Space seperated list of xml namespace definitions: xmlns:rdf="rdf namespace url" xmlns:iptc="iptc namespace url"
functionname
string
(Optional) function name
functionrequireduploadtagnames
string
Tags that should have already been parsed before this tag is processed
enabled
bit
Is this uploadTag enabled
systemDefined
bit
Is this uploadTag defined by Digizuite
3 Defining custom uploadtags
Important: Custom tags that clash with future updates of DAM Center will be renamed to <tagname>RENAMED<GUID>.
To avoid this, always start custom tags with custom: and set systemDefined to 0.
4 Defined functions DigiZuiteLogic\UploadInformation\Bll\TagFunctions.bll.cs
If requiredTags contains uploadtags, the first tag is used as the argument source for the function, otherwise the Xpath is used as the argument source.
ShortestString - Selects shortest string
LongestString - Selects longest string
SelectInt - Selects values which contain only numbers that match the regular expression:
"^\s*\d+\s*$"
SelectNonInt - Selects values that do not match SelectInt
"^\s*\d+\s*$"
SelectIntFromStart - Selects values which begin with numbers that match the regular expression:
"^\s*\d+.*$"
Only the number part is returned.
Example: 1234kb would be returned as 1234
SelectDecimal - Selects values which can be parsed as decimal
SelectAspect - Selects all values that match the regular expression:
"^\s*\d+[\:/]\d+\s*$"
Example: 16/9 or 4:3
SelectDuration - Selects all values that match the regular expression: