#
# Schema file for address book
#
# All strings in here that are displayed to the user are looked up the
# message catalog.  This file should not be localized; localize the message
# catalog instead.
#

#
# "personal" is the list of personal address books created the first time
# the address book is run.  The user can modify the list of personal address
# books using the GUI and the user's settings will override the default
# settings specified here.
#
personal {
    book "book.friends";
    book "book.family";
    book "book.coworkers";
    book "book.general";
}

#
# "directory" is the list of directory servers created the first time
# the address book is run.  Legal modifiers are 'dir_port',
# 'dir_max_results', 'dir_typing_delay' and 'dir_use_ssl'.
#
directory {
#    dir "Sample Name" "ldap.sample.com" "dc=com";
}

#
# "list" contains the attributes displayed on the right side of
# the addresss book window.
#
list {
    attr "cn" "list.nameColumnHeader" size="100" colid="2";
    attr "mail" "list.emailColumnHeader" size="100" colid="3" usebox="email";
    attr "aoluid" "list.aimColumnHeader" size="50" colid="4" usebox="aim_id";
    attr "phone1" "list.phoneColumnHeader" size="50" colid="5";
    attr "xmozillanickname" "list.nickNameColumnHeader" size="50" colid="6";
}

#
# These are combo boxes that are used by the tabs below.
#
combo "email_combo" {
    attr "Home" "email.home";
    attr "Work" "email.work";
    attr "Other" "email.other";
}

combo "im_combo" {
    attr "Home" "im.home";
    attr "Work" "im.work";
    attr "Other" "im.other";
}

combo "phone_combo" {
    attr "Home" "phone.home";
    attr "Work" "phone.work";
    attr "Fax" "phone.fax";
    attr "Cellular" "phone.cellular";
    attr "Pager" "phone.pager";
}

#
# "edit" describes the tabs displayed in the Card Properties dialog.
#
edit {
    tab "Contact" {
        attr "xmozillanickname" "Nickname" align="left";
        box "PrimaryContactInformation" {
            attr "mail" "email_combo" ui_type="combo"
                                      combo_attr="mail_type"
                                      combo_default="Home";
            attr "aoluid" "im_combo" ui_type="combo"
                                     combo_attr="aoluid_type"
                                     combo_default="Home";
            attr "phone1" "phone_combo" ui_type="combo" 
                                        combo_attr="phone1_type"
                                        combo_default="Home";
        }
        box "OtherContactInformation" {
            attr "mailalternateaddress" "email_combo" ui_type="combo" 
                                        combo_attr="mailalternateaddress_type"
                                        combo_default="Work";
            attr "email3" "email_combo" ui_type="combo" 
                                        combo_attr="email3_type"
                                        combo_default="Other";
            attr "phone2" "phone_combo" ui_type="combo" 
                                        combo_attr="phone2_type"
                                        combo_default="Work";
            attr "phone3" "phone_combo" ui_type="combo" 
                                        combo_attr="phone3_type"
                                        combo_default="Fax";
            attr "phone4" "phone_combo" ui_type="combo" 
                                        combo_attr="phone4_type"
                                        combo_default="Cellular";
            attr "phone5" "phone_combo" ui_type="combo" 
                                        combo_attr="phone5_type"
                                        combo_default="Pager";
        }
    }
    tab "Home" {
        box "HomeAddress" {
            attr "xmozillahomeaddress" "Street" lines="4";
            attr "xmozillahomelocality" "City";
            attr "xmozillahomest" "StateProvince";
            attr "xmozillahomepostalcode" "ZipCode";
            attr "xmozillahomecountry" "Country";
        }
    }
    tab "Work" {
        attr "title" "Title";
        attr "o" "Company";
        attr "ou" "Department";
        box "WorkAddress" {
            attr "streetaddress" "Street" lines="4";
            attr "locality" "City";
            attr "st" "StateProvince";
            attr "postalcode" "ZipCode";
            attr "countryname" "Country";
        }
    }
    tab "Other" {
        attr "homeurl" "WebPage";
        attr "birthday" "Birthday" ui_type="date";
        attr "anniversary" "Anniversary" ui_type="date";
        attr "spouse_name" "Spouse";
        attr "family_name" "FamilyMembers";
        attr "description" "Notes" lines="4";
        box "CustomFields" {
            attr "xmozillacustom1" "Custom1";
            attr "xmozillacustom2" "Custom2";
            attr "xmozillacustom3" "Custom3";
            attr "xmozillacustom4" "Custom4";
        }
        # These are 'hidden' attributes that we care about for import,
        # but they're mapped to other values.
        attr "mail"                     "";
        attr "mailalternateaddress"     "";
        attr "nscpaimscreenname"        "";
        attr "telephonenumber"          "";
        attr "homephone"                "";
        attr "facsimiletelephonenumber" "";
        attr "mobile"                   "";
        attr "cellphone"                "";
        attr "pager"                    "";
        attr "pagerphone"               "";
        attr "postaladdress"            "";
        attr "nscpbusinessunit"         "";
        attr "homepostaladdress"        "";
    }
}

