https://github.com/okfn/ckanext-harvest/blob/release-v2.0/README.rst#the-ckan-harvester提到您可以指定“default_groups”配置选项以添加所有收获的记录到一组。
这在 CKAN 2.0 中仍然有效吗?是否有类似的“default_organizations”配置参数?
我尝试通过将 JSON 对象放入 /harvest/edit/my-source 的表单中来使用“default_groups”参数
{ "default_groups": ["my-group"] }
存在一个名为“my-group”的组,但是我只是更新收获的包,而不是创建新的包。
fetch_consumer 日志:
2013-04-17 15:34:07,707 DEBUG [ckanext.spatial.harvesters.base.import] Import stage for harvest object: 66b01129-bcce-4bc8-9a67-1d7ece67b998
2013-04-17 15:34:07,708 DEBUG [ckanext.spatial.harvesters.base] Using config: {u'default_groups': [u'my-group']}
2013-04-17 15:34:07,713 DEBUG [ckanext.spatial.validation.validation] Starting validation against profile(s) iso19139
2013-04-17 15:34:07,770 DEBUG [ckanext.spatial.validation.validation] Validated against "ISO19139 XSD Schema"
2013-04-17 15:34:07,770 INFO [ckanext.spatial.validation.validation] Validation passed
2013-04-17 15:34:07,898 DEBUG [ckanext.spatial.plugin] Received: u'{"type": "Polygon", "coordinates": [[[-116.016, 30.5461], [-116.016, 37.5297], [-108.281, 37.5297], [-108.281, 30.5461], [-116.016, 30.5461]]]}'
2013-04-17 15:34:07,902 DEBUG [ckanext.spatial.lib] Extent for package 7c5646d5-6689-49f6-94fb-0eaf54f84959 unchanged
2013-04-17 15:34:08,149 INFO [ckanext.spatial.harvesters.base.import] Updated package 7c5646d5-6689-49f6-94fb-0eaf54f84959 with guid 4e6b8f72f7d6c3856f092c6b8501195f