[% META title="FluidX XTR-96 Plate Reader Import" %] [% # INCLUDE dumper.tt dump = data %] [% # INCLUDE dumper.tt dump = data.storage %]

FluidX XTR-96 plate reader data import

[% BLOCK form_header %]action="[% app_url %]/storage/read_xtr_96" name="scan" id="scan" onsubmit="return submitForm(this.scan);" method="post"[% END %] [% IF data.size; # INCLUDE dumper.tt dump = xtr_96; import(data); # provides 'plate_data', 'storage' & 'plateId' keys missing_id = 'RACK ID MISSING'; USE format; concat = format('%s%02d'); %] [% IF storage.have_missing; # INCLUDE dumper.tt dump = storage.have_missing %]

Warning: unknown vial(s) present - either uncatalogued or already removed. Requires resolution before import/export.

[% END %] [% FOREACH row IN ['A' .. 'H'] %] [% FOREACH col IN [1 .. 12]; # INCLUDE dumper.tt dump = [row, col]; cell = concat(row,col); # ie format('%s%02d') # highlight if vialId NOT already in catalog: IF storage.rack_data.item(plate_data.${cell}); class = 'xtr-96-vial'; ELSIF plate_data.${cell}.match('No Tube'); class = 'bold'; ELSE; class = 'red'; END; # probably 'No Read' %] [% END %] [% END %]
Plate ID :: [% plateId || missing_id %]
[% cell %]
[% plate_data.${cell} %]
[% IF plateId AND NOT storage.have_missing; # will need to fix & re-scan %] [% storage_rack_dfv_js %]
[% IF storage_locations %] Select storage location: [% FOR sl IN storage_locations %]
[% sl %]
[% END %]
No storage
[%# site.html.reset # not required - mandatory field %] [% ELSE %] Storage location: [% END %]

[% rack_in_use = storage.storage_rack.is_active %] Rack [% rack_in_use ? 'exists' : 'does not exist' %] in storage: [% hash = { name => rack_in_use ? 'export' : 'import', value => rack_in_use ? 'EXPORT ALL' : 'IMPORT', }; %] [% IF rack_in_use %] [% END %] [% IF storage.have_empty %] empty co-ordinates detected, ensure this is correct before continuing!! [% END %]

[% END %] [% ELSIF can_scan %]

Ensure rack is mounted on plate reader .....

[% ELSE %]

Cannot activate plate reader at [% xtr_96_addr %] from remote location [% remote_addr %]

[% END %]