Export templates and metadata parsers
When files are pushed to another system, their metadata can be sent along in a separate file. When files are pulled in, a metadata file that comes with them can be read into your metadata fields. Both use the standard MediaLab XML format, unless your Lab has a custom format set up:
- An export template sets the format of the metadata file that is sent along with pushed files.
- A metadata parser reads metadata files in another format when files are pulled in.
Our support team sets these up for you. Administrators can see them under Settings → Metadata, and request a new one from there.
Export templates
Open Settings → Metadata → Export templates to see the export templates of your Lab. This page is available with the Push add-on. For each template you see:
- Destination – the push destination it is used for, or all destinations.
- Conditions – which files it is used for: all files, files of a media type, or files with a certain value in a metadata field. When several templates fit a file, a template for that specific push destination comes first.
- Extension – the extension of the metadata file, for example
.xmlor.json. - Status – whether the template is active. Inactive templates are never used for a push.
Use View template to see the template itself.
Testing a template on a file
Use Export for file to see what a template produces for one of your files. Enter the file ID and click Export. The result is shown on screen, and you can copy or download it. Nothing is pushed or saved.
The export always uses the template you picked, even if the file doesn't meet its conditions. You'll see a note when a real push of that file would use a different template.
Metadata parsers
Open Settings → Metadata → Metadata parsers to see the parsers of your Lab. This page is available with the Pull add-on. Each parser reads one format, and recognizes it by the XML element shown under Recognized by. Every incoming metadata file in that format is read with an active parser; other files are read in the standard format. The Status column shows whether a parser is active.
Requesting a new template or parser
Use Request template on the Export templates page, or Request metadata parser on the Metadata parsers page. Tell us which system sends or receives the files, the file format, and which metadata should go where.
To show us an example file, upload it to your Lab and paste its link in the request. Please don't paste the contents of the file into the description. Your request is sent to our support team, who will let you know when it's ready.