diff --git a/tools/actions/convert/test/fixtures/talk-to-expert-converted.html b/tools/actions/convert/test/fixtures/talk-to-expert-converted.html new file mode 100644 index 000000000..8c3f78f82 --- /dev/null +++ b/tools/actions/convert/test/fixtures/talk-to-expert-converted.html @@ -0,0 +1,87 @@ + + +
+
+
+ +
+ +
+
+
:dam-Bookmark:
+
Overview
+
+
+
:dam-Refresh:
+
Process Steps
+
+
+
:dam-Cube:
+
Products
+
+
+
:dam-Chat_alt:
+
Talk to an Expert
+
+
+
+
+
+

Speak to one of our world-leading life sciences experts

+

Whether you need to transform your workflows with intelligent instruments or explore how to turn scientific data into actionable insights, having expert advice at your fingertips is crucial to success. Get to know some of the leading experts from our life sciences companies below, then use the contact form to arrange a consultation.

+
+
+
+

Thank you, your submission has been submitted.

+

We will get in touch with you shortly.

+

While you wait please check out our latest insights and innovations

+ +
+
+ + + \ No newline at end of file diff --git a/tools/actions/convert/test/fixtures/talk-to-expert.html b/tools/actions/convert/test/fixtures/talk-to-expert.html new file mode 100644 index 000000000..624461454 --- /dev/null +++ b/tools/actions/convert/test/fixtures/talk-to-expert.html @@ -0,0 +1,829 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + mRNA Manufacturing Services | Danaher Life Sciences + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + +
+
+ + + + +
+ +
+ + + + +
+ + + +
+ +
+ +
+ +
+
+
+
+
+ + + + + + + + + +
+ + +
+ + +
+ + + +
+
+
+
+ + +
+
+
+
+
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+
+
+ + +
+
+ + + + + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tools/actions/convert/test/fixtures/workflow-carousel-converted.html b/tools/actions/convert/test/fixtures/workflow-carousel-converted.html index cd62498be..f528fbd15 100644 --- a/tools/actions/convert/test/fixtures/workflow-carousel-converted.html +++ b/tools/actions/convert/test/fixtures/workflow-carousel-converted.html @@ -16,7 +16,7 @@ Danaher Corporation

Vector Construction

-

Explore

+

Explore

@@ -26,7 +26,7 @@ Danaher Corporation

Sequence Verification

-

Explore

+

Explore

@@ -36,7 +36,7 @@ Danaher Corporation

Stable Transfection & Selection

-

Explore

+

Explore

@@ -46,7 +46,7 @@ Danaher Corporation

Pool Screening

-

Explore

+

Explore

@@ -56,7 +56,7 @@ Danaher Corporation

Monoclonality Verification

-

Explore

+

Explore

@@ -66,7 +66,7 @@ Danaher Corporation

Selection Based on Stability/Expansion

-

Explore

+

Explore

@@ -76,7 +76,7 @@ Danaher Corporation

Sequence Verification

-

Explore

+

Explore

@@ -86,7 +86,7 @@ Danaher Corporation

Antibody Characterization

-

Explore

+

Explore

@@ -96,7 +96,7 @@ Danaher Corporation

Scale up – Cell Growth/Expansion

-

Explore

+

Explore

@@ -106,7 +106,7 @@ Danaher Corporation

Sequence Verification

-

Explore

+

Explore

@@ -116,7 +116,7 @@ Danaher Corporation

Antibody Characterization

-

Explore

+

Explore

@@ -126,7 +126,7 @@ Danaher Corporation

GMP Master Cell Bank

-

Explore

+

Explore

diff --git a/tools/importer/transformers/index.js b/tools/importer/transformers/index.js index 0c570bcf0..dbc107a8c 100644 --- a/tools/importer/transformers/index.js +++ b/tools/importer/transformers/index.js @@ -42,6 +42,7 @@ import pageJumpMenu from './pageJumpMenu.js'; import download from './download.js'; import workflowTabs from './workflowTabs.js'; import timeline from './timeline.js'; +import stats from './stats.js'; import workflowCarousel from './workflowCarousel.js'; import embedScript from './embedScript.js'; @@ -86,6 +87,7 @@ export const transformers = [ download, workflowTabs, timeline, + stats, workflowCarousel, embedScript, ]; diff --git a/tools/importer/transformers/stats.js b/tools/importer/transformers/stats.js new file mode 100644 index 000000000..93e0f3a90 --- /dev/null +++ b/tools/importer/transformers/stats.js @@ -0,0 +1,26 @@ +/* global WebImporter */ +const createStats = (main, document) => { + const stats = main.querySelector('stats'); + if (stats) { + const div = document.createElement('div'); + const title = stats.getAttribute('title'); + const description = stats.getAttribute('description'); + if (title) { + const h2El = document.createElement('h2'); + h2El.textContent = title; + div.append(h2El); + } + if (description) { + const pEl = document.createElement('p'); + pEl.textContent = description; + div.append(pEl); + } + const cells = [ + ['Stats'], + [div], + ]; + const block = WebImporter.DOMUtils.createTable(cells, document); + stats.append(block); + } +}; +export default createStats; diff --git a/tools/importer/transformers/workflowCarousel.js b/tools/importer/transformers/workflowCarousel.js index 264611b32..c5559ec90 100644 --- a/tools/importer/transformers/workflowCarousel.js +++ b/tools/importer/transformers/workflowCarousel.js @@ -25,6 +25,7 @@ const createWorkflowCarousel = (main, document) => { const { link } = slide; if (link) { const anc = document.createElement('a'); + anc.title = 'link'; anc.href = link; anc.textContent = 'Explore'; rightDiv.append(anc);