-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for collection column in pycsw db #49
base: master
Are you sure you want to change the base?
Conversation
…r csw results similar to CKAN collections
@amercader @kindly is this line supposed to be True or False? Thanks. |
if a dataset has an collection_package_id attribute with value, then it is a child record of a particular collection, and these need to be excluded from CSW endpoint which just need to display highlevel records. |
thanks @kvuppala this is exactly how this works now. |
This fits nicely with pycsw's repository filter feature: http://pycsw.org/docs/latest/repofilters.html |
@kalxas Apologies for the really late answer Just to understand how this works, (sorry if I'm a bit slow), is your goal:
(This change is specific for data.gov, but I guess that if it is a minor one and still works for default users of ckanext-spatial we can sneak it in. If it's a major change perhaps we need to copy this file over to ckanext-geodatagov where you guys can tweak it as necessary) |
@amercader hi, The goal here is to be able to use the filtering mechanism available in recent pycsw through ckanext-spatial. |
Also, I believe the api query with extras_collection_package_id will work even if this key is missing. |
Hello, I know this issue is very old. If we wanted to do this today, is there a way to do it without adding an extra database column and only using pycsw's repository filters? |
Recently we added filtering support in pycsw configuration, so CSW endpoint can actually "hide" records similar to what is done with CKAN collections.
In order to be able to replicate this functionality through ckanext-spatial, this fix is needed in order to create an extra boolean field in pycsw db.