From 2dd67c5f0cbf52c75e03074bcc31024cd3a28377 Mon Sep 17 00:00:00 2001 From: per305 Date: Tue, 22 Feb 2022 12:00:30 +1100 Subject: [PATCH] removed string manipulations from role --- scripts/RestClient/nesp/marineArtefacts/documentImport.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/RestClient/nesp/marineArtefacts/documentImport.js b/scripts/RestClient/nesp/marineArtefacts/documentImport.js index a27230bd2..4bcde8937 100644 --- a/scripts/RestClient/nesp/marineArtefacts/documentImport.js +++ b/scripts/RestClient/nesp/marineArtefacts/documentImport.js @@ -89,13 +89,7 @@ for(var i = 1; i < csvRows.length; i++) { } if (fields[role]) { - if ((fields[role].indexOf(',') != -1) || (fields[role].indexOf('"') != -1)) { - var tempType = fields[role].replace(/""/g, '"'); - document.role = tempType.substring(1, tempType.length - 1); - } - else { - document.role = fields[role] - } + document.role = fields[role] } if (fields[citation]) {