<P> Konark, also referred to in Indian texts by the name Kainapara, was a significant trading port by the early centuries of the common era . The current Konark temple dates to the 13th century, though evidence suggests that a sun temple was built in the Konark area by at least the 9th century . Several Puranas mention Surya worship centers in Mundira, which may have been the earlier name for Konark, Kalapriya (Mathura), and Multan (now in Pakistan). The Chinese Buddhist pilgrim and traveler Hiuen - tsang (also referred to as Xuanzang) mentions a port city in Odisha named Charitra . He describes the city as prosperous, with five convents and "storeyed towers that are very high and carved with saintly figures exquisitely done". Since he visited India in the 7th century, he could not have been referring to the 13th - century temple, but his description suggests either Konark or another Odisha port city already featuring towering structures with sculptures . </P> <P> According to the Madala Panji, there was at one time another temple in the region built by Pundara Kesari . He may have been Puranjaya, the 7th - century ruler of the Somavasmi Dynasty . </P> <P> The current temple is attributed to Narasimhadeva I of the Eastern Ganga Dynasty, r . 1238--1264 CE--. It is one of the few Hindu temples whose planning and construction records written in Sanskrit in the Odiya script have been preserved in the form of palm leaf manuscripts that were discovered in a village in the 1960s and subsequently translated . The temple was sponsored by the king, and its construction was overseen by Siva Samantaraya Mahapatra . It was built near an old Surya temple . The sculpture in the older temple's sanctum was re-consecrated and incorporated into the newer larger temple . This chronology of temple site's evolution is supported by many copper plate inscriptions of the era in which the Konark temple is referred to as the "great cottage". </P> <P> According to James Harle, the temple as built in the 13th century consisted of two main structures, the dance mandapa and the great temple (deul). The smaller mandapa is the structure that survives; the great deul collapsed sometime in the late 16th century or after . According to Harle, the original temple "must originally have stood to a height of some 225 feet (69 m)", but only parts of its walls and decorative mouldings remain . </P>

Who built the sun temple at konark in odisha in 13 century a.d
find me the text answering this question