Thermodynamics of localized and non-localized adsorption on patchwise heterogeneous surfaces