Complex sentence: Ibn Hajar went on to be appointed to the position of Egyptian chief-judge ("Qadi") several times and he was the Qadi of Syria for 21 years.
Split into simpler sentences: Ibn Hajar went on to be appointed to the position of Egyptian chief-judge ("Qadi") several times. Also he was the Qadi of Syria for 21 years.