[ckan-dev] How to get the MIME type for the metadata template.

Jesús Redondo redondogarciajesus at gmail.com
Mon Jul 7 08:50:36 UTC 2014


Hello,

I am customising the metadata generated by CKAN by modifying the "read.rdf"
file. I need to add the following field:


<dct:format>
          <dct:IMT rdf:value="${*Method to get the MIME type*}"
rdfs:label="${rsc_dict.get('format')}" />
</dct:format>


Which should produce something like this:

<dct:format>
         <dct:IMT rdf:value="text/csv" rdfs:label="CSV"/>
</dct:format>


The problem is that I haven't found the "*Method to get the MIME type*" (I
don't know if this method even exists) , how can I deal with this issue?
NOTE: I am working on a CKAN 2.0.2 instance.

Thanks for the help.

Jesús Redondo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140707/c4364edd/attachment-0002.html>


More information about the ckan-dev mailing list