Hi Alexander, On 10/02/2012 09:36 AM, Alexander Wagner wrote:
I'm searching for a seemingly simple solution: how do I specify the mime type Invenio returns for a given output format?
As you have described (but I am confirming it here for the sake of completeness), the content-type of an output format can be specified in the BibFormat admin interface -> Manage Output Formats -> (open output format) -> Modify Output Format Attributes -> Content type.
[...] if I change the mime type in the output formats definition to say appplications/x-endnote it just gets ignored.
This looks like a bug. I will have a look at it.
I found that I could get at least text/plain if I change the name of the of from XE to something like EN. [...]
There are indeed some (historical) conventions to override the content-type, whatever it is configured for the output format: * if output format is "xr", use content-type "application/rss+xml". * if output format starts with "x", use "text/xml". * if output format starts with "t" or first 3 characters are digits, use "text/plain". This could probably also be improved (at least wrt output formats starting with 'x'). Still it is a bit strange that you get a text/plain output with an output format named "EN". Best regards -- Jerome Caffaro

