def genetekaMarriageUrl(record):
  """Generate URL to geneteka for a marriage record."""
  return (
    'http://www.geneteka.genealodzy.pl/index.php?'
    'op=gt&lang=pol&bdm=S&w={}&rid={}&'
    'search_lastname={}&search_name={}&'
    'search_lastname2={}&search_name2={}&'
    'from_date={}&to_date={}&'
    'exac=1&pair=1&parents=1'.format(
        record['voivodeship'],
        record['parish_id'],
        record['husband_last_name'],
        record['husband_first_name'],
        record['wife_last_name'],
        record['wife_first_name'],
        record['year'],
        record['year']))