From 92f78aa56a729809eb60e1f05be13a9f33894e47 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 26 Mar 2016 12:49:26 +0800 Subject: [PATCH] update tsv code to handle new export code at the very least. next step will be allowing json input too --- .../javascripts/src/Metamaps.Import.js.erb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/src/Metamaps.Import.js.erb b/app/assets/javascripts/src/Metamaps.Import.js.erb index 8d6b3867..92c9566d 100644 --- a/app/assets/javascripts/src/Metamaps.Import.js.erb +++ b/app/assets/javascripts/src/Metamaps.Import.js.erb @@ -12,22 +12,23 @@ * 6 topic6 Action -425 63 admin commons * * Synapses - * Id Description Category Topic1 Topic2 User Permission - * 43 from-to 6 2 admin commons - * 44 from-to 6 1 admin commons - * 45 from-to 6 5 admin commons - * 46 from-to 2 7 admin commons - * 47 from-to 8 6 admin commons - * 48 from-to 8 1 admin commons + * Topic1 Topic2 Category Description User Permission + * 6 2 from-to admin commons + * 6 1 from-to admin commons + * 6 5 from-to admin commons + * 2 7 from-to admin commons + * 8 6 from-to admin commons + * 8 1 from-to admin commons * */ Metamaps.Import = { + // note that user is not imported topicWhitelist: [ - 'id', 'name', 'metacode', 'description', 'link', 'permission' + 'id', 'name', 'metacode', 'x', 'y', 'description', 'link', 'permission' ], synapseWhitelist: [ - 'id', 'desc', 'description', 'category', 'topic1', 'topic2', 'permission' + 'topic1', 'topic2', 'category', 'desc', 'description', 'permission' ], cidMappings: {}, //to be filled by import_id => cid mappings