internal static DM.Bill Build(SM.Bill bill)
 {
     if (bill != null)
     {
         List <DM.Creator> creators = new List <DM.Creator>();
         creators.AddRange(bill.Authors != null ? bill.Authors.Select(x => Build(x, DE.CreatorType.Author)).ToList() : new List <DM.Creator>());
         creators.AddRange(bill.Translators != null ? bill.Translators.Select(x => Build(x, DE.CreatorType.Translator)).ToList() : new List <DM.Creator>());
         return(new DM.Bill()
         {
             TitleFull = bill.TitleFull,
             TitleShort = bill.TitleShort,
             Creators = creators,
             AccessedDate = Build(bill.AccessedDate),
             IssuedDate = Build(bill.IssuedDate),
             Abstract = bill.Abstract,
             Language = bill.Language,
             Note = bill.Note,
             URL = bill.URL,
             ContainerTitle = bill.ContainerTitle,
             PageNumber = bill.PageNumber,
             Number = bill.Number,
             References = bill.References,
             VolumeNumber = bill.VolumeNumber,
             Authority = bill.Authority,
             ChapterNumber = bill.ChapterNumber,
             Section = bill.Section
         });
     }
     else
     {
         return(null);
     }
 }
 public SM.Citation Bill(SE.Style style, SE.Format format, [FromBody] SM.Bill bill)
 {
     return(_citationManager.CreateCitationBill(style, format, bill));
 }
Beispiel #3
0
 internal SM.Citation CreateCitationBill(SE.Style style, SE.Format format, SM.Bill bill)
 {
     return(ContentItemFactory.Build(_citationProcessor.CreateCitationBill(ContentItemFactory.Build(style),
                                                                           ContentItemFactory.Build(format),
                                                                           ContentItemFactory.Build(bill))));
 }