- if [ -d "$_DATA/$ITEM/$1" ]; then
- printf '[a .list .dir href="%s" %s]' "${path}?${qry}" "$name"
- else
- read -r length width height tags comment n <<-EOF
- $(meta_info "$_DATA/$ITEM/$1")
- EOF
+ length="${meta%% *}"; meta="${meta#* }"
+ width="${meta%% *}"; meta="${meta#* }"
+ height="${meta%% *}"; meta="${meta#* }"
+ tags="${meta%% *}"; meta="${meta#* }"
+ comment="${meta%% *}"; meta="${meta#* }"
+ name="${meta%% *}"; meta="${meta#* }"
+
+ if [ "$type" = metashort ]; then
+ name="$(list_fullname "$(UNSTRING "${name%${CR}}")")"
+ fi
+ if [ -f "$_DATA/$ITEM/$name" ]; then
+ display="$(HTML "$name")"
+ link="$(URL "$ITEM/$name")"