X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=a96444a38205bef0770cf6d2149e02e668b4519d;hb=91b5294e622198de6d3efaa2bb1ad9c7c3cfe1a7;hp=86dad68ea13ec06ea65678460b75e9dbb06a98ab;hpb=9da739230659371a860e93dcaf3765b977e30de7;p=lobster
diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh
index 86dad68..a96444a 100755
--- a/templates/view_attendee.sh
+++ b/templates/view_attendee.sh
@@ -1,6 +1,6 @@
view_card_item() {
case "$key" in
- BEGIN|VERSION|END);;
+ BEGIN|VERSION|END|N|NICKNAME);;
PHOTO)
echo ""
;;
@@ -13,20 +13,20 @@ view_card_item() {
echo ":"
;|
EMAIL)
- echo "$value"
+ echo "$value"
;;
IMPP)
- echo ""$(echo "$value" |cut -d: -f2-)""
+ echo ""$(echo "$value" |cut -d: -f2-)""
;;
*)
- echo "$value"
+ echo "$value"
;;
esac
}
view_attendee() { #Parameter: Cardfile
cardfile="vcard/$1"
- cachefile="cache/vcf_$(basename "$cardfile").cache"
+ cachefile="cache/${1}.cache"
unset key
[ "$cachefile" -nt "$cardfile" ] && cat "$cachefile" \
|| vcf_parse "$cardfile" |while read -r line; do