##\ket{\psi(x)}## doesn't make sense. ##\ket{\psi}## is an (abstract) vector in Hilbert space, so it doesn't make sense to write it as having a position dependence. To convert to a wave function, you have
$$
\psi(x) = \braket{x | \psi}
$$
If you have, for example, a particle on a ring, "all...
##|ψ'\rangle=|h2\rangle\langle h2|ψ\rangle## is nothing but ##|ψ'\rangle= c |h2\rangle## with ##c## some complex number. Physical states are defined up to an arbitrary complex scalar constant, so it is the same state.
My guess is that you have to work in both ##\theta## and ##\phi##, and integrate with the proper integration element, ##\sin \theta \, d\theta \, d \phi##.