From 72e306935f5f7ca8d1e84b033f0517fd9f1aafb5 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 15 Jul 2023 13:28:31 -0500 Subject: [PATCH] Update:Support and as separator between multiple authors #1790 --- server/utils/parsers/parseNameString.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/utils/parsers/parseNameString.js b/server/utils/parsers/parseNameString.js index 96aa4bbe..f60eec10 100644 --- a/server/utils/parsers/parseNameString.js +++ b/server/utils/parsers/parseNameString.js @@ -43,6 +43,8 @@ module.exports.parse = (nameString) => { // Example &LF: Friedman, Milton & Friedman, Rose if (nameString.includes('&')) { nameString.split('&').forEach((asa) => splitNames = splitNames.concat(asa.split(','))) + } else if (nameString.includes(' and ')) { + nameString.split(' and ').forEach((asa) => splitNames = splitNames.concat(asa.split(','))) } else if (nameString.includes(';')) { nameString.split(';').forEach((asa) => splitNames = splitNames.concat(asa.split(','))) } else {