func dsocialWorkHistoryToGooglePlus(c *WorkHistory, g *googleplus.Organization, orgHasPrimary bool) bool { g.Name = c.Company if c.IsCurrent && !orgHasPrimary { g.Primary = true orgHasPrimary = true } else { g.Primary = false } return orgHasPrimary }
func dsocialEducationToGooglePlus(c *Education, g *googleplus.Organization, orgHasPrimary bool) bool { g.Title = c.Label g.Name = c.Institution g.StartDate = dsocialDateToGoogleString(c.AttendedFrom) g.EndDate = dsocialDateToGoogleString(c.AttendedTill) if c.IsCurrent && !orgHasPrimary { g.Primary = true orgHasPrimary = true } else { g.Primary = false } return orgHasPrimary }