CDR Tickets

Issue Number 4616
Summary [DIS] Restrict title length to 100 characters or fewer
Created 2019-05-09 16:41:18
Issue Type Improvement
Submitted By Kline, Bob (NIH/NCI) [C]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2019-05-10 15:47:12
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.243961
Description

The new Drupal CMS will use the DrugInformationSummary title as the browser_title field, and that field has a limit of 100 characters. In the current GateKeeper/Percussion system, that field is silently truncated at 64 characters, which is not a desirable approach. None of the existing titles are even close to this limit (no surprise, as it would be pretty difficult to market a drug - even a drug combination - with a name longer than 100 characters), so no changes to the current data are needed. This constraint will need to be implemented with a custom rule, as the Title element used for the DIS documents is a common element type used throughout the system, and it would be inappropriate to impose this constraint for other document types. At some point in the future, should such an enhancement be deemed appropriate, we could loosen this restriction by adding a separate optional BrowserTitle element, to be used in a case where a DIS title really needed to be longer than 100 characters, and a shorter override for the browser title would be provided.

Comment entered 2019-05-09 16:42:41 by Kline, Bob (NIH/NCI) [C]

Adding and as watchers so they'll be aware that this schema change is in the works.

Comment entered 2019-05-10 15:47:12 by Kline, Bob (NIH/NCI) [C]

This schema change has been installed on DEV. You can test using the following steps:

  1. check out a valid DrugInformationSummary document

  2. set the DrugInformationSummary/Title element's value to a string containing exactly 100 characters

  3. verify that the document still passes schema validation

  4. add one character to that element's value

  5. confirm that the document fails validation

  6. remove the last character from the DrugInformationSummary/Title element

  7. insert or find another Title element elsewhere in the document (for example under SummarySection or Table)

  8. set the value of that Title element to a string containing well over 100 characters

  9. confirm that the document still passes schema validation

  10. unlock the document, discarding the changes

Elapsed: 0:00:00.001575