A Rip Through Time by Kelley Armstrong
(A Rip Through Time, book 1)
A Homicide detective from Canada, who is visiting Edinburgh to be with her dying grandmother, is somehow transported in time to 1869. She has to figure out how she got there, who she even is, and hopefully, how to get home.