The former Hearts player and coach was taken to Edinburgh Royal Infirmary and has had two rounds of heart surgery