CDR Tickets

Issue Number 4259
Summary [Summaries] Summaries TOC Report - Preserve Markup when Copied/Pasted Into Word
Created 2017-04-19 11:42:29
Issue Type Improvement
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2018-03-28 11:06:27
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.206754
Description

Markup is displayed in the summaries TOC report results in the browser. However, this markup is "lost" when the report is copied/pasted into Word. Would it be possible to preserve this markup so we can easily copy/paste this report into a version that we can share with a Board member? Thanks.

Comment entered 2018-02-16 16:21:00 by Englisch, Volker (NIH/NCI) [C]

Adding an older issue in case its solution might be useful here.

Comment entered 2018-03-13 09:01:13 by Kline, Bob (NIH/NCI) [C]

Just to confirm, I'm assuming (nudged in this direction by the second issue to which you provided the link) that you're talking about the original meaning of markup, and not the overloaded meaning of "markup" added in discussions about the CDR ("insertion/deletion markup"), right?

(I have taken to using the less ambiguous phrases "display markup" or "HTML markup" to distinguish the original meaning from the new one which has been added to refer to Insertion and Deletion elements in the CDR.)

Thanks.

Comment entered 2018-03-13 09:09:18 by Kline, Bob (NIH/NCI) [C]

Can you provide a list of specific markup you want preserved? I was surprised to see (after reading the issue description) that the colors, font size, centering, and list hierarchy are all preserved when pasting from the report to Word (see attachment). Perhaps my first assumption (see the previous comment) is wrong, and you're really talking about Insertion/Deletion element content being lost.

Comment entered 2018-03-13 14:48:03 by Juthe, Robin (NIH/NCI) [E]

I'm referring to insertion/deletion markup. Sorry for the confusion.

Comment entered 2018-03-13 15:57:45 by Kline, Bob (NIH/NCI) [C]

Could you give me an example?

Comment entered 2018-03-15 14:16:52 by Juthe, Robin (NIH/NCI) [E]

Robin will provide an example of a summary with markup in headings on DEV.

Comment entered 2018-03-28 10:14:08 by Juthe, Robin (NIH/NCI) [E]

The Cancer Genetics Risk Assessment and Counseling summary has quite a bit of markup in the headings on DEV. CDR62865

Comment entered 2018-03-28 10:22:59 by Kline, Bob (NIH/NCI) [C]

Just so I don't fall into the same trap that caught Volker earlier: when you say "copy and paste" you mean exactly that, and not "Edit with Word" right?

Comment entered 2018-03-28 10:24:24 by Juthe, Robin (NIH/NCI) [E]

Yes, I mean copy & paste. Thanks.

Comment entered 2018-03-28 11:06:27 by Kline, Bob (NIH/NCI) [C]

Markup dumbed down for Microsoft Word on DEV.

https://github.com/NCIOCPL/cdr-server/commit/64b56faa

Comment entered 2018-03-30 09:30:35 by Kline, Bob (NIH/NCI) [C]

Let me know if this works in your installation of Word, .

Comment entered 2018-03-30 10:24:30 by Englisch, Volker (NIH/NCI) [C]

Just an FYI:
I heard (and confirmed) that the Edit with Word function is identical to saving a web page as HTML document and opening this with Word. The copy/paste function, however, is different.
I was always under the impression that copy/paste and Edit with Word were the same.

Comment entered 2018-04-03 10:12:11 by Juthe, Robin (NIH/NCI) [E]

Yes, this works for me. Verified on DEV. Thank you!

Comment entered 2018-04-11 14:04:26 by Juthe, Robin (NIH/NCI) [E]

Verified on QA.

Comment entered 2018-06-05 08:23:38 by Kline, Bob (NIH/NCI) [C]

, I believe this is the last Hawking ticket to be closed. Working OK on PROD?

Comment entered 2018-06-05 15:32:25 by Juthe, Robin (NIH/NCI) [E]

Yes, this is working well on PROD. Thank you!

Attachments
File Name Posted User
Single Summary TOC Report.docx 2018-03-13 09:06:22 Kline, Bob (NIH/NCI) [C]

Elapsed: 0:00:00.000556