-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.0.0
-
Tags:
-
Sprint:nxfit 9.1.7
-
Story Points:2
Make it possible to add an array of enrichers / fetch properties, without overriding the existing ones.
Before:
nuxeo.enricher('document', 'breadcrumb') .enricher('document', 'thumbnail');
After:
nuxeo.enrichers({ document: ['breadcrumb', 'thumbnail'] }, false);
Using the existing enrichers() method (in its current state) overrides completely the existing enrichers.
Added a boolean parameter to specify whether we want to override, or merge the enrichers. Default to override.