Deriving metallicities from calcium triplet spectroscopy in combination with near-infrared photometry*,**,*** uri icon