Ticket #1729 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 2 years ago

Helper function for extensions to add vocabularies to a ckan instance

Reported by: seanh Owned by: johnglover
Priority: major Milestone: ckan-sprint-2012-02-20
Component: ecportal Keywords: taxonomies
Cc: Repository: ckan
Theme: none


Add a helper function to make it easy for extensions to add new vocabularies to default_package_schema(). The helper function should take the name or ID of a vocabulary (which should already exist in the db) and add the necessary key: [schema] entry to default_package_schema(), with the necessary validation, authorisation, transformation.

Change History

comment:1 Changed 2 years ago by johnglover

  • Priority changed from awaiting triage to major
  • Milestone changed from ckan-v1.6 to current-ckan-sprint-2012-02-20

comment:2 Changed 2 years ago by johnglover

  • Owner set to johnglover
  • Status changed from new to assigned

comment:3 Changed 2 years ago by johnglover

  • Status changed from assigned to closed
  • Resolution set to duplicate

This is essentially a duplicate of #1720. We do not really need helper functions for this (as it's trivial to get the default schema and add 1 extra key), but I have added a converter for tag string (with vocab) to tag and vice versa.

comment:4 Changed 2 years ago by seanh

  • Component changed from ckan to ecportal
Note: See TracTickets for help on using tickets.