예제 #1
0
        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());
        }
예제 #2
0
        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);
        }
예제 #3
0
        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();
        }
예제 #4
0
        public IList<Journal> GetJournals(UlrichsJournalType journalType)
        {
            this.DownloadJournals();

            return this.ExcludeBlockedIssns(this.ParseJournals(journalType));
        }
예제 #5
0
        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;
        }
예제 #6
0
        public IList <Journal> GetJournals(UlrichsJournalType journalType)
        {
            this.DownloadJournals();

            return(this.ExcludeBlockedIssns(this.ParseJournals(journalType)));
        }
예제 #7
0
        public IList<Journal> GetJournals(UlrichsJournalType journalType)
        {
            this.DownloadJournals();

            return this.ParseJournals(journalType);
        }
예제 #8
0
        public IList <Journal> GetJournals(UlrichsJournalType journalType)
        {
            this.DownloadJournals();

            return(this.ParseJournals(journalType));
        }