Changes between Version 1 and Version 2 of Ticket #802, comment 17


Ignore:
Timestamp:
Sep 4, 2015, 12:35:12 PM (9 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #802, comment 17

    v1 v2  
    77 * Currently the DNA/RNA extraction wizard for DNA/RNA registration/quantification, that normally follows the Allprep isolation wizard, allows reagent lot numbers to be loaded from a file, from latest registered DNA, or entered manually, after which the lot number set may be downloaded to a file. The lab tracking protocol/report copy wizard also allows the reagent lot numbers for a registered start list to be downloaded to a file. The required functionality is therefore already present in the Extraction servlet, but in two different commands, "`GetLastProcessedDna`" and "`DownloadReagentLotNoFile`".
    88 * In the DNA/RNA registration/quantification wizard, lot numbers loaded from latest registered DNA is stored as values in web form input fields, and values in these fields are used when downloading lot numbers to a file. Since no lot numbers except the one for the AllPrep DNA/RNA FFPE kit are currently presented in the Allprep isolation wizard, it was decided to create special Javascript functions for the new button, where values loaded from latest registered DNA are directly used when downloading the lot numbers to a file. However, the new functions will be based on corresponding functions for the DNA/RNA registration/quantification wizard.
     9
     10Design specification:
     11
     12 1. JSP file `extraction_preparation.jsp` in `resources/sampleproc/` updated in step 2 with a new sub-table "`Output options`", containing a button to download a file with current lot numbers for latest registered DNA.
     13 2. Javascript file `extraction_preparation.js` in `resources/sampleproc/` updated:[[BR]]a. Function `initPage()` updated for step 2 by adding a click handler for the new download button, coupling it to new function `downloadReagentLotNoFileForLatestRegisteredDna()`.[[BR]]b. New function `downloadReagentLotNoFileForLatestRegisteredDna()` added. It calls `ExtractionServlet` with command "`GetLastProcessedDna`" and callback function `lastProcessedDnaLoadedForReagentFileDownload(response)`.[[BR]]c. New function `lastProcessedDnaLoadedForReagentFileDownload(response)` added. It obtains the lot numbers for last registered DNA and adds them to a JSON object formatted for being used for storing the values in a reagent lot number file. Start list name and isolation date are obtained from the web form, after which `ExtractionServlet` is called with command "`DownloadReagentLotNoFile`" in a new window. The default filename proposed consists of prefix "`extraction-reagents-`" + start list name + "`-`" + isolation date in YYYYMMDD format + suffix "`_latest_used_dna`", and have file extension "`.csv`".