resources/src/js/zotero.js
// map item zotero IDs to tree node IDs
map item zotero IDs to tree node IDs
map item zotero IDs to tree node IDs
function mapItemToJsNodes(itemToJs, nodes) {
	for (var i = 0; i < nodes.length; i++) {
	    node = nodes[i]
	    key = node['item-id'];
	    itemToJs[key] = node.nodeId;
	    if (typeof node.nodes != 'undefined') {
		mapItemToJsNodes(itemToJs, node.nodes);
	    }
	}
	return itemToJs;
    }
function mapItemToJsNodes ( itemToJs , nodes ) { for ( var i = 0 ; i < nodes . length ; i ++ ) { node = nodes [ i ] key = node [ 'item-id' ] ; itemToJs [ key ] = node . nodeId ; if ( typeof node . nodes != 'undefined' ) { mapItemToJsNodes ( itemToJs , node . nodes ) ; } } return itemToJs ; }
map item zotero IDs to tree node IDs
map item zotero IDs to tree node IDs