mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
REPO-5191 Bug: T-Engine should provide mapping rather than the repo. (#316)
Bug found while reviewing documents on how to create a custom metadata extractor. The original refactor had left the repo doing the mapping. It should have been passing the fully qualified repo properties to the T-Engine to do the mapping. Linked to: Alfresco/alfresco-community-repo#227 Alfresco/acs-packaging#1826
This commit is contained in:
@@ -75,7 +75,7 @@ public class AIOControllerTikaTest extends TikaControllerTest
|
||||
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@Override
|
||||
public void testGetInfoFromConfigWithNoTransformOptions()
|
||||
@@ -83,4 +83,12 @@ public class AIOControllerTikaTest extends TikaControllerTest
|
||||
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Override
|
||||
public void xlsxEmbedTest()
|
||||
{
|
||||
// Ignore the test in super class as the way the AIO transformer provides config is fundamentally different.
|
||||
// It uses the real class path rather than the test one.
|
||||
}
|
||||
}
|
@@ -13,6 +13,10 @@
|
||||
],
|
||||
"metadataOptions": [
|
||||
{"value": {"name": "extractMapping"}}
|
||||
],
|
||||
"metadataEmbedOptions": [
|
||||
{"value": {"name": "metadata", "required": true}},
|
||||
{"value": {"name": "targetEncoding"}}
|
||||
]
|
||||
},
|
||||
"transformers": [
|
||||
@@ -981,6 +985,15 @@
|
||||
"transformOptions": [
|
||||
"metadataOptions"
|
||||
]
|
||||
},
|
||||
{
|
||||
"transformerName": "SamplePoiMetadataEmbedder",
|
||||
"supportedSourceAndTargetList": [
|
||||
{"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "alfresco-metadata-embed"}
|
||||
],
|
||||
"transformOptions": [
|
||||
"metadataEmbedOptions"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user