Transformationsregeln um MARC leader erweitert und Spalten umbenannt

This commit is contained in:
Felix Lohmeier 2017-11-03 16:29:26 +01:00
parent 26b810e1e6
commit f8cc746fd5
3 changed files with 28 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -98,32 +98,33 @@ Die Verarbeitung kann je nach Menge der Daten ein paar Minuten dauern. Anschlie
### Statistik
* Text facet on column "record - datafield - tag"
* Try "Blank down" on column "record - datafield - tag" 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
* Text facet on column "field"
* Try "Blank down" on column "field" to see how many records include each MARC field
* 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
#### A\) Werte in neue Spalte kopieren
* 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\)
* Add column based on column "record - datafield - subfield" with expression `value`
* 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 "content" with expression `value`
#### B\) Werte in neuer Spalte transformieren
* 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
* Move column "leader" to the end
* Move column "id" to the end
* Move column "index" to the beginning
* Join multi-valued cells in new column with separator ` ` \(space\)
### 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 `␟`
### Daten exportieren

View File

@ -40,6 +40,19 @@
"keyColumnName": "record - leader",
"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",
"description": "Create column tmp at index 1 based on column record - leader using expression grel:\"\"",
@ -303,7 +316,7 @@
},
{
"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": {
"mode": "row-based",
"facets": [
@ -329,7 +342,7 @@
]
},
"columnName": "leader",
"expression": "grel:cells[\"record - datafield - subfield\"].value",
"expression": "grel:row.record.cells[\"record - datafield - subfield\"].value[1]",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
@ -342,9 +355,9 @@
},
{
"op": "core/column-rename",
"description": "Rename column record - datafield - tag to tag",
"description": "Rename column record - datafield - tag to field",
"oldColumnName": "record - datafield - tag",
"newColumnName": "tag"
"newColumnName": "field"
},
{
"op": "core/column-rename",
@ -366,8 +379,8 @@
},
{
"op": "core/column-rename",
"description": "Rename column record - datafield - subfield to value",
"description": "Rename column record - datafield - subfield to content",
"oldColumnName": "record - datafield - subfield",
"newColumnName": "value"
"newColumnName": "content"
}
]