You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* LIMS-1569: Get image viewer rings from dials if possible (#875)
* LIMS-1002: Fix error when creating new laboratory (#815)
* LIMS-1302 - add visit to container even if UAS fails (#762)
* LIMS-1487: Fix alphafold triggering (#866)
* LIMS-1563 - Remove touchscreen app (#867)
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
Co-authored-by: Guilherme Francisco <guilherme.de-freitas@diamond.ac.uk>
# Beamline sample registration: Get Beamline from IP
766
-
functionip2bl()
767
-
{
768
-
global$ip2bl;
769
-
$parts = explode('.', $_SERVER['REMOTE_ADDR']);
770
-
771
-
if ($parts && sizeof($parts) > 1 && array_key_exists($parts[2], $ip2bl))
772
-
{
773
-
return$ip2bl[$parts[2]];
774
-
}
775
-
}
776
-
777
-
778
-
# Return visit list for blsr;
779
-
functionblsr_visits()
780
-
{
781
-
$b = $this->ip2bl();
782
-
783
-
if (!$b)
784
-
returnarray();
785
-
786
-
$visits = $this->db->pq("SELECT CONCAT(p.proposalcode, p.proposalnumber, '-', s.visit_number) as visit, TO_CHAR(s.startdate, 'DD-MM-YYYY HH24:MI') as st, TO_CHAR(s.enddate, 'DD-MM-YYYY HH24:MI') as en,s.beamlinename as bl FROM blsession s INNER JOIN proposal p ON (p.proposalid = s.proposalid) WHERE TIMESTAMPDIFF('DAY', s.startdate, CURRENT_TIMESTAMP) < 1 AND TIMESTAMPDIFF('DAY', CURRENT_TIMESTAMP, s.enddate) < 2 AND s.beamlinename LIKE :1 ORDER BY s.startdate", array($b));
787
-
$v = $this->db->paginate("SELECT CONCAT(p.proposalcode, p.proposalnumber, '-', s.visit_number) as visit, TO_CHAR(s.startdate, 'DD-MM-YYYY HH24:MI') as st, TO_CHAR(s.enddate, 'DD-MM-YYYY HH24:MI') as en,s.beamlinename as bl FROM blsession s INNER JOIN proposal p ON (p.proposalid = s.proposalid) WHERE p.proposalcode LIKE 'cm' AND s.beamlinename LIKE :1 AND s.enddate <= CURRENT_TIMESTAMP ORDER BY s.startdate DESC", array($b, 0, 1));
788
-
$visits = array_merge($visits, $v);
789
-
return$visits;
790
-
}
791
-
792
-
# Beamline Sample Registration Machine
793
-
functionblsr()
794
-
{
795
-
global$blsr;
796
-
797
-
returnin_array($_SERVER['REMOTE_ADDR'], $blsr);
798
-
}
799
-
800
743
# Barcode Scanner Machines
801
744
functionbcr()
802
745
{
@@ -1093,9 +1036,9 @@ function get_visit_processed_dir($dc, $location)
0 commit comments