%% DATAVIEW_PUBLISHER: start ```dataviewjs const currentPage = typeof file !== "undefined" ? dv.page(file.path) : dv.current(); const note = dv.page(currentPage.literature_note); let output; if (note) { const authorsArray = Array.isArray(note.book_authors) ? note.book_authors : (note.book_authors ? [note.book_authors] : []); const authors = authorsArray.join(", "); const authorLabel = authorsArray.length > 1 ? "Authors" : "Author"; output = `**${authorLabel}:** ${authors || "—"} **Publisher:** ${note.book_publisher || "—"} **Year:** ${note.book_year || "—"} `; } else { output = "⚠️ Literature note not found—check the link."; } output ``` %% **Author:** Doto, Bob **Publisher:** New Old Traditions **Year:** 2024 %% DATAVIEW_PUBLISHER: end %%