Joanne Sharkey has pleaded guilty to manslaughter by diminished responsibility over the death of the newborn more than 25 years ago.