summerschool-openrefine/openrefine/marc_alternativ.json

256 lines
5.8 KiB
JSON

[
{
"op": "core/column-removal",
"description": "Remove column Column",
"columnName": "Column"
},
{
"op": "core/row-star",
"description": "Star rows",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"mode": "text",
"caseSensitive": false,
"query": "$",
"name": "Content",
"type": "text",
"columnName": "Content"
}
]
},
"starred": true
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column Content using expression grel:value.slice(1)",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"mode": "text",
"caseSensitive": false,
"query": "$",
"name": "Content",
"type": "text",
"columnName": "Content"
}
]
},
"columnName": "Content",
"expression": "grel:value.slice(1)",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/multivalued-cell-split",
"description": "Split multi-valued cells in column Content",
"columnName": "Content",
"keyColumnName": "RecordNumber",
"separator": "$",
"mode": "plain"
},
{
"op": "core/row-star",
"description": "Star rows",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "isBlank(value)",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "RecordNumber",
"omitBlank": false,
"type": "list",
"columnName": "RecordNumber"
}
]
},
"starred": true
},
{
"op": "core/column-addition",
"description": "Create column Subfields at index 4 based on column Content using expression grel:value.get(0)",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "row.starred",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "Starred Rows",
"omitBlank": false,
"type": "list",
"columnName": ""
}
]
},
"newColumnName": "Subfields",
"columnInsertIndex": 4,
"baseColumnName": "Content",
"expression": "grel:value.get(0)",
"onError": "set-to-blank"
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column Content using expression grel:value.slice(1)",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "row.starred",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "Starred Rows",
"omitBlank": false,
"type": "list",
"columnName": ""
}
]
},
"columnName": "Content",
"expression": "grel:value.slice(1)",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/fill-down",
"description": "Fill down cells in column RecordNumber",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "row.starred",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "Starred Rows",
"omitBlank": false,
"type": "list",
"columnName": ""
}
]
},
"columnName": "RecordNumber"
},
{
"op": "core/fill-down",
"description": "Fill down cells in column Tags",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "row.starred",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "Starred Rows",
"omitBlank": false,
"type": "list",
"columnName": ""
}
]
},
"columnName": "Tags"
},
{
"op": "core/fill-down",
"description": "Fill down cells in column Indicators",
"engineConfig": {
"mode": "row-based",
"facets": [
{
"omitError": false,
"expression": "row.starred",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "Starred Rows",
"omitBlank": false,
"type": "list",
"columnName": ""
}
]
},
"columnName": "Indicators"
},
{
"op": "core/row-star",
"description": "Unstar rows",
"engineConfig": {
"mode": "row-based",
"facets": []
},
"starred": false
},
{
"op": "core/blank-down",
"description": "Blank down cells in column RecordNumber",
"engineConfig": {
"mode": "row-based",
"facets": []
},
"columnName": "RecordNumber"
}
]