This page explains that a noun with と, で, から, まで that modifies another noun must have の attached to them as in:
日本での研究はいかがでしたか。
But it lists this example
大学院で医学の研究をするつもりです。
Both with で. What is the difference between them? Are there other rules about の and と, で, から, まで, etc.?