Skip to content

Commit

Permalink
Closes #3576 Add new demo AZ News node with embedded media and extra …
Browse files Browse the repository at this point in the history
…paragraphs (#3631)
  • Loading branch information
djcelaya authored Aug 23, 2024
1 parent e631a54 commit c4ffb88
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 3 deletions.
28 changes: 28 additions & 0 deletions modules/custom/az_demo/data/az_demo_card_paragraph.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,34 @@
}
],
"bottom_spacing" : "mb-5"
},
{
"id": 109,
"card_width": "col-lg-12",
"card_style": "card",
"card_title_style": "default",
"card_clickable": false,
"az_cards": [
{
"delta": 0,
"title": "Related Stories",
"body": "<p><a href=\"/news/could-mans-best-friend-be-mans-best-medicine\">Could Man's Best Friend Be Man's Best Medicine?</a></p><p><a href=\"/news/runners-brains-may-have-more-connectivity-ua-research-shows\">Runners' Brains May Have More Connectivity, UA Research Shows</a></p><p><a href=\"/news/fruit-flies-and-cellular-demise-zeroing-causes-als\">Fruit Flies and Cellular Demise – Zeroing in on the Causes of ALS</a></p>"
}
]
},
{
"id": 110,
"card_width": "col-lg-12",
"card_style": "card",
"card_title_style": "default",
"card_clickable": false,
"az_cards": [
{
"delta": 1,
"title": "Contact",
"body": "<p>Wilma Wildcat<br>University of Arizona<br>520-621-1986, [email protected]</p>"
}
]
}
]
}
18 changes: 16 additions & 2 deletions modules/custom/az_demo/data/az_demo_image_file.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,21 @@
"alt" : "Navajo wool weaving",
"title": "",
"caption": "Axis Radius, 2016, Wool, aniline dyes, vegetal dyes, Lent by James Wezelman and Denise Grusin"
},
{
"filename" : "Health-Sciences-Education-Building-2464x1640.jpg",
"alt" : "Alternate text",
"title" : "",
"caption" : "The innovative treatment, known as Insulix-21, has demonstrated remarkable success in early clinical trials.",
"credit" : "Photo by Jacob Chinn, University of Arizona Alumni Association"
},
{
"filename" : "BIO5-Keating-1224x682.jpg",
"alt" : "Alternate text",
"title" : "",
"caption" : "Insulix-21 is a novel therapy that combines cutting-edge stem cell technology with advanced immunomodulation techniques",
"credit" : "Courtesy of Wilma Wildcat",
"uuid": "aec26a34-72da-4a7c-94e1-8e2793ec67c2"
}
]
}

}
22 changes: 21 additions & 1 deletion modules/custom/az_demo/data/az_demo_news_node.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,26 @@
"az_link_title" : "",
"az_news_tags" : "Campus News",
"az_short_title" : "[node:title]"
},
{
"id":6,
"title" : "University of Arizona Unveils Pioneering Treatment for Type 1 Diabetes: A Game-Changer for Patients",
"az_byline" : "By Wilma Wildcat, University of Arizona",
"az_published" : "2020-01-01 00:00:00",
"az_media_image" : "Health-Sciences-Education-Building-2464x1640.jpg",
"az_thumbnail" : "",
"az_featured_image_as_thumb" : "1",
"az_subheading" : "Developed by the University of Arizona's Center for Endocrine Research, Insulix-21 is a novel therapy that combines cutting-edge stem cell technology with advanced immunomodulation techniques.",
"az_body" : "<p><span class=\"lead\">The University of Arizona has announced a groundbreaking medical breakthrough in the treatment of Type 1 diabetes, unveiling a revolutionary new therapy that holds the potential to dramatically alter the management of this chronic condition.</span></p><drupal-media data-entity-type=\"media\" data-entity-uuid=\"aec26a34-72da-4a7c-94e1-8e2793ec67c2\" data-align=\"right\">&nbsp;</drupal-media><p>The innovative treatment, known as Insulix-21, has demonstrated remarkable success in early clinical trials, offering new hope to millions of individuals living with Type 1 diabetes. Developed by the University of Arizona's Center for Endocrine Research, Insulix-21 is a novel therapy that combines cutting-edge stem cell technology with advanced immunomodulation techniques. This dual-action approach not only aims to restore the body's ability to produce insulin but also prevents the autoimmune response that attacks insulin-producing cells in the pancreas.</p><p>Dr. Maria Alvarez, the principal investigator and Professor of Endocrinology at the University of Arizona, elaborated on the breakthrough: \"Insulix-21 represents a significant advancement in Type 1 diabetes treatment. By leveraging stem cells to regenerate pancreatic beta cells and incorporating immunomodulatory agents to protect these cells from immune system attacks, we are addressing the root causes of the disease.\"</p><p>In a recent clinical trial involving 120 participants, Insulix-21 demonstrated a 65% reduction in insulin dependence and a 50% improvement in glycemic control over a 12-month period. Patients also reported enhanced quality of life and reduced incidence of diabetes-related complications.</p><p>Dr. Alvarez expressed her excitement about the potential impact of Insulix-21: \"This breakthrough has the potential to not only manage Type 1 diabetes more effectively but also offer a path towards long-term remission for many patients. The early results are incredibly promising, and we are eager to continue our research and bring this transformative therapy to the wider community.\"</p><p>The University of Arizona is now preparing for larger-scale trials and is in discussions with leading pharmaceutical companies to accelerate the development and availability of Insulix-21. Additionally, the university has established a comprehensive support program to assist patients and families in accessing this cutting-edge therapy and managing their diabetes effectively.</p><p>This achievement highlights the University of Arizona's dedication to advancing medical research and improving patient outcomes. The Insulix-21 team is optimistic about the potential of this new treatment to make a significant difference in the lives of individuals affected by Type 1 diabetes.</p>",
"az_summary" : "A revolutionary new therapy that holds the potential to dramatically alter the management of this chronic condition.",
"az_attachments" : "",
"az_attachments_description" : "",
"az_expiration_date" : "2106-02-06 23:28:15",
"az_link_url" : "",
"az_link_title" : "",
"az_news_tags" : "Campus News",
"az_short_title" : "[node:title]",
"az_main_content" : "109|110"
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions modules/custom/az_demo/migrations/az_demo_news_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,32 @@ process:
migration:
- az_demo_image_file

pseudo_exploded_paragraphs:
-
plugin: skip_on_empty
method: process
source: field_az_main_content
-
plugin: explode
source: field_az_main_content
delimiter: '|'

pseudo_paragraphs:
-
plugin: migration_lookup
migration:
- az_demo_card_paragraph
- az_demo_text_paragraph
- az_demo_paragraph_gallery
source: '@pseudo_exploded_paragraphs'

field_az_main_content:
plugin: sub_process
source: '@pseudo_paragraphs'
process:
target_id: '0'
target_revision_id: '1'

field_az_media_thumbnail_image/target_id:
plugin: migration_lookup
source: az_thumbnail
Expand Down

0 comments on commit c4ffb88

Please sign in to comment.