The lowest value for the weight of structural wood, in the NDS, is given as 25 pcf. Say the stacks are 1' deep and back to back. With a 2' space to walk between. To be able to reach the books when standing a 8' height of the stacks would be typical? So 8'(1'+1')25pcf/4'oc = 100 psf for the stacks of books. Now are your stacks higher and/or spaced closer and how much do your books weight? Now I would consider the stacks to run parallel to the joists. If so, be sure to design strongbacks to transfer the load to the adjacent joists if needed. As to whether the books are a live load or dead load, for the deflection calculations.
Interesting that the ASCE7-05 live loads do not address the library rooms and the 2009 IBC gives a 90" (7.5') high and 3' walking space between (for a 5' oc spacing) as a requirement of their 150 psf live load.
Garth Dreger PE - AZ Phoenix area
As EOR's we should take the responsibility to design our structures to support the components we allow in our design per that industry standards.