2
3 Click Browse. The Browse for Resources dialog box opens.
– Metadata name – the metadata name to use as sort key.
– Sort order – Ascending or Descending.
7 Click OK.The DeclareMetadata script function specifies a metadata name to be used for sorting or bundling of documents. The metadata name can then be associated with a variable by for example using the following functions:
• SetCurrMetadata – sets the metadata value on the current document.
• SetSegMetadata – sets the metadata value on a specified document.
Example 3 $ret = DeclareMetadata(“zip”, “N”; “A”)
Example 4 $doc_id = getFirstSegDoc();while (num($doc_id) > 0){$zip = “1234”$setSegMetaData($doc_id, “zip”, $zip);$doc_id = GetNextSegDoc($doc_id);}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |