Transformationsregeln um MARC leader erweitert und Spalten umbenannt
This commit is contained in:
parent
26b810e1e6
commit
f8cc746fd5
Binary file not shown.
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 68 KiB |
|
@ -98,32 +98,33 @@ Die Verarbeitung kann je nach Menge der Daten ein paar Minuten dauern. Anschlie
|
||||||
|
|
||||||
### Statistik
|
### Statistik
|
||||||
|
|
||||||
* Text facet on column "record - datafield - tag"
|
* Text facet on column "field"
|
||||||
* Try "Blank down" on column "record - datafield - tag" to see how many records include each MARC field
|
* Try "Blank down" on column "field" to see how many records include each MARC field
|
||||||
* Rollback with "Fill down" on column "record - datafield - tag" to see total number of MARC fields again
|
* Get a tab separated list by clicking the "... choices" link below the facet name
|
||||||
|
* Rollback the "Blank down" operation via "Undo / Redo"
|
||||||
|
|
||||||
### Neue Spalten erstellen
|
### Neue Spalten erstellen
|
||||||
|
|
||||||
#### A\) Werte in neue Spalte kopieren
|
#### A\) Werte in neue Spalte kopieren
|
||||||
|
|
||||||
* Select row mode \(show as: rows\)
|
* Select row mode \(show as: rows\)
|
||||||
* Select values with text facets in "record - datafield - tag" and "record - datafield - subfield - code" \(example: tag 100 and codes a, d and q for authors\)
|
* Select values with text facets in "field" and "code" \(example: field 100 and codes a, d and q for authors\)
|
||||||
* Add column based on column "record - datafield - subfield" with expression `value`
|
* Add column based on column "content" with expression `value`
|
||||||
|
|
||||||
#### B\) Werte in neuer Spalte transformieren
|
#### B\) Werte in neuer Spalte transformieren
|
||||||
|
|
||||||
* Normalize values in new column \(e.g. search/replace\)
|
* Normalize values in new column \(e.g. search/replace\)
|
||||||
* Add separators \(e.g. add brackets to birth dates: select tag 100 / code d and transform new column with expression `"(" + value + ")"`\)
|
* Add separators \(e.g. add brackets to birth dates: select field 100 and code d and transform new column with expression `"(" + value + ")"`\)
|
||||||
|
|
||||||
#### C\) Werte in neuer Spalte zusammenführen
|
#### C\) Werte in neuer Spalte zusammenführen
|
||||||
|
|
||||||
* Move column "leader" to the end
|
* Move column "id" to the end
|
||||||
* Move column "index" to the beginning
|
* Move column "index" to the beginning
|
||||||
* Join multi-valued cells in new column with separator ` ` \(space\)
|
* Join multi-valued cells in new column with separator ` ` \(space\)
|
||||||
|
|
||||||
### Datensätze zusammenführen
|
### Datensätze zusammenführen
|
||||||
|
|
||||||
* Move column "leader" to the beginning
|
* Move column "id" to the beginning
|
||||||
* Join multi-valued cells in each new column with separator `␟`
|
* Join multi-valued cells in each new column with separator `␟`
|
||||||
|
|
||||||
### Daten exportieren
|
### Daten exportieren
|
||||||
|
|
|
@ -40,6 +40,19 @@
|
||||||
"keyColumnName": "record - leader",
|
"keyColumnName": "record - leader",
|
||||||
"separator": "␞"
|
"separator": "␞"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"op": "core/text-transform",
|
||||||
|
"description": "Text transform on cells in column record - controlfield using expression grel:\"LDR\" + \"␟\" + cells[\"record - leader\"].value + \"␞\" + value",
|
||||||
|
"engineConfig": {
|
||||||
|
"mode": "row-based",
|
||||||
|
"facets": []
|
||||||
|
},
|
||||||
|
"columnName": "record - controlfield",
|
||||||
|
"expression": "grel:\"LDR\" + \"␟\" + cells[\"record - leader\"].value + \"␞\" + value",
|
||||||
|
"onError": "keep-original",
|
||||||
|
"repeat": false,
|
||||||
|
"repeatCount": 10
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"op": "core/column-addition",
|
"op": "core/column-addition",
|
||||||
"description": "Create column tmp at index 1 based on column record - leader using expression grel:\"\"",
|
"description": "Create column tmp at index 1 based on column record - leader using expression grel:\"\"",
|
||||||
|
@ -303,7 +316,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "core/text-transform",
|
"op": "core/text-transform",
|
||||||
"description": "Text transform on cells in column leader using expression grel:cells[\"record - datafield - subfield\"].value",
|
"description": "Text transform on cells in column leader using expression grel:row.record.cells[\"record - datafield - subfield\"].value[1]",
|
||||||
"engineConfig": {
|
"engineConfig": {
|
||||||
"mode": "row-based",
|
"mode": "row-based",
|
||||||
"facets": [
|
"facets": [
|
||||||
|
@ -329,7 +342,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"columnName": "leader",
|
"columnName": "leader",
|
||||||
"expression": "grel:cells[\"record - datafield - subfield\"].value",
|
"expression": "grel:row.record.cells[\"record - datafield - subfield\"].value[1]",
|
||||||
"onError": "keep-original",
|
"onError": "keep-original",
|
||||||
"repeat": false,
|
"repeat": false,
|
||||||
"repeatCount": 10
|
"repeatCount": 10
|
||||||
|
@ -342,9 +355,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "core/column-rename",
|
"op": "core/column-rename",
|
||||||
"description": "Rename column record - datafield - tag to tag",
|
"description": "Rename column record - datafield - tag to field",
|
||||||
"oldColumnName": "record - datafield - tag",
|
"oldColumnName": "record - datafield - tag",
|
||||||
"newColumnName": "tag"
|
"newColumnName": "field"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "core/column-rename",
|
"op": "core/column-rename",
|
||||||
|
@ -366,8 +379,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "core/column-rename",
|
"op": "core/column-rename",
|
||||||
"description": "Rename column record - datafield - subfield to value",
|
"description": "Rename column record - datafield - subfield to content",
|
||||||
"oldColumnName": "record - datafield - subfield",
|
"oldColumnName": "record - datafield - subfield",
|
||||||
"newColumnName": "value"
|
"newColumnName": "content"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue