[ckan-dev] ckanext-oaipmh

Hildegard Gerlach hildegard.gerlach at jrc.ec.europa.eu
Thu Sep 10 14:46:33 UTC 2015


Dear List,

are there any instructions what is needed to get the oaipmh harvester to run ?
Is it enough to install this extension or are other extensions needed (e.g. ckanext-kata) ? 
Are there any changes in the database necessary and, if yes,  how are they executed ?

I installed this extension and tried to do a harvest from http://oai.datacite.org/oai <http://oai.datacite.org/oai>   with the flooding filters: {"limit": 10, "set": ["DELFT.JRC"], "from": "2011-01-01”}

The datasets are found but cannot been imported.
The error message is:

Import: Could not create d808d1c3-cc08-4fe8-845f-7d077347ae9f. _create_or_update_package() got an unexpected keyword argument ‘schema'

in file harvester.py    https://github.com/kata-csc/ckanext-oaipmh/blob/master/ckanext/oaipmh/harvester.py <https://github.com/kata-csc/ckanext-oaipmh/blob/master/ckanext/oaipmh/harvester.py>   line 429

schema = self.get_schema(config, pkg)
# schema['xpaths'] = [ignore_missing, ckanext.kata.converters.xpath_to_extras]
result = self._create_or_update_package(package_dict,
harvest_object,
schema=schema,
# s_schema=ckanext.kata.plugin.KataPlugin.show_package_schema()
)

I don’t know if in production.ini I have to declare a schema and how. And it seems as well as the function
_create_or_update_package
does not understand the argument schema

Normally it has only 2 arguments and I cannot find the source code for this function with the third argument schema.

Thanks

Hilde


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150910/193d222c/attachment-0002.html>


More information about the ckan-dev mailing list