Foldable library ladder