Changes between Version 7 and Version 8 of Ticket #526, comment 5


Ignore:
Timestamp:
Oct 20, 2014, 10:03:09 AM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #526, comment 5

    v7 v8  
    1313 * JSP file `retraction_protocol2.jsp` in `resources/personal/` is coupled to Javascript file `retraction_protocol.js`. Values for input case name/personal number and the number of items to be destroyed are retrieved from the HTTP response, and `retraction_protocol2.jsp` creates a template for a table of items to be destroyed, one row per item, and `retraction_protocol.js` calls servlet `RetractionFormServlet` with command "`GetProtocolInfo`" (currently identical to command "`GetCaseInfo`") to obtain a JSONObject with information on all cases for the patient in question, which is sent to function `rp.initializeProtocol(response)` to be inserted into the protocol template. The reason for the suffix "`2`" in the name of JSP file `retraction_protocol2.jsp`, is that most protocol wizards have an initial JSP file `retraction_protocol.jsp`, with input fields for information required to retrieve the protocol data, but this role is here taken by `retractionform.jsp`.
    1414 * Java servlet class/file `RetractionFormServlet.java` in `src/net/sf/basedb/reggie/servlet/` accepts `GET` requests for commands "`GetCaseInfo`", "`GetProtocolInfo`" (currently identical to "`GetCaseInfo`"), and "`ExportRetractData`", as well as `POST` request for command "`RegisterRetraction`". It accesses the database to retrieve the requested information, or update the contents, and sends the results back in JSON format.
     15 * Java class/file `Consent.java` in `src/net/sf/basedb/reggie/dao/` updated by adding new static final `String` constant `FLAG_RETRACTED` with value "`Retracted`".
     16 * Java class/file `Subtype.java` in `src/net/sf/basedb/reggie/dao/` updated by adding new static final `Subtype` items `RETRACT` and `RETRO_NO` for `BioSource` items, with values "`Retract`" and "`RetroNo`", respectively.
     17 * Java class/file `Annotationtype.java` in `src/net/sf/basedb/reggie/dao/` updated in `public static final Annotationtype AUTO_PROCESSING` by including `Item.SAMPLE` in list of item types for annotation "AutoProcessing", allowing the annotaiton to be used for histology items.
     18 * Java class/file `InstallServlet.java` in `src/net/sf/basedb/reggie/servlet/` updated in `protected` method `void doGet(HttpServletRequest req, HttpServletResponse resp)` to create item `Subtype.RETRO_NO`, if not existing, and to allow the `Flag` annotation to have value `Consent.FLAG_RETRACTED`.
    1519 * CSS (Cascading Style Sheet) files `retractionform.css` in `resources/css` and `retractionexport.css` in `resources/personal` contain style information for the forms.