If your girlfriend is not in a union get legal advice anyway. I'm sure any solicitor worth their salt will see this as a potential win. I notice the contract was for six months and the person she was replacing needed a 'break from teaching'. Whilst the school don't have to specify any personal details, do you know if was it was planned to be a maternity cover? Difficult if so, but I doubt if it would change the legal position.