-
Notifications
You must be signed in to change notification settings - Fork 53
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
DataPackage.json Creator error - licenses not working #135
Comments
Good point. My guess is that we need to implement that properly and it isn't yet ... The relevant repo to work on is https://github.com/okfn/datapackage-init - see the demo directory |
@sxren don't worry - good to have the patch. I think your solution fixes this issue (not the other one). However note the comments there about how we probably want to improve this more medium-term (i.e. patch upstream in datapackage-init ...). |
@sxren asked: The Licenses select field options at tools/create should run off https://github.com/okfn/licenses. @rgrp from the http://licenses.opendefinition.org api? or directly from github? thanks! |
@sxren right now I think we should just pull a very short list of potential licenses from that repo and use it for that field with their IDs and if folks don't use that we give them option to add a name + url (cf the data package spec and definition of licenses field). |
thank you. |
@sxren I agree on quick-fix (ultimately okfn/licenses should become simple enough to submodule or similar but let's leave that for now).
This page https://github.com/okfn/data.okfn.org/blob/master/views/tools/dp/create.html does indeed directly reuse the demo app. If we fix the demo app then it will be very simple to deploy to the create page so let's start there. |
thanks. |
@sxren maybe but I'm not sure of exact way to do that plus I want the demo app in datapackage-init as an example for others not just our use. Re identifiers for licenses we should use those in github.com/okfn/licenses |
@rgrp hold off on the review. a github api request per page view is a bad idea. also, the licenses var in the lib isn't available to the view via the sourced javascript. i'll have a look at it again at lunch or tonight. |
@rgrp importing https://github.com/sxren/datapackage-licenses into both datapackage-init and data.okfn.org, along with my original fix to data.okfn.org and a small variation on my changes to datapackage-init would wrap up the license issue in both projects. i don't see a place to stick the same information in datapackage-init where the data would also be accessible to nunjucks. i gave you access to https://github.com/sxren/datapackage-licenses in case you're ok with this approach and want to move it to okfn. open to suggestions as always. |
@sxren I don't mind doing the simplest thing possible - so whatever works for you. I do note your PR on the datapackage-init looked pretty good openknowledge-archive/datapackage-init-js#5 - that's the way I'd e going and then reusing / copying over to data.okfn.org (I know it is a bit round about but it is definitely cleaner way to go and allows others to reuse demo code in other projects - which is important). |
FIXED. http://data.okfn.org/tools/create (fixed last weekend). |
The tool at http://data.okfn.org/tools/create is not letting me select a license, the dropdown is blank and greyed out.
The text was updated successfully, but these errors were encountered: