Bookcase with hinges