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