Create record-metadata

Copied from omeka/application/views/scripts/common