[ckan-dev] How to get the MIME type for the metadata template.
Nigel Babu
nigel.babu at okfn.org
Mon Jul 7 13:07:46 UTC 2014
Hrm, there isn't one in 2.0.2 for sure. We did have a pull request for
something like this, but I don't think it's landed.
Nigel Babu
Developer, Open Knowledge
On 7 July 2014 14:20, Jesús Redondo <redondogarciajesus at gmail.com> wrote:
> 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
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140707/55bb04a2/attachment-0003.html>
More information about the ckan-dev
mailing list