CDR Tickets

Issue Number 5044
Summary Modify publishing software to make CDR required top-level section title optional for intro text
Created 2021-10-15 13:03:07
Issue Type New Feature
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2021-10-28 12:44:00
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.300651
Description

As a CDR summary editor, I want the ability to add intro text to a SVPC summary that does not require a section title that is normally required for top level sections, so that the content can support SEO best practices for the SVPC initiative.

  

Currently the CDR does not allow for top-level sections to be designated as intro text at the start of a page without requiring a top-level section title. At least one of the SVPC liver treatment summaries will require an intro text without a section title. We need to be able to add introductory text at the start of the page without displaying a section title. Essentially, this is a requirement for body sections that don’t need a title.  

  

Scenario: CDR makes section title element optional for SVPC summaries  

  Given: I am a CDR patient summary editor  

    And I have permissions to create summaries in the CDR 

    And I have permissions to edit summaries in the CDR  

    And I create or edit a new SVPC summary  

  When I add a new top-level summary section element to the SVPC summary  

  Then the CDR should allow me to mark the top-level section title as optional  

(Or: Then the CDR has the ability to add a body section without filling in the title text)  

 

 

Scenario: CDR makes section title element optional for SVPC summaries  

  Given: I am a CDR patient summary editor  

    And I have permissions to create new summaries in the CDR

    And I have permissions to edit summaries in the CDR  

    And I create or edit a SVPC summary  

    And I add a new top-level summary section element to the SVPC summary 

 When I make the section title element optional

 Then the CDR should not make the summary invalid

Comment entered 2021-10-18 19:27:07 by Englisch, Volker (NIH/NCI) [C]

Would it make sense to add a value of "Info Text" (or something like that) to the LOV for SectionType?  The filter and validation could use this value to identify if it's OK for the Title element to be missing or not.  A SVPC summary template could have this information pre-populated.

Comment entered 2021-10-25 14:50:45 by Osei-Poku, William (NIH/NCI) [C]

From a user perspective, I don't see any problem with it as we are already familiar with the section type and this sounds like a true section type.

Comment entered 2021-10-27 15:33:57 by Kline, Bob (NIH/NCI) [C]

This isn't handled by the schemas, but by the filters. I have modified the title and the category for the ticket, and reassigned it to .

Comment entered 2021-10-27 17:41:53 by Englisch, Volker (NIH/NCI) [C]

The schemas allow a section without title and so do the filters.  It is cdrpub.py that's enforcing the "must have H2 tag" rule.

Back to you, .

Comment entered 2021-10-28 12:44:00 by Kline, Bob (NIH/NCI) [C]

Modification installed on CDR DEV.

Comment entered 2021-11-01 13:39:57 by Osei-Poku, William (NIH/NCI) [C]

Verified on DEV. Thanks!

Comment entered 2021-11-10 12:21:20 by Osei-Poku, William (NIH/NCI) [C]

 Can you please confirm that the publishing filters changes have been completed for this ticket? I was checking pup preview for this doc CDR0000805700 on DEV but the intro text feature does not appear to be working in pp.

Comment entered 2021-11-10 13:06:17 by Englisch, Volker (NIH/NCI) [C]

Yes, I can confirm that the XML created by the Vendor Filter Summary Set includes the Intro Text summary section without a Title element.

I am guessing that the Intro Text is missing because CDR-DEV is pointing to the Drupal-DEV server but the Intro Text changes to Drupal are implemented on a different Drupal test server, so the PublishPreview process does not see these changes yet.  You may remember that Bryan had asked not to treat the Intro Text section as a regular summary section but create its own intro text element within Drupal.
Am I on the right track, ?

Comment entered 2021-11-10 13:37:36 by Kline, Bob (NIH/NCI) [C]

Yes, if you point CDR DEV (temporarily — you'll want to remember to switch it back after the ODE has been repurposed) at the ODE whose URL I posted in the chat for this morning's meeting, I think you'll get better results.

Comment entered 2021-11-10 16:39:15 by Osei-Poku, William (NIH/NCI) [C]

It will be good to have it point to the right server as we test these changes. It makes it hard to keep up with things if you're not seeing what you expect.

Comment entered 2021-11-10 17:47:43 by Englisch, Volker (NIH/NCI) [C]

I totally agree with you, .  However, we also need to keep in mind that we're currently working on tickets in Ohm, Oersted, and Oppenheimer and for some of the testing we need to coordinate to ensure the environment is properly prepared.

I have updated the config file to point to the ODE that includes Bob's changes.

Comment entered 2021-11-10 18:25:23 by Osei-Poku, William (NIH/NCI) [C]

Thanks! It would be good to keep it there until I get all SVPC the documents ready by next week. 

The intro text function is working now. However, the navigation is still missing but I assume that should be expected, right?

Comment entered 2021-11-10 18:40:47 by Englisch, Volker (NIH/NCI) [C]

If you're referring to the left navigation I remember that we talked about this with Lindsay.  The navigation is missing because the URL doesn't follow the correct hierarchy.

Comment entered 2021-11-29 20:00:19 by Englisch, Volker (NIH/NCI) [C]

I'm not sure why this ticket is still open and assigned to me.  The requested "Introductory Text" section without mandatory Title element has already been implemented and tested.

I'm setting the status to "Fixed" unless I hear of additional changes required for this ticket.

Comment entered 2021-11-30 19:06:30 by Osei-Poku, William (NIH/NCI) [C]

I re-opened this ticket because of the issue I was having with pub preview when CDR-DEV was not pointing to the correct server for the right pub preview to be generated for the SVPC summaries. That issue is fixed now so I will mark this ticket as DEV verified again.

Comment entered 2022-05-26 13:42:46 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA and PROD. Thanks!

Elapsed: 0:00:00.001465