great find...but you are correct...never put fabric on bare wood...the oils will leach into the fabric and cause it to either discolor or rot....
clean it up and paint really good...then just use plain acid free tissue on the shelves before placing fabric on them!
ENJOY you lucky girl!