[% ## the publication object should be called pub SWITCH pub_info; CASE url; info_text = pub.url || ''; CASE db_key; info_text = pub.db _ ':' _ pub.key || pub.db || pub.key || ''; END; %] 'Publications: '; IF preview; tool.publication.join(', '); ELSE; FOREACH p = tool.publication %] [% p.db %]:[% p.key %] [external website] [% END; END; ELSE; 'No publications'; END %]