%% 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 ``` %% **Authors:** Adler, Mortimer J., Van Doren, Charles **Publisher:** Simon & Schuster **Year:** 2011 %% DATAVIEW_PUBLISHER: end %%