Browse Source

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

main
Felix Lohmeier 7 months ago
parent
commit
659ad70ec6
  1. 4
      bielefeld/Taskfile.yml
  2. 25
      bielefeld/config/mime.json

4
bielefeld/Taskfile.yml

@ -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

25
bielefeld/config/mime.json

@ -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'"
}
]
Loading…
Cancel
Save