Exemplo n.º 1
0
        public static void SetName(
            PersonNameType personName, string voorvoegsel, string achternaam, string volledigenaam, string roepnaam)
        {
            // preferredGivenName = voornaam
            personName.PreferredGivenName = roepnaam;

            var familyName = new PersonNameTypeFamilyName();

            familyName.primarySpecified = true;
            familyName.primary          = PersonNameTypeFamilyNamePrimary.@true;
            familyName.Value            = achternaam;
            familyName.prefix           = voorvoegsel;
            personName.FamilyName.Add(familyName);

            personName.GivenName.Add(roepnaam);

            // volledige naam
            personName.FormattedName = volledigenaam;
        }
Exemplo n.º 2
0
        private static PublicationHistoryType CreatePublicationHistoryType()
        {
            PublicationHistoryType pht = new PublicationHistoryType();

            pht.Article = new List <ArticleType>();
            ArticleType at = new ArticleType();

            at.Abstract = "Abstract";
            at.Comments = "Commentaar";

            at.Copyright = new CopyrightType();
            at.Copyright.CopyrightDates = new CopyrightTypeCopyrightDates();
            at.Copyright.CopyrightDates.MostRecentDate = CreateFlexibleDatesType();
            at.Copyright.CopyrightDates.OriginalDate   = CreateFlexibleDatesType();
            at.Copyright.CopyrightText = "Copyright";

            at.ISSN  = "ISSN";
            at.Issue = "Issue";
            at.JournalOrSerialName = "Journal";
            at.Link = new List <string>();
            at.Link.Add("http://www.nocore.nl");
            at.Name = new List <BasicBibliographicRecordTypeName>();

            BasicBibliographicRecordTypeName bn = new BasicBibliographicRecordTypeName();

            bn.Affix = new List <PersonNameTypeAffix>();
            PersonNameTypeAffix af = new PersonNameTypeAffix();

            af.type  = PersonNameTypeAffixType.aristocraticTitle;
            af.Value = "Koning";
            bn.Affix.Add(af);

            bn.AlternateScript = new List <PersonNameTypeAlternateScript>();

            PersonNameTypeAlternateScript ps = new PersonNameTypeAlternateScript();

            ps.Affix = new List <PersonNameTypeAlternateScriptAffix>();
            PersonNameTypeAlternateScriptAffix afa = new PersonNameTypeAlternateScriptAffix();

            afa.type  = PersonNameTypeAlternateScriptAffixType.generation;
            afa.Value = "Oud geld";
            ps.Affix.Add(afa);

            ps.FamilyName = new List <PersonNameTypeAlternateScriptFamilyName>();
            PersonNameTypeAlternateScriptFamilyName fam = new PersonNameTypeAlternateScriptFamilyName();

            fam.prefix           = "prefix";
            fam.primary          = PersonNameTypeAlternateScriptFamilyNamePrimary.@true;
            fam.primarySpecified = true;
            fam.Value            = "value";
            ps.FamilyName.Add(fam);

            ps.FormattedName = "Formatted name";
            ps.GivenName     = new List <string>();
            ps.GivenName.Add("Givenname1");
            ps.GivenName.Add("Givenname2");
            ps.LegalName          = "LegalName";
            ps.MiddleName         = "MiddleName";
            ps.PreferredGivenName = "Givenname1";
            ps.script             = "script";

            bn.AlternateScript.Add(ps);

            bn.FamilyName = new List <PersonNameTypeFamilyName>();
            PersonNameTypeFamilyName ptfm = new PersonNameTypeFamilyName();

            ptfm.prefix           = "prefix";
            ptfm.primary          = PersonNameTypeFamilyNamePrimary.@true;
            ptfm.primarySpecified = true;
            ptfm.Value            = "Value";
            bn.FamilyName.Add(ptfm);

            bn.FormattedName = "Formatted name";
            bn.GivenName     = new List <string>();
            bn.GivenName.Add("Givenname1");
            bn.GivenName.Add("Givenname2");
            bn.LegalName          = "legalname";
            bn.MiddleName         = "middlename";
            bn.PreferredGivenName = "Givenname1";
            bn.role   = "role";
            bn.script = "script";

            at.Name.Add(bn);

            at.PageNumber          = "1";
            at.PublicationDate     = CreateFlexibleDatesType();
            at.PublicationLanguage = "nl";
            at.Title  = "Title";
            at.Volume = "Volume";

            pht.Article.Add(at);

            return(pht);
        }