From 58bd7871502bfc86839111fa20f83ee1408303c3 Mon Sep 17 00:00:00 2001 From: Danielle <54275830+DanielleInkster@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:22:05 -0700 Subject: [PATCH] Displays author name in Merge UI (#9920) * added get_author_names function * created enhanced records * added author name and css * Added enhancedRecord to merge function * remove from enhanced records * Update book path to search * throws new error * added comment * used try/catch * updated enhancedRecords to use for loop * add author name as td * Moved bold to css * Small style tweaks to author names in merge table * Fix undefined variable in AuthorRoleTable.vue * Handle cases where authors are missing in MergeTable --- .../components/MergeUI/AuthorRoleTable.vue | 2 +- openlibrary/components/MergeUI/MergeTable.vue | 30 ++++++++++++++-- openlibrary/components/MergeUI/utils.js | 36 +++++++++++++++++++ 3 files changed, 65 insertions(+), 3 deletions(-) diff --git a/openlibrary/components/MergeUI/AuthorRoleTable.vue b/openlibrary/components/MergeUI/AuthorRoleTable.vue index b109df1df78..b414a9aa0d6 100644 --- a/openlibrary/components/MergeUI/AuthorRoleTable.vue +++ b/openlibrary/components/MergeUI/AuthorRoleTable.vue @@ -19,7 +19,7 @@ {{role[field].key.slice("/authors/".length)}} -