internal static DM.VideoRecording Build(SM.VideoRecording videoRecording)
 {
     if (videoRecording != null)
     {
         List <DM.Creator> creators = new List <DM.Creator>();
         creators.AddRange(videoRecording.Authors != null ? videoRecording.Authors.Select(x => Build(x, DE.CreatorType.Author)).ToList() : new List <DM.Creator>());
         creators.AddRange(videoRecording.Translators != null ? videoRecording.Translators.Select(x => Build(x, DE.CreatorType.Translator)).ToList() : new List <DM.Creator>());
         return(new DM.VideoRecording()
         {
             TitleFull = videoRecording.TitleFull,
             TitleShort = videoRecording.TitleShort,
             Creators = creators,
             AccessedDate = Build(videoRecording.AccessedDate),
             IssuedDate = Build(videoRecording.IssuedDate),
             Abstract = videoRecording.Abstract,
             Language = videoRecording.Language,
             Note = videoRecording.Note,
             URL = videoRecording.URL,
             ArchiveName = videoRecording.ArchiveName,
             ArchiveLocation = videoRecording.ArchiveLocation,
             CallNumber = videoRecording.CallNumber,
             Dimensions = videoRecording.Dimensions,
             Medium = videoRecording.Medium,
             Source = videoRecording.Source,
             CollectionTitle = videoRecording.CollectionTitle,
             EventPlace = videoRecording.EventPlace,
             ISBN = videoRecording.ISBN,
             VolumeNumber = videoRecording.VolumeNumber,
             VolumeCount = videoRecording.VolumeCount,
             PublisherName = videoRecording.PublisherName,
             PublisherLocation = videoRecording.PublisherLocation
         });
     }
     else
     {
         return(null);
     }
 }
 public SM.Citation VideoRecording(SE.Style style, SE.Format format, [FromBody] SM.VideoRecording videoRecording)
 {
     return(_citationManager.CreateCitationVideoRecording(style, format, videoRecording));
 }
示例#3
0
 internal SM.Citation CreateCitationVideoRecording(SE.Style style, SE.Format format, SM.VideoRecording videoRecording)
 {
     return(ContentItemFactory.Build(_citationProcessor.CreateCitationVideoRecording(ContentItemFactory.Build(style),
                                                                                     ContentItemFactory.Build(format),
                                                                                     ContentItemFactory.Build(videoRecording))));
 }