Configuration

The following configuration options are available for the FontoXML Document History App.

Proxy configuration for local editor development (required)

The FontoXML Editor needs to know where the proxy to the FontoXML Document History App is hosted. This address should be the hostname and port where you have implemented the Document History Proxy Endpoint as described in the CMS Connectors API.

Add the "proxy" item to your config.json as follows. Note that the "document-history" value is an example and you should fill in the actual address.

{
	"scope": { omitted for clarity },
	"proxy": {
		"document-history": "http://localhost:7000/"
	}
}

Mark as seen

The functionality to mark a change as seen is enabled by default. This will result in a button being visible in the change cards and the context menu when right clicking a change, allowing the user to mark or unmark a change as seen.

In some cases it's desired to disable this functionality. When doing so, all changes in the selected timeframe will be visible to the user at all times. This can be done by setting the "document-history-mark-as-seen-enabledconfiguration variable to:

configurationManager.set('document-history-mark-as-seen-enabled', {
    enabled: false
});

Partial change log

Partial change logs are always enabled. The standard configuration should work correctly for most schemas, though it can be configured using the document-history-partial-diff-configuration configuration key:

configurationManager.set('document-history-partial-diff-configuration', {
	idAttributeLocalName: 'id',
	idAttributeNamespaceURI: 'http://www.w3.org/XML/1998/namespace',
	partialChangeLogRootXPathTest: '@xml:id'
});

If the schema for which document history wil be configured does not use the xml:id attribute, the idAttributeLocalName and the idAttributeNamespaceURI should be configured to reflect the schema.

If the schema allows or enforces identifiers for elements which are configured to be insignificant for document history, the partialChangeLogRootXPathTest should be configured to reflect that.

Was this page helpful?