Changeset 1919


Ignore:
Timestamp:
Apr 10, 2013, 11:05:19 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #425: Generate a lab protocol for RNA -> cDNA processing

  • Changed order of columns in the list protocol.
  • Use white background in the plate layout.
  • Amount of water is right-aligned in each cell.
  • Samples with no storage box (eg. stratagene) now have an empty line so that volumes are aligned vertically.
  • Latest stratagene concentration is stored and re-used the next time.
Location:
extensions/net.sf.basedb.reggie/trunk/resources/libprep
Files:
2 edited

Legend:

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

    r1892 r1919  
    4949    Main.show('gocreate');
    5050    bioPlateOnChange();
     51    loadStratageneConc();
    5152  }
    5253  else
     
    8687function viewProtocol(type)
    8788{
     89  saveStratageneConc();
     90 
    8891  var frm = document.forms['reggie'];
    8992  if (frm.bioplate && !frm.bioplate.disabled)
     
    109112  setInnerHTML('comments', bioplate.comments);
    110113  frm.poolSchema.value = bioplate.poolSchema;
     114}
     115
     116function saveStratageneConc()
     117{
     118  if (!window.localStorage) return;
     119 
     120  var frm = document.forms['reggie'];
     121  var stratageneInfo = new Object();
     122  stratageneInfo.conc = frm.stratageneConc.value;
     123  window.localStorage.setItem('reggie.stratagene-info', JSON.stringify(stratageneInfo));
     124}
     125
     126function loadStratageneConc()
     127{
     128  if (!window.localStorage) return;
     129  var frm = document.forms['reggie'];
     130 
     131  var stratageneInfo = JSON.parse(window.localStorage.getItem('reggie.stratagene-info'));
     132  if (stratageneInfo)
     133  {
     134    frm.stratageneConc.value = stratageneInfo.conc;
     135  }
    111136}
    112137</script>
     
    133158  %>
    134159
    135   <form name="reggie" onsubmit="return false;" action="mrna_protocol2.jsp" method="post" target="_new">
     160  <form name="reggie" onsubmit="return false;" action="mrna_protocol2.jsp" method="post" target="_blank">
    136161  <input type="hidden" name="ID" value="<%=ID%>">
    137162  <input type="hidden" name="view" value="list">
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/mrna_protocol2.jsp

    r1916 r1919  
    121121      c += ' ' + WELL_ALPHA[well.row] + (well.column+1);
    122122    }
     123    else
     124    {
     125      c = '&nbsp;';
     126    }
    123127    return c;
    124128  }
     
    244248        if (rna.qc) cls += ' qc';
    245249        if (rna.external) cls += ' external';
    246         if (rna.stratagene)cls += ' stratagene';
     250        if (rna.stratagene) cls += ' stratagene';
    247251      }
    248252      return cls;
     
    264268        if (rna.volume && rna.water)
    265269        {
    266           text += '<div><span class="volume">'+Numbers.formatNumber(rna.volume, 1)+'</span>';
    267           text += ' + <span class="water">'+Numbers.formatNumber(rna.water, 1)+'</span>µl</div>';
     270          text += '<div><span class="volume">'+Numbers.formatNumber(rna.volume, 1)+'µl</span>';
     271          text += '<span class="water">'+Numbers.formatNumber(rna.water, 1)+'µl</span></div>';
    268272        }
    269273        text += '<div class="remarks">'+ rna.remarks.join('; ') + '</div>';
     
    353357  }
    354358 
    355   .external .rna:before, .stratagene .rna:before
     359  .external .rna:before
    356360  {
    357361    content: '[';
    358362  }
    359   .external .rna:after, .stratagene .rna:after
     363  .external .rna:after
    360364  {
    361365    content: ']';
     
    410414    max-width: 8.2%;
    411415    min-width: 8.2%;
     416    background-color: #FFFFFF;
     417    padding: 4px;
     418  }
     419 
     420  #plateview .well:hover
     421  {
     422    padding: 3px;
    412423  }
    413424   
     
    420431  {
    421432    font-weight: bold;
     433    margin-bottom: 0.25em;
     434  }
     435  #plateview .box
     436  {
     437    margin-bottom: 0.25em;
    422438  }
    423439  #plateview .ndconc
     
    436452  {
    437453    color: #0000C8;
     454    float: right;
    438455  }
    439456  #plateview .remarks
     
    504521        <th class="rna"></th>
    505522        <th class="box">Storage</th>
    506         <th class="workplate">Work</th>
    507523        <th>NDConc</th>
    508524        <th>Remain</th>
     525        <th class="workplate">Work</th>
    509526        <th colspan="2">Volume</th>
    510527        <th></th>
     
    514531        <th class="rna">RNA</th>
    515532        <th class="box">box</th>
    516         <th class="workplate">plate</th>
    517533        <th>(ng/µl)</th>
    518534        <th>(µg)</th>
     535        <th class="workplate">plate</th>
    519536        <th>(µl)</th>
    520537        <th>H<sub>2</sub>O</th>
     
    546563          <td class="rna" id="rna.<%=idSuffix%>">empty</td>
    547564          <td class="box" id="box.<%=idSuffix%>"></td>
    548           <td class="workplate"><%=rowF.format(r)+colF.format(c)%></td>
    549565          <td class="ndconc" id="ndconc.<%=idSuffix%>"></td>
    550566          <td class="remain" id="remain.<%=idSuffix%>"></td>
     567          <td class="workplate"><%=rowF.format(r)+colF.format(c)%></td>
    551568          <td class="volume" id="volume.<%=idSuffix%>"></td>
    552569          <td class="water" id="water.<%=idSuffix%>"></td>
Note: See TracChangeset for help on using the changeset viewer.