If you want to make a bard just to loresing, and literally nothing else, do you put all the points in bard spell ranks and magic item use?

I've heard of these two, does anything else besides the level make a difference?