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 |
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.
Adding ~mbeckwit and ~juther as watchers so they'll be aware that this schema change is in the works.
This schema change has been installed on DEV. You can test using the following steps:
check out a valid DrugInformationSummary
document
set the DrugInformationSummary/Title
element's value
to a string containing exactly 100 characters
verify that the document still passes schema validation
add one character to that element's value
confirm that the document fails validation
remove the last character from the
DrugInformationSummary/Title
element
insert or find another Title
element elsewhere in
the document (for example under SummarySection
or
Table
)
set the value of that Title
element to a string
containing well over 100 characters
confirm that the document still passes schema validation
unlock the document, discarding the changes
Elapsed: 0:00:00.001575