when minting doi check MT code before return xml