“It’s a Wonderful Life” is loosely based on the 1943 short story “The Greatest Gift,” written by Philip Van Doren Stern.