internal static DM.Map Build(SM.Map map)
 {
     if (map != null)
     {
         List <DM.Creator> creators = new List <DM.Creator>();
         creators.AddRange(map.Authors != null ? map.Authors.Select(x => Build(x, DE.CreatorType.Author)).ToList() : new List <DM.Creator>());
         creators.AddRange(map.Translators != null ? map.Translators.Select(x => Build(x, DE.CreatorType.Translator)).ToList() : new List <DM.Creator>());
         creators.AddRange(map.CollectionEditors != null ? map.CollectionEditors.Select(x => Build(x, DE.CreatorType.CollectionEditor)).ToList() : new List <DM.Creator>());
         return(new DM.Map()
         {
             TitleFull = map.TitleFull,
             TitleShort = map.TitleShort,
             Creators = creators,
             AccessedDate = Build(map.AccessedDate),
             IssuedDate = Build(map.IssuedDate),
             Abstract = map.Abstract,
             Language = map.Language,
             Note = map.Note,
             URL = map.URL,
             PublisherName = map.PublisherName,
             PublisherLocation = map.PublisherLocation,
             ISBN = map.ISBN,
             CallNumber = map.CallNumber,
             ArchiveName = map.ArchiveName,
             ArchiveLocation = map.ArchiveLocation,
             CollectionTitle = map.CollectionTitle,
             Edition = map.Edition,
             Genre = map.Genre,
             Source = map.Source,
             EventPlace = map.EventPlace,
             Scale = map.Scale
         });
     }
     else
     {
         return(null);
     }
 }
 public SM.Citation Map(SE.Style style, SE.Format format, [FromBody] SM.Map map)
 {
     return(_citationManager.CreateCitationMap(style, format, map));
 }
Exemple #3
0
 internal SM.Citation CreateCitationMap(SE.Style style, SE.Format format, SM.Map map)
 {
     return(ContentItemFactory.Build(_citationProcessor.CreateCitationMap(ContentItemFactory.Build(style),
                                                                          ContentItemFactory.Build(format),
                                                                          ContentItemFactory.Build(map))));
 }