Existence of global weak solutions to the compressible Ericksen–Leslie system in dimension one