This is what you call sexual harrassment. The girl did not want to be approached with the teacher’s pervert porn in class and the authority figure in the classroom would not stop when told to back off by girl’s parents.
If you did this to an employee at the office, you would be sued for sexual harassment.
You make an excellent point! Just having the book in the workplace would likely be interpreted as creating a hostile work environment.