Yes, you're quite right that sex discrimination did include sexual harassment. About half the complaints on sexual discrimination were sexual harassment complaints. A sexual discrimination complaint would be, for example, someone who is pregnant in the workplace and is not provided with the same professional development opportunities as someone else because of pregnancy and the fact that the person will be off for maternity or parental leave.
The sexual harassment type of complaints that the discrimination and harassment counsel gets could be, for example, a lawyer asking a client to go out with him in return for pro bono services or an assistant to go out with him in return for workplace benefits. So sexual harassment can go from asking someone out repeatedly to sexual assault or groping, inappropriate sexual touching.