Changes between Initial Version and Version 1 of Ticket #759, comment 52


Ignore:
Timestamp:
Apr 10, 2015, 11:46:38 AM (9 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #759, comment 52

    initial v1  
    77 1. JSP file `case_summary.jsp` in `resources/reports/` updated by including a new row of cells with optional start plate data for the RNA and DNA related to a case.
    88 2. Javascript file `case_summary.js` in `resources/reports/` updated in function `cs.caseInfoLoaded()` to add a column with links to optional start DNA plates for the RNA and DNA. The start plate info is retrieved from the RNA and DNA JSON objects using key "`startPlate`".
    9  3. Java servlet class/file `CaseSummaryServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `doGet(HttpServletRequest req, HttpServletResponse resp)` updated for command "`GetCaseInfo`" to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of RNA and DNA items, and if the result is not `null`, add the plate info as JSONObject with key "`startPlate`" to the JSONObject for the RNA or DNA.[[BR]]b. Private method `BioPlate fetchStartPlate(DbControl dc, SpecimenTube st)` updated to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of the `SpecimenTube` sample item.[[BR]]c. New private method `BioPlate fetchStartPlate(DbControl dc, String name)` added. It finds the first start DNA reaction plate with the input item name contained in annotation list `Annotationtype.SOURCE_ITEM_NAMES_LIST_STRING`. If none is found, `null` will be returned.[[BR]]d. New private method `boolean itemIsInputItem(String itemName)` added. It checks if an item is an input item by checking if its name only contains a single dot. Case names without dots are not considered as input items here.
     9 3. Java servlet class/file `CaseSummaryServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `doGet(HttpServletRequest req, HttpServletResponse resp)` updated for command "`GetCaseInfo`" to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of input RNA and DNA items, and if the result is not `null`, add the plate info as JSONObject with key "`startPlate`" to the JSONObject for the RNA or DNA.[[BR]]b. Private method `BioPlate fetchStartPlate(DbControl dc, SpecimenTube st)` updated to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of the `SpecimenTube` sample item.[[BR]]c. New private method `BioPlate fetchStartPlate(DbControl dc, String name)` added. It finds the first start DNA reaction plate with the input item name contained in annotation list `Annotationtype.SOURCE_ITEM_NAMES_LIST_STRING`. If none is found, `null` will be returned.[[BR]]d. New private method `boolean itemIsInputItem(String itemName)` added. It checks if an item is an input item by checking if its name only contains a single dot. Case names without dots are not considered as input items here.