fix metadata export with linked documents
Merge pull request #37 from ssayer/develop

fix metadata export with linked documents