Ok writing some scripts, drawing big images, and running to my local library counting shelves there hopefully solved this question. Given the Shelf number $s$ you get the aisle by:
$$ a = 2\left\lfloor \frac{s-1}{4} \right\rfloor + ({(s-1)}\mod 2) +1 $$