The Turkish parliament has overwhelmingly approved a constitutional amendment to allow the direct election of the president instead of election by parliament .