fix #37 abweichender MIME-type bei Datensätzen mit Dateiendung .pdf in URL

This commit is contained in:
Felix Lohmeier 2021-07-06 13:39:07 +02:00
parent 170bb53b57
commit 659ad70ec6
2 changed files with 29 additions and 0 deletions

View File

@ -93,6 +93,10 @@ tasks:
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/urlencode.json
> {{.LOG}}
- > # internetMediaType bei Dateiendung .pdf in URL einheitlich auf application/pdf setzen
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/mime.json
> {{.LOG}}
- > # Rechteangaben aus dc:rights in Format OAI_DC ergänzen
"$CLIENT" -P {{.PORT}} "{{.PROJECT}}"
--apply config/rights.json

View File

@ -0,0 +1,25 @@
[
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "text",
"name": "relatedItem - location - url - displayLabel",
"columnName": "relatedItem - location - url - displayLabel",
"query": "\\.pdf$",
"mode": "regex",
"caseSensitive": false,
"invert": false
}
],
"mode": "row-based"
},
"columnName": "relatedItem - physicalDescription - internetMediaType",
"expression": "grel:'application/pdf'",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column relatedItem - physicalDescription - internetMediaType using expression grel:'application/pdf'"
}
]