Joan Riera i Rius, Vigatà il·lustre