. $_EXEC/pdiread.sh
. $_EXEC/therapies/l10n.sh
-# unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; }
-# upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
-
-BR='
-'
-
id="${_PATH#/therapies/}"
id="${id%/*}.${id#*/}"
tpyfile="${_DATA}/therapies/${id}.tpy"
vcf="$(pdi_load "$vcffile")"
-mpx="$(sed '1s;^;\n;; s/:/;:/' "$mpxfile")"
+mpx="$([ -f "$mpxfile" ] && sed '1s;^;\n;; s/:/;:/' "$mpxfile")"
tpy="$(sed '1s;^;\n;; s/:/;:/' "$tpyfile")"
VCF(){ pdi_value "$vcf" "$@"; }
MPX(){ pdi_value "$mpx" "$@"; }
-TPY(){ pdi_value "$tpy" "$@"; }
+TPY(){ pdi_value "$tpy" "$@" >/dev/null && pdi_value "$tpy" "$@" |pdi_unescape; }
. $_EXEC/therapies/page.sh \
| yield_page therapy /therapies/therapy.css