On the variety of linear series on a singular curve