Beispiel #1
0
        private TypeIEEERef identifierType(IEEEfile ieeefile)
        {
            switch (ieeefile.DocumentIdentifier)
            {
            case "IEEE Conferences":
                return(inproceedings);

            case "IBM Journals & Magazines":
                return(article);

            case "IET Journals & Magazines":
                return(article);

            case "IEEE Journals & Magazines":
                return(article);

            case "OUP Journals & Magazines":
                return(article);

            case "IEEE Early Access Articles":
                return(Article);

            default: return(misc);
            }
        }
Beispiel #2
0
        private void mapToBibEntry(IEEEfile value)
        {
            var x = new Reference(value);

            // x.Title = value.DocumentTitle;
            // x.Key = value.Id;
            // x.Year = value.Publication_Year;
            // x.Type= "misc";
            // x.Publisher = value.Publisher;
            // x.Author = value.Authors;

            mf.Escrever(x.ToString());
        }
Beispiel #3
0
        // TypeIEEERef INBOOK = new TypeIEEERef(1, "IEEE Early Access Articles", "INBOOK");



        public Reference(IEEEfile ieeeFile)
        {
            var type = identifierType(ieeeFile);

            if (type.Equals(inproceedings))
            {
                base.Author      = ieeeFile.Authors;
                base.Title       = ieeeFile.DocumentTitle;
                base.Booktitle   = ieeeFile.PublicationTitle;
                base.Type        = type.typeBib;
                base.Year        = ieeeFile.Publication_Year;
                base.Volume      = ieeeFile.Volume;
                base.Pages       = $"{ieeeFile.StartPage} - {ieeeFile.EndPage}";
                this["keywords"] = $"{ieeeFile.INSPECControlledTerms}{ieeeFile.INSPECNonControlledTerms}{ieeeFile.IEEETerms}";
                this["doi"]      = ieeeFile.DOI;
                base.Key         = this.id.ToString();

                Console.WriteLine("é inproceedings");
            }
            else if (type.Equals(article) || type.Equals(Article))
            {
                Console.WriteLine("é article");


                base.Author  = ieeeFile.Authors;
                base.Journal = ieeeFile.PublicationTitle;
                base.Title   = ieeeFile.DocumentTitle;
                base.Year    = ieeeFile.Publication_Year;
                base.Volume  = ieeeFile.Volume;
                base.Pages   = $"{ieeeFile.StartPage} - {ieeeFile.EndPage}";

                base.Key = this.id.ToString();
            }
            else
            {
                Console.WriteLine("é misc");

                base.Type      = type.typeBib;
                base.Title     = ieeeFile.DocumentTitle;
                base.Year      = ieeeFile.Publication_Year;
                base.Publisher = ieeeFile.Publisher;
                base.Author    = ieeeFile.Authors;
                base.Key       = this.id.ToString();
            }
        }