How are settlements a violation of the Fourth Geneva Convention?

Why didn't the UN state that East Jerusalem is occupied territory when Jordan occupied East Jerusalem?

According to UN Resolution 181 (partition), after 10 years, there was to be a referendum in Jerusalem.  Because the majority were Jews, Jerusalem would have become part of Israel.
Therefore, it makes no sense to consider any part of Jerusalem as occupied territory.