Fourier transform summation of Legendre series and D-functions