Gravar e-mail: GOYA survey: mergers up to z = 1 in B- and Ks-selected samples