diff --git a/enrich-teeft-en.ini b/enrich-teeft-en.ini index 21c2204..2665481 100644 --- a/enrich-teeft-en.ini +++ b/enrich-teeft-en.ini @@ -26,7 +26,7 @@ [assign] path = ws.teeft # certains abstracts sont des tableaux, d'autres une chaîne. On veut envoyer une chaîne. -value = get("abstract").castArray().get(0, "") +value = get("abstract", "") [expand] path = ws.teeft diff --git a/extract-fields.ini b/extract-fields.ini index be3810d..f8fb67e 100644 --- a/extract-fields.ini +++ b/extract-fields.ini @@ -23,7 +23,7 @@ value = get('static_data.summary.titles.title').filter(title => title.type === "item").map(title => title.content).join('|') path = abstract -value = get('static_data.fullrecord_metadata.abstracts.abstract.abstract_text.p', []).castArray().join(" ; ") +value = get('static_data.fullrecord_metadata.abstracts.abstract.abstract_text.p', []).castArray().map(s => s.replace(/<[^>]*>/g, "").replace("Key Points", "")).join(" ; ") path = publication_year value = get('static_data.summary.pub_info.pubyear')