[ckan-dev] Custom metadata fields

Andrew Brooks arb at sat.dundee.ac.uk
Thu Oct 18 09:24:18 UTC 2018


Hi

On the topic of "Customizing dataset and resource metadata fields using
IDatasetForm",
(1) what is a dataset "type"? The "Dataset types" section further down the
doc doesn't really explain it.
(2) Adding new metadata fields in my plugin makes some of the default ones
redundant so can I hide them? Maybe schema.remove() or suchlike in the
show_package_schema function?

(3) In order to use the spatial features of ckan I gather that an "extra"
called "spatial" is required which must contain a WKT shape. Can the extra
have a capital S as Spatial?
I would like to use my custom metadata fields to generate this required WKT
upon create/update so the user doesn't have to enter WKT, and also the
reverse to parse the spatial field's WKT and display it in my own metadata
fields (eg. N,S,W,E or whatever) upon show. Are there ways to do this in my
plugin?

Thanks,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181018/c70f822d/attachment.html>


More information about the ckan-dev mailing list