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 |
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
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.
~oseipokuw - 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?
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.
~oseipokuw - I assume
you mean {}MediaId{
}, since that's the element which
contains the actual CDR ID of the Media document, right?
That is right. Sorry for the confusion.
Installed on CDR DEV.
Verified on QA.
Verified on PROD. Thanks!
Elapsed: 0:00:00.001564