uab {
    attr "record_id" "xmozillaUABid";
    attr "locale" "xmozillaUABlocale";
    attr "lname" "sn";
    attr "listname" "listname";
    attr "fname" "givenname";
    attr "job_title" "title";
    attr "company" "o";
    attr "screen_name" "aoluid" ;
    attr "email1" "mail";
    attr "email2" "mailalternateaddress";
    attr "default_email" "default_email";
    attr "phone1" "phone1";
    attr "phone1_type" "phone1_type";
    attr "phone2" "phone2";
    attr "phone2_type" "phone2_type";
    attr "phone3" "phone3";
    attr "phone3_type" "phone3_type";
    attr "phone4" "phone4";
    attr "phone4_type" "phone4_type";
    attr "phone5" "phone5";
    attr "phone5_type" "phone5_type";
    attr "home_add1" "home_add1";
    attr "home_add2" "home_add2";
    attr "home_add3" "home_add3";
    attr "home_city" "xmozillahomelocality";
    attr "home_state" "xmozillahomest";
    attr "home_zip" "xmozillahomepostalcode";
    attr "home_country" "xmozillahomecountry";
    attr "work_add1" "work_add1";
    attr "work_add2" "work_add2";
    attr "work_add3" "work_add3";
    attr "work_city" "locality";
    attr "work_state" "st";
    attr "work_zip" "postalcode";
    attr "work_country" "countryname";
    attr "default_address" "";
    attr "web_page" "homeurl";
    attr "birthday" "birthday";
    attr "anniversary" "anniversary";
    attr "spouse_name" "spouse_name";
    attr "family_name" "family_name";
    attr "addl_info" "description";
    attr "nick_name" "xmozillanickname";
    attr "department" "ou";
    attr "Display_name" "cn";
    attr "Work_web_page" "";
    attr "Custom_1" "xmozillacustom1";
    attr "Custom_2" "xmozillacustom2";
    attr "Custom_3" "xmozillacustom3";
    attr "Custom_4" "xmozillacustom4";
    attr "Pref_rich_email" "";
    attr "Private" "";
    attr "Display_phone" "";
    attr "Category" "xmozillafolder";
}

# These are from NSCP LDAP, and are also found in LDIF files
# from NS 4.x & 7.x.
map {
    attr "mail"                     "mail" set_attr="mail_type:Work";
    attr "mailalternateaddress"     "mailalternateaddress"
                                    set_attr="mailalternateaddress_type:Other";
    attr "nscpaimscreenname"        "aoluid" set_attr="aoluid_type:Work";
    attr "telephonenumber"          "phone1" set_attr="phone1_type:Work";
    attr "homephone"                "phone2" set_attr="phone2_type:Home";
    attr "facsimiletelephonenumber" "phone3" set_attr="phone3_type:Fax";
    attr "mobile"                   "phone4" set_attr="phone4_type:Cellular";
    attr "cellphone"                "phone4" set_attr="phone4_type:Cellular";
    attr "pager"                    "phone5" set_attr="phone5_type:Pager";
    attr "pagerphone"               "phone5" set_attr="phone5_type:Pager";
    attr "postaladdress"            "streetaddress";
    attr "nscpbusinessunit"         "o";
    attr "homepostaladdress"        "xmozillahomeaddress";
}
