A portable data-collection system for soft x-ray absorption spectroscopy in the Shanghai Synchrotron Radiation Facility.