CDR Tickets

Issue Number 5261
Summary Duplicate Section Title in Gov Delivery Report
Created 2023-07-05 12:52:27
Issue Type Bug
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2023-07-06 08:46:00
Resolution Won't Fix
Path /home/bkline/backups/jira/ocecdr/issue.350225
Description

Linda noticed duplicate section title for the Gov Deliver report for the week of (2023-06-23 to 2023-06-30) Could you please investigate?

 

The summary in question is a Spanish summary  - CDR0000784901 where the Section Title 

 

" Tumores del sistema nervioso central" displays twice in the report even though there is only one such section title within the Changes Section but with two Strong elements around it. 

 

 

Comment entered 2023-07-05 17:54:29 by Englisch, Volker (NIH/NCI) [C]

The following rule was given for the report creation and extraction of the SummarySection titles:

"Identify text that is in both strong and para tags.  This is the convention to represent headings."

The code extracts these tags via two loops.  It finds a Para tag and applies another loop to find the Strong tags.  It then assumes the text within the Strong tags to be a SummarySection title and therefore it finds the text

<strong>Section title</strong>

The code then continues looking for the next Strong tag within the Para and finds the next Strong. The text for this element is now

Section title

and that's how the duplicated title appears on the report.  This is more of a data issue than a programming bug.

Comment entered 2023-07-05 17:58:19 by Englisch, Volker (NIH/NCI) [C]

I prepared a document on DEV with multiple nested Strong tags.  I can run a publishing job followed by a test GovDelivery job to confirm what I said in my previous comment but don't really think it's necessary.  We should just fix the duplicated Strong tags in the summary.

Do you agree, ?

Comment entered 2023-07-06 08:45:51 by Osei-Poku, William (NIH/NCI) [C]

That is right, there is no reason to have two strong tags around text. Thanks!

Elapsed: 0:00:00.001426