7 upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
12 [ "$order" ] || order=firstname
15 grep -F " ${cardfile##*/}" "$_DATA/mappings/attendance" |while read each discard; do
16 { pdi_value "$(pdi_load "$_DATA/ical/$each")" SUMMARY || l10n "(unnamed course)"; } |unescape
23 local cnt="$(pdi_count "$card" "$item")"
26 seq 1 $cnt |while read n; do case $item in
28 tel="$(pdi_value "$card" "$item" "$n" |unescape)"
29 ttype="$(pdi_attrib "$card" "$item" "$n" TYPE)"
30 if [ "$tel" -a "$ttype" ]; then
31 printf '%s: %s\n' "$(l10n "TYPE=$ttype")" "$tel"
37 gen="$(pdi_value "$card" "$item" "$n" |unescape)"
38 [ "$gen" ] && l10n "gender_$gen"
40 *) pdi_value "$card" "$item" "$n" |unescape
47 'Content-Type: text/csv; charset=utf-8' \
48 'Content-Disposition: inline; filename="confetti_export_'$(date +%F_%T)'.csv"' \
51 printf '"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s"\n' \
52 "$(l10n FN)" "$(l10n GENDER)" "$(l10n BDAY)" \
53 "$(l10n TEL)" "$(l10n EMAIL)" "$(l10n ADR)" \
54 "$(l10n NOTE)" "$(l10n courses)" "$(l10n CATEGORIES)" \
55 | sed -E 's;­\;;;g;'
60 | while read cardfile; do
61 card="$(pdi_load "$cardfile")"
62 printf '"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s"\n' \
63 "$(list_item FN)" "$(list_item GENDER)" "$(list_item BDAY)" \
64 "$(list_item TEL)" "$(list_item EMAIL)" "$(list_item ADR)" \
65 "$(list_item NOTE)" "$(list_attendance)" "$(list_item CATEGORIES)"