Catalogue registration bugfix.

Assuring readability of the input metadata by creating
a temporary file.