edited publication date search to end at 31st dec not 1st jan for year search