fix(Elife): Move downloads into own section
-import { after, append, create, select } from '../../util'
+import { after, create, select } from '../../util'
import eLifeDataProvider from './eLifeDataProvider'
const getPdfUrl = async (id: string, pdfType: string): Promise<string> => {
@@ -51,8 +51,11 @@ const buildMenu = (
articleTitle: string,
pdfUrl: string
): void => {
- append(
+ after(
select(':--references')[0],
+ create(
+ 'section',
+ null,
create('h2', null, 'Download links'),
create('h3', null, 'Downloads'),
create(
@@ -108,6 +111,7 @@ const buildMenu = (
)
)
)
+ )
}
export const build = (articleId: string, articleTitle: string): void => {
