fix metadata export with linked documents

Linked document template was incorrect