[ckan-dev] Adding custom metadata fields

Nigel Babu nigel.babu at okfn.org
Tue Jan 7 08:25:49 UTC 2014


Hello Athos,

If you were look at
https://github.com/okfn/ckan/blob/release-v2.0/ckanext/example_idatasetform/plugin.py,
you'll see ExampleIDatasetFormPlugin. That is what you should put in the
place of YOURPLUGIN

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 6 January 2014 21:28, Athos Georgiou <ag242 at st-andrews.ac.uk> wrote:

>  Hello,
>
>
>
> Over the past few weeks I have been trying to find extensions to allow the
> addition of custom metadata fields in CKAN. One I have found is explaining
> how to create the extension itself which is then pushed to git and then
> installed on our CKAN Server. (OKFN How-to-Add-Custom-Fields-to-CKAN-2.0)
>
>
>
> My main issue is at the instructions below:
>
> Modify the setup.py file in your top-level directory. Under where it says
> Add Plugins here, uncomment and update:
>
> [ckan.plugins]
>
> # Add plugins here, eg
>
> MYEXTENSION=ckanext.MYEXTENSION.plugin:YOURPLUGIN
>
> """
>
>  Replace MYEXTENSION with the exact same value as your MYEXTENSION
> directory name from above. Replace YOURPLUGIN with the name of the plugin
> class inside plugin.py, e.g.
>
> usmetadata=ckanext.usmetadata.plugin:USMetadataPlugin
>
>
>
> I can’t seem to find the line in my plugin.py file which shows the name of
> the plugin class. In other words…So, I’m not sure what goes into the “YOURPLUGIN”
> field.
>
>
>
> Also, is there any other supported extension that can be installed in
> fewer steps?
>
>
>
>
>
> Any help would be greatly appreciated
>
>
>
> Thank you,
>
>
>
> *Athos Georgiou*
>
> *Application Developer - Research Computing *
>
> [image: Description: Description: Description: Description: Description:
> Description: Description: cid:46E12C47-B748-4BCA-B41C-A94306C93BF6]
>
> *IT Services, University of St Andrews, St Andrews, Fife, KY16 9AL*
>
> *Tel: **01334 4644731   E-mail: ag242 at st-andrews.ac.uk
> <ag242 at st-andrews.ac.uk>*
>
>
>
> The University of St Andrews is a charity registered in Scotland (No
> SC013532)
>
>
>
> _______________________________________________
> 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/20140107/df094241/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 13560 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140107/df094241/attachment-0003.png>


More information about the ckan-dev mailing list