Added function to save partner from library_id