10 [ "$order" ] || order=firstname
13 grep -F " ${cardfile##*/}" "$_DATA/mappings/attendance" |while read each discard; do
14 { pdi_value "$(pdi_load "$_DATA/ical/$each")" SUMMARY || l10n "(unnamed course)"; } |unescape
21 local cnt="$(pdi_count "$card" "$item")"
24 seq 1 $cnt |while read n; do case $item in
26 tel="$(pdi_value "$card" "$item" "$n" |unescape)"
27 ttype="$(pdi_attrib "$card" "$item" "$n" TYPE)"
28 if [ "$tel" -a "$ttype" ]; then
29 printf '%s: %s\n' "$(l10n "TYPE=$ttype")" "$tel"
35 gen="$(pdi_value "$card" "$item" "$n" |unescape)"
36 [ "$gen" ] && l10n "gender_$gen"
38 *) pdi_value "$card" "$item" "$n" |unescape
45 'Content-Type: text/csv; charset=utf-8' \
46 'Content-Disposition: inline; filename="confetti_export_'$(date +%F_%T)'.csv"' \
49 printf '"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s"\n' \
50 "$(l10n FN)" "$(l10n GENDER)" "$(l10n BDAY)" \
51 "$(l10n TEL)" "$(l10n EMAIL)" "$(l10n ADR)" \
52 "$(l10n NOTE)" "$(l10n courses)" "$(l10n CATEGORIES)" \
53 | sed -E 's;­\;;;g;'
58 | while read cardfile; do
59 card="$(pdi_load "$cardfile")"
60 printf '"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s";"%s"\n' \
61 "$(list_item FN)" "$(list_item GENDER)" "$(list_item BDAY)" \
62 "$(list_item TEL)" "$(list_item EMAIL)" "$(list_item ADR)" \
63 "$(list_item NOTE)" "$(list_attendance)" "$(list_item CATEGORIES)"