public IList <Journal> ParseJournals(string xml, UlrichsJournalType journalType) { var ulrichsElements = XDocument.Parse(xml).Descendants("UlrichsDataRecords").Descendants("Record"); var journalElements = journalType == UlrichsJournalType.All ? ulrichsElements.Where(IsJournal) : ulrichsElements.Where(IsOpenAccessJournal); return(journalElements.SelectMany(this.ParseJournal).Where(j => j.IsValid()).ToList()); }
private IList <Journal> ParseJournals(UlrichsJournalType journalType) { Logger.Info("Parsing journals..."); var journals = new List <Journal>(); foreach (var journalsXml in this.ulrichsCache.GetAll()) { journals.AddRange(this.ParseJournals(journalsXml, journalType)); } return(journals); }
public IList<Journal> ParseJournals(string xml, UlrichsJournalType journalType) { var ulrichsElements = XDocument.Parse(xml).Descendants("UlrichsDataRecords").Descendants("Record"); var journalElements = journalType == UlrichsJournalType.All ? ulrichsElements.Where(IsJournal) : ulrichsElements.Where(IsOpenAccessJournal); return journalElements.SelectMany(this.ParseJournal).Where(j => j.IsValid()).ToList(); }
public IList<Journal> GetJournals(UlrichsJournalType journalType) { this.DownloadJournals(); return this.ExcludeBlockedIssns(this.ParseJournals(journalType)); }
private IList<Journal> ParseJournals(UlrichsJournalType journalType) { Logger.Info("Parsing journals..."); var journals = new List<Journal>(); foreach (var journalsXml in this.ulrichsCache.GetAll()) { journals.AddRange(this.ParseJournals(journalsXml, journalType)); } return journals; }
public IList <Journal> GetJournals(UlrichsJournalType journalType) { this.DownloadJournals(); return(this.ExcludeBlockedIssns(this.ParseJournals(journalType))); }
public IList<Journal> GetJournals(UlrichsJournalType journalType) { this.DownloadJournals(); return this.ParseJournals(journalType); }
public IList <Journal> GetJournals(UlrichsJournalType journalType) { this.DownloadJournals(); return(this.ParseJournals(journalType)); }