noah/rules/siegen/cc.json

26 lines
888 B
JSON
Raw Normal View History

2021-01-14 16:51:39 +01:00
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "text",
"name": "dc:rights",
"columnName": "dc:rights",
"query": "creativecommons.org",
"mode": "text",
"caseSensitive": false,
"invert": false
}
],
"mode": "row-based"
},
"baseColumnName": "dc:rights",
"expression": "grel:value.replace('https://','').replace('http://','').replace('creativecommons.org/licenses/','CC ').replace('/',' ').trim().toUppercase()",
"onError": "set-to-blank",
"newColumnName": "cc",
"columnInsertIndex": 23,
"description": "Create column cc at index 23 based on column dc:rights using expression grel:value.replace('https://','').replace('http://','').replace('creativecommons.org/licenses/','CC ').replace('/',' ').trim().toUppercase()"
}
]