You only need to use the Dragon Lore book to open the false wall. The book you need for the librarian is elsewhere...
in a locked chest downstairs from the bedrooms, with the key in Amdusias' hidden room.