diff --git a/src/app/db/data.ts b/src/app/db/data.ts index 6e4d5db..a7270dd 100644 --- a/src/app/db/data.ts +++ b/src/app/db/data.ts @@ -20,7 +20,7 @@ export type DocumentStatus = | 'under review' | 'reviewed' | 'published no review' - + export interface Document { manifest: DocumentManifest abstract: string diff --git a/src/app/document/view/[slug]/VersionChooser.tsx b/src/app/document/view/[slug]/VersionChooser.tsx index 9172621..e9c7757 100644 --- a/src/app/document/view/[slug]/VersionChooser.tsx +++ b/src/app/document/view/[slug]/VersionChooser.tsx @@ -50,14 +50,14 @@ const VersionChooser = ({ className='ml-2 h-10 px-2.5 bg-slate-300 rounded-md' onClick={() => { const bibtex = `@article{ - author={${ - authors.map((a: string, i) => { + author={${authors + .map((a: string, i) => { const author = authorList[a].name.first + ' ' + authorList[a].name.last if (i === 0) return author else if (i === authors.length - 1) return ` and ${author}` else return `, ${author}` - }).join('') - }}, + }) + .join('')}}, title={${doc.manifest.title}}, journal={eeXiv journal}, year={${date.getFullYear()}},