[CORE-141] Remove carriage returns / line feeds from metadataxml when filing a term in Edit Terms view Created: 12/Aug/14  Updated: 02/Oct/14  Resolved: 12/Aug/14

Status: Closed
Project: i2b2 Core Software
Component/s: Ontology Cell
Affects Version/s: 1.7.02
Fix Version/s: 1.7.03

Type: Improvement Priority: Major
Reporter: Janice Donahoe Assignee: Janice Donahoe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

i2b2 Sponsored Project/s:
i2b2 Core
i2b2 Related Project/s:
PCORI, SCILHS
Developer Notes: This is fixed on the server side.
Testing Notes: Tested with the latest ontology server changes (1.7.03) and it appears to be working. Added a few terms via the Edit Terms view and none of them filed with a carriage return / line feed.

Then manually added line feed directly into the database. Edited the term and verified the line feed was removed.
Participant/s:

 Description   
In the Edit Terms view users can add terms with the semantic type of Lab, which allows them to enter additional data (i.e. numerical or enumerated values). This additional data is used to create the metadataxml for the term.

Currently the metadataxml is filed into the C_METADATAXML column in the custom metadata table and it is stored with carriage returns / line feeds.

This change improves the way the metadataxml is filed into the table by removing all line feeds from the data before filing it into the C_METADATAXML column.



Generated at Thu Apr 17 08:47:05 UTC 2025 using Jira 8.20.11#820011-sha1:0629dd8d260e3954ece49053e565d01dabe11609.