lib/ckan-importer.js
function setVocabIds(index, pkg, callback) {
	if(!pkg.tags) return callback();

	if( index == pkg.tags.length ) {
		callback();
	} else {
		getVocabId(pkg.tags[index].vocabulary_id, function(id) {
			pkg.tags[index].vocabulary_id = id;
			index++;
			setVocabIds(index, pkg, callback);
		});
	}
}
function setVocabIds(index, pkg, callback) {
	if(!pkg.tags) return callback();

	if( index == pkg.tags.length ) {
		callback();
	} else {
		getVocabId(pkg.tags[index].vocabulary_id, function(id) {
			pkg.tags[index].vocabulary_id = id;
			index++;
			setVocabIds(index, pkg, callback);
		});
	}
}
function setVocabIds ( index , pkg , callback ) { if ( ! pkg . tags ) return callback ( ) ; if ( index == pkg . tags . length ) { callback ( ) ; } else { getVocabId ( pkg . tags [ index ] . vocabulary_id , function ( id ) { pkg . tags [ index ] . vocabulary_id = id ; index ++ ; setVocabIds ( index , pkg , callback ) ; } ) ; } }
we are going to assume people pass names in the vocabulary_id column to which point we need to look up the id from the name so package_create does the correct association
we are going to assume people pass names in the vocabulary_id column to which point we need to look up the id from the name so package_create does the correct association