Changeset 3481
- Timestamp:
- Sep 9, 2015, 8:19:27 AM (8 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/batch/linked-specimen.js
r3394 r3481 32 32 ls.linkedSpecimenDone = function(response) 33 33 { 34 Doc.element('num-updated').innerHTML = response.numUpdated;35 Doc.element('num-no-date').innerHTML = response.numNoDate;36 37 34 for (var c = 0; c < response.counters.length; c++) 38 35 { … … 42 39 Doc.element(name + '-after').innerHTML = counter.after; 43 40 } 41 42 Wizard.showFinalMessage(['Number of updated annotations: ' + response.numUpdated]); 44 43 45 44 Doc.show('update-results'); -
extensions/net.sf.basedb.reggie/trunk/resources/batch/linked-specimen.jsp
r3394 r3481 68 68 creation date of the specimen. 69 69 <ol> 70 <li>If the patient has any specimen without date: <b> No value</b>70 <li>If the patient has any specimen without date: <b>MissingDate</b> 71 71 <li>If the same case has a prior core biopsy: <b>IpsilateralCoreBiopsy</b> 72 72 <li>If the other case (opposite laterality) has a prior core biopsy: <b>ContralateralCoreBiopsy</b> … … 79 79 </div> 80 80 81 <table id="update-results" style="display: none;"> 82 <tr> 83 <th class="bg-filled-100 rightborder">Number of updated annotations</th> 84 <td colspan="2" id="num-updated">?</td> 85 </tr> 86 <tr> 87 <th class="bg-filled-100 rightborder">Number without date</th> 88 <td colspan="2" id="num-no-date">?</td> 89 </tr> 90 <tr class="bg-filled-100 topborder bottomborder"> 81 82 <div id="wizard-status"></div> 83 84 <table id="update-results" style="display: none; margin-top: 1em;"> 85 <tr class="bg-filled-100 bottomborder"> 91 86 <th style="width: 20em;">LinkedSpecimen</th> 92 87 <th style="width: 10em;">Before</th> … … 97 92 <td id="novalue-before">?</td> 98 93 <td id="novalue-after">?</td> 94 </tr> 95 <tr class="bottomborder" style="border-bottom-style: dotted;"> 96 <th class="bg-filled-100 rightborder">MissingDate</th> 97 <td id="MissingDate-before">?</td> 98 <td id="MissingDate-after">?</td> 99 99 </tr> 100 100 <tr> … … 121 121 122 122 123 <div id="wizard-status"></div>124 125 123 <table class="navigation" id="navigation"> 126 124 <tr> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java
r3469 r3481 338 338 effectivePermissionsUse, createIfMissing)); 339 339 jsonChecks.add(checkAnnotationType(dc, Annotationtype.LINKED_SPECIMEN, 1, 340 new ValueOptions("IpsilateralCoreBiopsy", "ContralateralCoreBiopsy", "IpsilateralSample", "ContralateralSample" ),340 new ValueOptions("IpsilateralCoreBiopsy", "ContralateralCoreBiopsy", "IpsilateralSample", "ContralateralSample", "MissingDate"), 341 341 effectivePermissionsUse, createIfMissing)); 342 342 jsonChecks.add(checkAnnotationType(dc, Annotationtype.NOF_PIECES, 1, null, effectivePermissionsUse, createIfMissing)); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/LinkedSpecimenServlet.java
r3394 r3481 112 112 Map<String, Counter> counters = new HashMap<String, Counter>(); 113 113 counters.put(null, new Counter(null)); 114 counters.put("MissingDate", new Counter("MissingDate")); 114 115 counters.put("IpsilateralCoreBiopsy", new Counter("IpsilateralCoreBiopsy")); 115 116 counters.put("ContralateralCoreBiopsy", new Counter("ContralateralCoreBiopsy")); … … 144 145 145 146 String currentLinkedSpecimenValue = (String)Annotationtype.LINKED_SPECIMEN.getAnnotationValue(dc, snapshot, specimen); 146 String newLinkedSpecimenValue = null;147 String newLinkedSpecimenValue = "MissingDate"; 147 148 148 149 // Update counter and the annotation if needed … … 200 201 { 201 202 // Clear annotations 203 newLinkedSpecimenValue = "MissingDate"; 202 204 numNoDate++; 203 205 }
Note: See TracChangeset
for help on using the changeset viewer.