fix #30 Münster: mods:note type teilweise filtern

This commit is contained in:
Felix Lohmeier 2021-03-08 17:19:28 +01:00
parent cf247a86c1
commit 6734927ecd
2 changed files with 71 additions and 0 deletions

View File

@ -93,6 +93,10 @@ tasks:
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/file-id.json
> {{.LOG}}
- > # mods:note type teilweise filtern
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/note.json
> {{.LOG}}
- > # Anreicherung HT-Nummer via lobid-resources: Bei mehreren URNs ODER-Suche; bei mehreren Treffern wird nur der erste übernommen
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/hbz.json

67
muenster/config/note.json Normal file
View File

@ -0,0 +1,67 @@
[
{
"op": "core/mass-edit",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type",
"expression": "value",
"edits": [
{
"from": [
"thesis"
],
"fromBlank": false,
"fromError": false,
"to": "thesis statement"
}
],
"description": "Mass edit cells in column mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type",
"expression": "value",
"columnName": "mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type",
"invert": true,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": "citation/reference",
"l": "citation/reference"
}
},
{
"v": {
"v": "ownership",
"l": "ownership"
}
},
{
"v": {
"v": "thesis statement",
"l": "thesis statement"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type",
"expression": "grel:null",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column mets:mets - mets:dmdSec - mets:mdWrap - mets:xmlData - mods:mods - mods:note - type using expression grel:null"
}
]