From 895c86b426afb58445181448d28c2df216e4b1d3 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Sat, 7 May 2022 00:59:42 +0200 Subject: [PATCH] =?UTF-8?q?Unterordnungen=20l=C3=B6schen,=20wenn=20=C3=9Cb?= =?UTF-8?q?erordnung=20nicht=20konvertiert=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7-A95-A97.json => A_star_A87-A95-A97.json} | 25 ++- ...ten.json => A_star_abschlussarbeiten.json} | 10 +- ...schen_diverse.json => A_star_diverse.json} | 45 +++-- ...hriften.json => A_star_zeitschriften.json} | 25 ++- .../main/B_loeschen_unterordnungen.json | 87 +++++++++ ...treihen.json => C_star_schriftreihen.json} | 20 +- alephino/config/main/D_loeschen_star.json | 30 +++ .../config/main/U-check-gtx-subfield.json | 182 ++++++++++++++++++ 8 files changed, 374 insertions(+), 50 deletions(-) rename alephino/config/main/{A_loeschen_A87-A95-A97.json => A_star_A87-A95-A97.json} (89%) rename alephino/config/main/{A_loeschen_abschlussarbeiten.json => A_star_abschlussarbeiten.json} (91%) rename alephino/config/main/{A_loeschen_diverse.json => A_star_diverse.json} (84%) rename alephino/config/main/{A_loeschen_zeitschriften.json => A_star_zeitschriften.json} (87%) create mode 100644 alephino/config/main/B_loeschen_unterordnungen.json rename alephino/config/main/{A_loeschen_schriftreihen.json => C_star_schriftreihen.json} (89%) create mode 100644 alephino/config/main/D_loeschen_star.json create mode 100644 alephino/config/main/U-check-gtx-subfield.json diff --git a/alephino/config/main/A_loeschen_A87-A95-A97.json b/alephino/config/main/A_star_A87-A95-A97.json similarity index 89% rename from alephino/config/main/A_loeschen_A87-A95-A97.json rename to alephino/config/main/A_star_A87-A95-A97.json index 788c3e9..a56d743 100644 --- a/alephino/config/main/A_loeschen_A87-A95-A97.json +++ b/alephino/config/main/A_star_A87-A95-A97.json @@ -1,6 +1,6 @@ [ { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -31,10 +31,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -71,10 +72,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -99,10 +101,11 @@ ], "mode": "row-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -145,10 +148,11 @@ ], "mode": "row-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -179,6 +183,7 @@ ], "mode": "row-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" } ] diff --git a/alephino/config/main/A_loeschen_abschlussarbeiten.json b/alephino/config/main/A_star_abschlussarbeiten.json similarity index 91% rename from alephino/config/main/A_loeschen_abschlussarbeiten.json rename to alephino/config/main/A_star_abschlussarbeiten.json index c887cd3..748a58d 100644 --- a/alephino/config/main/A_loeschen_abschlussarbeiten.json +++ b/alephino/config/main/A_star_abschlussarbeiten.json @@ -1,6 +1,6 @@ [ { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -44,10 +44,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -81,6 +82,7 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" } ] diff --git a/alephino/config/main/A_loeschen_diverse.json b/alephino/config/main/A_star_diverse.json similarity index 84% rename from alephino/config/main/A_loeschen_diverse.json rename to alephino/config/main/A_star_diverse.json index 62dacca..4a96c21 100644 --- a/alephino/config/main/A_loeschen_diverse.json +++ b/alephino/config/main/A_star_diverse.json @@ -1,6 +1,6 @@ [ { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -31,10 +31,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -59,10 +60,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -77,10 +79,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -105,10 +108,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -123,10 +127,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -141,10 +146,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -159,10 +165,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -177,10 +184,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -205,6 +213,7 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" } ] diff --git a/alephino/config/main/A_loeschen_zeitschriften.json b/alephino/config/main/A_star_zeitschriften.json similarity index 87% rename from alephino/config/main/A_loeschen_zeitschriften.json rename to alephino/config/main/A_star_zeitschriften.json index 7410014..0e004b1 100644 --- a/alephino/config/main/A_loeschen_zeitschriften.json +++ b/alephino/config/main/A_star_zeitschriften.json @@ -1,6 +1,6 @@ [ { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -25,10 +25,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -43,10 +44,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -83,10 +85,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -111,10 +114,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -139,6 +143,7 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" } ] diff --git a/alephino/config/main/B_loeschen_unterordnungen.json b/alephino/config/main/B_loeschen_unterordnungen.json new file mode 100644 index 0000000..52e590b --- /dev/null +++ b/alephino/config/main/B_loeschen_unterordnungen.json @@ -0,0 +1,87 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "Starred Rows", + "expression": "row.starred", + "columnName": "", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "baseColumnName": "M|IDN", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "delete", + "columnInsertIndex": 3, + "description": "Create column delete at index 3 based on column M|IDN using expression grel:value" + }, + { + "op": "core/row-removal", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|GT0", + "expression": "isBlank(value)", + "columnName": "M|GT0", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "M|GT0", + "expression": "grel:forNonBlank(forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, x, null).cross('alephino','delete')[0],v,'delete','')", + "columnName": "M|GT0", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "delete", + "l": "delete" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "description": "Remove rows" + }, + { + "op": "core/column-removal", + "columnName": "delete", + "description": "Remove column delete" + } +] diff --git a/alephino/config/main/A_loeschen_schriftreihen.json b/alephino/config/main/C_star_schriftreihen.json similarity index 89% rename from alephino/config/main/A_loeschen_schriftreihen.json rename to alephino/config/main/C_star_schriftreihen.json index 761de71..e6be7d4 100644 --- a/alephino/config/main/A_loeschen_schriftreihen.json +++ b/alephino/config/main/C_star_schriftreihen.json @@ -1,6 +1,6 @@ [ { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -25,10 +25,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -71,10 +72,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -99,10 +101,11 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" }, { - "op": "core/row-removal", + "op": "core/row-star", "engineConfig": { "facets": [ { @@ -127,6 +130,7 @@ ], "mode": "record-based" }, - "description": "Remove rows" + "starred": true, + "description": "Star rows" } ] diff --git a/alephino/config/main/D_loeschen_star.json b/alephino/config/main/D_loeschen_star.json new file mode 100644 index 0000000..e3c91b4 --- /dev/null +++ b/alephino/config/main/D_loeschen_star.json @@ -0,0 +1,30 @@ +[ + { + "op": "core/row-removal", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "Starred Rows", + "expression": "row.starred", + "columnName": "", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "description": "Remove rows" + } +] diff --git a/alephino/config/main/U-check-gtx-subfield.json b/alephino/config/main/U-check-gtx-subfield.json new file mode 100644 index 0000000..8b16864 --- /dev/null +++ b/alephino/config/main/U-check-gtx-subfield.json @@ -0,0 +1,182 @@ +[ + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|GT0", + "expression": "isBlank(value)", + "columnName": "M|GT0", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "M|GT0", + "expression": "grel:forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, 'L', null)", + "columnName": "M|GT0", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [], + "selectBlank": true, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "M|GT0", + "expression": "null", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column M|GT0 using expression null" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|GT1", + "expression": "isBlank(value)", + "columnName": "M|GT1", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "M|GT1", + "expression": "grel:forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, 'L', null)", + "columnName": "M|GT1", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [], + "selectBlank": true, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "M|GT1", + "expression": "null", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column M|GT1 using expression null" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|GT2", + "expression": "isBlank(value)", + "columnName": "M|GT2", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "M|GT2", + "expression": "grel:forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, 'L', null)", + "columnName": "M|GT2", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [], + "selectBlank": true, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "M|GT2", + "expression": "null", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column M|GT2 using expression null" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|GT3", + "expression": "isBlank(value)", + "columnName": "M|GT3", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "M|GT3", + "expression": "grel:forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, 'L', null)", + "columnName": "M|GT3", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [], + "selectBlank": true, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "M|GT3", + "expression": "null", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column M|GT3 using expression null" + } +]