From 20b432587d586279f47bc7952b1502d7139a1907 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Tue, 27 Aug 2024 17:07:20 +0200 Subject: [PATCH] editor: improve author xml detection --- .../editor/test_editor_views/author_list.xml | 6 ++++-- .../author-extract-actions.component.ts | 13 +++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/backend/tests/integration/editor/test_editor_views/author_list.xml b/backend/tests/integration/editor/test_editor_views/author_list.xml index 6dda41236..22b9b65ce 100644 --- a/backend/tests/integration/editor/test_editor_views/author_list.xml +++ b/backend/tests/integration/editor/test_editor_views/author_list.xml @@ -1,4 +1,6 @@ - + + + 2022-01-25 Fermilab-PUB-2022-01-25 @@ -34,4 +36,4 @@ - + diff --git a/record-editor/src/app/shared/components/extract-actions/author-extract-actions.component.ts b/record-editor/src/app/shared/components/extract-actions/author-extract-actions.component.ts index 3b0a8b8ef..399c2cc80 100644 --- a/record-editor/src/app/shared/components/extract-actions/author-extract-actions.component.ts +++ b/record-editor/src/app/shared/components/extract-actions/author-extract-actions.component.ts @@ -113,11 +113,12 @@ export class AuthorExtractActionsComponent { if (isUrl) { return 'url'; } - - const isXml = this.source.startsWith('