Changes between Version 2 and Version 3 of Ticket #526, comment 5


Ignore:
Timestamp:
Oct 20, 2014, 8:42:10 AM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #526, comment 5

    v2 v3  
    1010
    1111 * JSP file `index.jsp` in `resources/` is updated with a new header "`Retraction wizard`" in section "`Personal information wizards`". Initially, it will only have one entry, "`Mark extracts for retraction`", with a link to new JSP file `retractionform.jsp` in `resources/personal/`.
    12  * JSP file `retractionform.jsp` in `resources/personal/` is coupled to Javascript file `retractionform.js`, and in its "`form`"-tag has an action attribute set to value "`retraction_protocol2.jsp`" (all later files also in `resources/personal/`). The JSP file has an input field for entering a case name of personal number.
     12 * JSP file `retractionform.jsp` in `resources/personal/` is coupled to Javascript file `retractionform.js`, and in its "`form`"-tag has an action attribute set to value "`retraction_protocol2.jsp`" (all later files also in `resources/personal/`). The JSP file has an input field for entering a case name or personal number. After initial validation of the case name/personal number, servlet `RetractionFormServlet` is called with command "`GetCaseInfo`" to obtain a JSONObject with information on all cases for the patient in question, which is sent to function `rf.caseInfoLoaded(response)` to be displayed in table form. The form contains checkboxes for setting values for the `Flag` and `AutoProcessing` annotations for the histology and RNA items, as well as a checkbox for selecting whether an unchecked checkbox should trigger the corresponding annotation to be reset to `null` (default is to ignore unchecked checkboxes).[[BR]]a. Button "Register" is coupled to function `rf.submit()`, that calls function `rf.submit()` to retrieve string-coded checkbox values and send them together with the input case name/personal number to servlet `RetractionFormServlet` with command "`RegisterRetraction`".[[BR]]b. Buttons "Preview" and "Download" are both indirectly coupled to function `rf.doExport(preview)`, but with `preview` set to `true` and `false`, respectively. The latter function creates a table with tab-separated column data of the case/patient information, more suitable for import into spreadsheet programs, although containing several sub-tables with separate headers. If attribute `preview` is `false`, a dialog will be opened to download the table to a file.[[BR]]c. Button "`Create protocol`" is coupled to function `rf.createProtocol()`, that will save input case name/personal number and the number of items to be destroyed in hidden input fields in the HTML form, after which `frm.submit()` is called, which will transfer the action to JSP file `"retraction_protocol2.jsp`, and it related Javascript file `retraction_protocol.js`.