Skip to content

Commit

Permalink
added price 0.0 when FREE and storeEmptyStrings false
Browse files Browse the repository at this point in the history
  • Loading branch information
saumier committed May 24, 2024
1 parent 378fbe8 commit faf336f
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion ontotext-refine/cms-events-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"limit": -1,
"trimStrings": false,
"guessCellValueTypes": false,
"storeEmptyStrings": true,
"storeEmptyStrings": false,
"includeFileSources": false,
"includeArchiveFileName": false,
"disableAutoPreview": false,
Expand Down Expand Up @@ -870,6 +870,42 @@
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "price"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - offers - _ - additionalType\"].value == \"FREE\", \"0.0\", nil)"
},
"valueType": {
"type": "datatype_literal",
"datatype": {
"valueSource": {
"source": "constant",
"constant": "double"
},
"transformation": {
"language": "prefix",
"expression": "xsd"
}
}
}
}
]
}
]
}
Expand Down

0 comments on commit faf336f

Please sign in to comment.