CDR Tickets

Issue Number 5166
Summary [Summary] Modify Spanish Link ID Swap macro to include additional elements
Created 2022-10-18 15:11:49
Issue Type Improvement
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2022-11-07 10:20:51
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.330048
Description

As a CDR translator I want to be able to run the Spanish Link ID Swap macro and have Media Link (MediaId) and Summary Ref elements swapped to the corresponding Spanish versions of the documents so that I can more effectively translate the summary.

 

Acceptance Criteria

Scenario: The Spanish Link Swap macro is able to swap Media Link and Summary Ref elements

Given I am a CDR summary translator

  And I have permission to run the Spanish Link ID Swap macro

When I run the macro for a summary that contain Media Link (MediaId) or Summary Ref elements

Then I want to be able to see the target links swapped to the corresponding Spanish documents within the summary

Comment entered 2022-10-19 16:02:27 by Kline, Bob (NIH/NCI) [C]

This will involve a complete rewrite of this macro. The current macro is implemented in pure JavaScript, because it can meet all of the original requirements by examining and manipulating the document being edited. The new requirements cannot be met that way, because they are adding the need for  collecting information elsewhere in the repository, so new DLL commands will have to be implemented and exported so the macro file can farm out the work it can't do by itself.

Comment entered 2022-11-04 10:42:24 by Kline, Bob (NIH/NCI) [C]

- I'm looking at the original macro you want to have rewritten, and I'm trying to figure out how it could possibly work correctly. The links being replaced are fragment links. How can we know that the fragment IDs for the English documents are identical to the fragment IDs for the Spanish documents?

Comment entered 2022-11-04 13:02:38 by Osei-Poku, William (NIH/NCI) [C]

This is the ticket for the original request - OCECDR-3705

I am not sure that the tool is looking for identical fragment IDs but what I know is that since the fragment links are to the same documents, the CDR ID portion of the ID is what is swapped from the English to the Spanish Doc ID.

Comment entered 2022-11-04 13:55:34 by Kline, Bob (NIH/NCI) [C]

- I assume you mean {}MediaId{}, since that's the element which contains the actual CDR ID of the Media document, right?

Comment entered 2022-11-04 14:47:15 by Osei-Poku, William (NIH/NCI) [C]

That is right. Sorry for the confusion.

Comment entered 2022-11-07 10:20:51 by Kline, Bob (NIH/NCI) [C]

Installed on CDR DEV.

Comment entered 2023-03-07 10:30:33 by Kline, Bob (NIH/NCI) [C]
Comment entered 2023-05-10 14:34:29 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA.

Comment entered 2023-06-15 13:39:28 by Osei-Poku, William (NIH/NCI) [C]

Verified on PROD. Thanks!

Elapsed: 0:00:00.001564