Ignore:
Timestamp:
Oct 7, 2013, 3:38:52 PM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #481: Register prepared flow cells

The wizard now creates a SequencingRunNNNN (derived bioassay) item and link the flow cells to it. The SequencingStartDate and SequencingOperator are added as annotation to the derived bioassay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/flowcell_registration.jsp

    r2031 r2049  
    226226  if (date == '')
    227227  {
    228     setInputStatus(dateField, 'Missing date', 'warning');
     228    var required = frm[dateField].className.indexOf('required') != -1;
     229    setInputStatus(dateField, 'Missing date', required ? 'invalid' : 'warning');
     230    if (required) dateIsValid[dateField] = false;
    229231    return;
    230232  }
     
    320322 
    321323  if (dateIsValid['clusterDate'] == false) return false;
    322   if (dateIsValid['sequenceStartDate'] == false) return false;
     324  if (dateIsValid['sequencingStartDate'] != true)
     325  {
     326    dateOnChange('sequencingStartDate');
     327    return false;
     328  }
    323329 
    324330  var frm = document.forms['reggie'];
     
    348354  frm.clusterDate.disabled = true;
    349355  frm.clusterOperator.disabled = true;
    350   frm.sequenceStartDate.disabled = true;
    351   frm.sequenceOperator.disabled = true;
     356  frm.sequencingStartDate.disabled = true;
     357  frm.sequencingOperator.disabled = true;
    352358  frm.clusterProtocol.disabled = true;
    353359  frm.comments.disabled = true;
     
    370376  submitInfo.clusterDate = frm.clusterDate.value;
    371377  submitInfo.clusterOperator = frm.clusterOperator.value;
    372   submitInfo.sequenceStartDate = frm.sequenceStartDate.value;
    373   submitInfo.sequenceOperator = frm.sequenceOperator.value;
     378  submitInfo.sequencingStartDate = frm.sequencingStartDate.value;
     379  submitInfo.sequencingOperator = frm.sequencingOperator.value;
    374380  submitInfo.comments = frm.comments.value;
    375381 
     
    524530        <td>
    525531          <input type="text" name="clusterOperator" value="<%=HTML.encodeTags(user.getName()) %>"
    526             style="width: 95%;" maxlength="255" onkeypress="focusOnEnter(event, 'sequenceStartDate')">
     532            style="width: 95%;" maxlength="255" onkeypress="focusOnEnter(event, 'sequencingStartDate')">
    527533        </td>
    528534        <td class="status" id="clusterDate.status"></td>
    529535      </tr>
    530536      <tr>
    531         <td class="subprompt">Sequence start</td>
     537        <td class="subprompt">Sequencing start</td>
    532538        <td>
    533           <input type="text" name="sequenceStartDate" maxlength="10" style="width: 8em;"
    534             onblur="dateOnChange('sequenceStartDate')" onkeypress="focusOnEnter(event, 'sequenceOperator')">
     539          <input type="text" class="required" name="sequencingStartDate" maxlength="10" style="width: 8em;"
     540            onblur="dateOnChange('sequencingStartDate')" onkeypress="focusOnEnter(event, 'sequencingOperator')">
    535541            <base:icon
    536               onclick="Dates.selectDate('Sequence start date', 'reggie', 'sequenceStartDate', 'setDate', 'yyyyMMdd')"
     542              onclick="Dates.selectDate('Sequence start date', 'reggie', 'sequencingStartDate', 'setDate', 'yyyyMMdd')"
    537543              image="calendar.png"
    538544              tooltip="Select a date from a calendar"
     
    541547        </td>
    542548        <td>
    543           <input type="text" name="sequenceOperator" value="<%=HTML.encodeTags(user.getName()) %>"
     549          <input type="text" name="sequencingOperator" value="<%=HTML.encodeTags(user.getName()) %>"
    544550            style="width: 95%;" maxlength="255" onkeypress="focusOnEnter(event, 'clusterProtocol')">
    545551        </td>
    546         <td class="status" id="sequenceStartDate.status"></td>
     552        <td class="status" id="sequencingStartDate.status"></td>
    547553      </tr>
    548554      <tr valign="top">
Note: See TracChangeset for help on using the changeset viewer.