1. When , in 1818 , Ortona was assigned to Lanciano , Campli was joined to the diocese of Teramo .
2. When Ortona was assigned to Lanciano in 1818 , Campli was connected to the Diocese of Teramo .

Are these two sentences paraphrases of each other?
yes