Issue Number | 5301 |
---|---|
Summary | pdqdocs filter out of date |
Created | 2023-11-17 15:17:08 |
Issue Type | Bug |
Submitted By | Kline, Bob (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Resolved |
Resolved | 2023-11-28 19:36:07 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.368410 |
It looks like the XSL/T filter in /sftp/sftphome/cdrstaging/pdq-prod/docs on the sFTP server does not match what's in the source code control repository (in fact, it hasn't been refreshed since March of 2017). However, even the latest version of the filter in the riemann branch is no longer in sync with the current summary document structure, as some bits are missing in the filtered output. Note in this screenshot that the title and CDR ID are both missing when running show-PDQ-summary.py on CDR62824 (on DEV).
I am not clear what the goal is for this ticket. You are referring to the XSLT filter sample on the sFTP server but then are using the "show-PDQ-summary.py" script on the CDR server which isn't used by the partners. Additionally, the script is loading a document from the database when it should be using the sample document.
I did download the sample XML and XSLT documents from the sFTP server and the transformed HTML document didn't show those issues you're referring to. Here is the screenshot:
Of course, the XSLT and XML documents are fairly dated but they still serve their purpose: Showing our partners how to transform a summary document.
Do we want to refresh the sample documents for the partners or do we want to fix the script show-PDQ-summary.py?
The reason why your test didn't display the summary title is a result of the test using the published version of the document. However, the XSLT filter expects to process a summary title that includes the string "(PDQ (R))". That string is only included in the partner XML and therefore, splitting the summary title in order to insert the "<sup/>" tag for the registered trademark symbol removes the actual summary title.
I am not clear what the goal is for this ticket.
The goal is to have what's in source code control match what we give the partners. I thought there was a second problem, but as you pointed out, that second problem was in my head. 😛
I've made some changes to the filter to prevent the deletion of the SummaryTitle so that the filter works properly with published XML documents as well as partner XML output. At the same time I cleaned up the code a bit, removed sections that were commented out and removed code around unused/outdated parameters. I also updated the location for our image files so that images are displayed again.
The following files have been updated in the pdqdocs directory:
PDQ-summary.xml
PDQ-summary.xsl
PDQ-summary.html
https://github.com/NCIOCPL/cdr-publishing/commit/eece76f
Note: Copying these files to the sFTP server is a manual task.
File Name | Posted | User |
---|---|---|
image-2023-11-17-15-16-20-789.png | 2023-11-17 15:16:21 | Kline, Bob (NIH/NCI) [C] |
image-2023-11-28-21-32-04-144.png | 2023-11-28 21:32:04 | Kline, Bob (NIH/NCI) [C] |
Screenshot 2023-11-27 at 5.15.53 PM.png | 2023-11-27 17:17:03 | Englisch, Volker (NIH/NCI) [C] |
Elapsed: 0:00:00.001344