Integrable properties of a variable-coefficient Korteweg-de Vries model from Bose-Einstein condensates and fluid dynamics