From ea9b64d49159dd92d7b89b1456f7d80cfd4345a5 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Thu, 21 Oct 2021 20:40:00 +0300 Subject: [PATCH 1/2] ISAICP-6773: Test that embedded video metadata is stripped from news articles in the Latest News block. --- tests/features/homepage.feature | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/features/homepage.feature b/tests/features/homepage.feature index a489c49ee2..fe214133e2 100644 --- a/tests/features/homepage.feature +++ b/tests/features/homepage.feature @@ -30,11 +30,11 @@ Feature: Homepage | title | Shaping of nature | | state | validated | And news content: - | title | headline | collection | topic | state | publication date | body | - | Current biodiversity crisis | Preserve habitats | Shaping of nature | Finance in EU, Supplier exchange, E-health | validated | 2021-04-26T19:09:00Z | Here we combine global maps of human populations and land use over the past 12000 y with current biodiversity data to show that nearly three quarters of nature has long been shaped by histories of human habitation and use by indigenous peoples. | - | Environmental stewardship | Transformative practices | Shaping of nature | Employment and Support Allowance | validated | 2021-01-27T16:12:00Z | With rare exceptions current biodiversity losses are caused not by human conversion or degradation of untouched ecosystems but rather by the appropriation colonization and intensification of use in lands inhabited and used by prior societies. | - | Spatial reconstruction | Loss of wildlands | Shaping of nature | HR, Statistics and Analysis, E-justice | validated | 2021-02-28T13:15:00Z | Global land use history confirms that empowering the environmental stewardship of Indigenous peoples and local communities will be critical to conserving biodiversity across the planet. | - | Earlier transformations | Ecosystem management | Shaping of nature | EU and European Policies | validated | 2021-03-29T10:18:00Z | Archaeological evidence shows that by 10000 BCE all societies employed ecologically transformative land use practices including burning hunting species propagation domestication cultivation have left long-term legacies across the biosphere. | + | title | headline | collection | topic | state | publication date | body | + | Current biodiversity crisis | Preserve habitats | Shaping of nature | Finance in EU, Supplier exchange, E-health | validated | 2021-04-26T19:09:00Z | Here we combine global maps of human populations and land use over the past 12000 y with current biodiversity data to show that nearly three quarters of nature has long been shaped by histories of human habitation and use by indigenous peoples. | + | Environmental stewardship | Transformative practices | Shaping of nature | Employment and Support Allowance | validated | 2021-01-27T16:12:00Z | With rare exceptions current biodiversity losses are caused not by human conversion or degradation of untouched ecosystems but rather by the appropriation colonization and intensification of use in lands inhabited and used by prior societies. | + | Spatial reconstruction | Loss of wildlands | Shaping of nature | HR, Statistics and Analysis, E-justice | validated | 2021-02-28T13:15:00Z | Global land use history confirms that empowering the environmental stewardship of Indigenous peoples and local communities will be critical to conserving biodiversity across the planet. | + | Earlier transformations | Ecosystem management | Shaping of nature | EU and European Policies | validated | 2021-03-29T10:18:00Z | "

{""preview_thumbnail"":""/sites/default/files/styles/video_embed_wysiwyg_preview/public/video_thumbnails/dQw4w9WgXcQ.jpg?itok=s9z0clFM"",""video_url"":""https://www.youtube.com/watch?v=dQw4w9WgXcQ"",""settings"":{""responsive"":true,""width"":""854"",""height"":""480"",""autoplay"":false},""settings_summary"":[""Embedded Video (Responsive).""]}Archaeological evidence shows that by 10000 BCE all societies employed ecologically transformative land use practices including burning hunting species propagation domestication cultivation have left long-term legacies across the biosphere.

" | When I am on the homepage Then the latest news section should contain the following news articles: | date | topics | title | body | From 6be863ee3b0149ab89b3cbb0838934ff40c31a41 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Thu, 21 Oct 2021 20:53:38 +0300 Subject: [PATCH 2/2] ISAICP-6773: Strip out unwanted metadata from news articles in the Latest News block. --- ...ntity_view_display.node.news.dated_listing.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/config/sync/core.entity_view_display.node.news.dated_listing.yml b/config/sync/core.entity_view_display.node.news.dated_listing.yml index 8b180bf85d..7bfce7d9b8 100644 --- a/config/sync/core.entity_view_display.node.news.dated_listing.yml +++ b/config/sync/core.entity_view_display.node.news.dated_listing.yml @@ -22,7 +22,7 @@ dependencies: module: - field_delimiter - field_formatter_range - - smart_trim + - joinup_html_stripper - template_suggestion - user id: node.news.dated_listing @@ -32,21 +32,10 @@ mode: dated_listing content: body: label: hidden - type: smart_trim + type: joinup_html_stripper_stripped weight: 2 settings: trim_length: 200 - trim_type: chars - trim_suffix: … - wrap_class: trimmed - more_text: More - more_class: more-link - summary_handler: trim - trim_options: - text: true - trim_zero: false - wrap_output: false - more_link: false third_party_settings: template_suggestion: template_suggestion: ''