What is the relationship between the liver and the duodenum?

Andy H asked: What is the relationship between the liver and the duodenum? I know that bile is deposited into the duodenum where bile salts emulsify fats so that pancreatic lipase can digest it in the pancreatic juice, but that is from the gall bladder, not the liver. Any help?