Hi
You right, the import tool Add images tch136 was defined to import images only in Objects tch1, but the clone sections (virtual sections) as Photographs tch100 and Documents tch300 clone the import tool definition also, and it place the images into the original definition for Objects tch1, just as you described it.
I changed the ontology to use a generic definition for virtual sections and now the tool uses self
instead the specific section_tipo tch1
in component_option
definitions, but this change is not backward compatible, and it will fail with versions prior to 6.5.2.
Ontology definition for version <= 6.5.1
{
"tool_config": {
"tool_import_files": {
"ddo_map": [
{
"role": "component_option",
"tipo": "tch66",
"map_name": "A",
"section_id": "self",
"section_tipo": "tch1",
"target_section_tipo": "rsc170"
},
{
"role": "component_option",
"tipo": "tch141",
"default": true,
"map_name": "B",
"section_id": "self",
"section_tipo": "tch1",
"target_section_tipo": "rsc170"
},
{
"role": "target_filename",
"tipo": "tch63",
"section_tipo": "tch1",
"only_basename": true
},
etc.
Ontology definition for version >= 6.5.2
{
"tool_config": {
"tool_import_files": {
"ddo_map": [
{
"role": "component_option",
"tipo": "tch66",
"map_name": "A",
"section_id": "self",
"section_tipo": "self",
"target_section_tipo": "rsc170"
},
{
"role": "component_option",
"tipo": "tch141",
"default": true,
"map_name": "B",
"section_id": "self",
"section_tipo": "self",
"target_section_tipo": "rsc170"
},
{
"role": "target_filename",
"tipo": "tch63",
"section_tipo": "self",
"only_basename": true
},
etc.
The new self
value used to fix the issue is not interpreted in previous versions, therefore, you will need to update your code and your ontology at the same time, if you upload the ontology without update your code to >= 6.5.2 the import tool will not work. In those cases you can change the ontology definition for the tool Add images tch136 as showed previously (with tch1
instead self
).
The change was done into the ontology:
6.5.2 | 2025-05-21T18:11:46+02:00
And the code:
Update your code and your ontology to get the fix.
Best