Exemplo n.º 1
0
 internal static DM.Presentation Build(SM.Presentation presentation)
 {
     if (presentation != null)
     {
         List <DM.Creator> creators = new List <DM.Creator>();
         creators.AddRange(presentation.Authors != null ? presentation.Authors.Select(x => Build(x, DE.CreatorType.Author)).ToList() : new List <DM.Creator>());
         creators.AddRange(presentation.Translators != null ? presentation.Translators.Select(x => Build(x, DE.CreatorType.Translator)).ToList() : new List <DM.Creator>());
         return(new DM.Presentation()
         {
             TitleFull = presentation.TitleFull,
             TitleShort = presentation.TitleShort,
             Creators = creators,
             AccessedDate = Build(presentation.AccessedDate),
             IssuedDate = Build(presentation.IssuedDate),
             Abstract = presentation.Abstract,
             Language = presentation.Language,
             Note = presentation.Note,
             URL = presentation.URL,
             PublisherLocation = presentation.PublisherLocation,
             EventName = presentation.EventName,
             EventPlace = presentation.EventPlace,
             Genre = presentation.Genre
         });
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public SM.Citation Presentation(SE.Style style, SE.Format format, [FromBody] SM.Presentation presentation)
 {
     return(_citationManager.CreateCitationPresentation(style, format, presentation));
 }
Exemplo n.º 3
0
 internal SM.Citation CreateCitationPresentation(SE.Style style, SE.Format format, SM.Presentation presentation)
 {
     return(ContentItemFactory.Build(_citationProcessor.CreateCitationPresentation(ContentItemFactory.Build(style),
                                                                                   ContentItemFactory.Build(format),
                                                                                   ContentItemFactory.Build(presentation))));
 }