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