public Entry(string entryType, string name, BibtexClassificationType classification) { this.entryType = entryType; this.name = name; this.name = this.name.Replace("'", ""); this.classification = classification; tags = new Dictionary<string, TagEntry>(StringComparer.OrdinalIgnoreCase); }
public Entry(string entryType, string name, BibtexClassificationType classification) { this.entryType = entryType; this.name = name; this.name = this.name.Replace("'", ""); this.classification = classification; tags = new Dictionary <string, TagEntry>(StringComparer.OrdinalIgnoreCase); }
public Entry(string entryType, string name, BibtexClassificationType classification) { this.entryType = entryType; // Apostrophe is a reserved character in XML (and not a valid key character anyway) so we remove it here // which will allow it to be in the database this.name = name.Replace("'", ""); this.classification = classification; tags = new Dictionary <string, TagEntry>(StringComparer.OrdinalIgnoreCase); }
public Entry(string entryType, string name, BibtexClassificationType classification) { this.entryType = entryType; // Apostrophe is a reserved character in XML (and not a valid key character anyway) so we remove it here // which will allow it to be in the database this.name = name.Replace("'", ""); this.classification = classification; tags = new Dictionary<string, TagEntry>(StringComparer.OrdinalIgnoreCase); }
static string GetType(BibtexClassificationType bibtexClassificationType) { switch (bibtexClassificationType) { case BibtexClassificationType.Article: return CSLTypes.ArticleJournal; case BibtexClassificationType.Proceedings: case BibtexClassificationType.Manual: case BibtexClassificationType.Book: case BibtexClassificationType.Periodical: return CSLTypes.Book; case BibtexClassificationType.Booklet: return CSLTypes.Pamphlet; case BibtexClassificationType.InBook: case BibtexClassificationType.InCollection: return CSLTypes.Chapter; case BibtexClassificationType.InProceedings: case BibtexClassificationType.Conference: return CSLTypes.PaperConference; case BibtexClassificationType.MastersThesis: case BibtexClassificationType.PhdThesis: return CSLTypes.Thesis; case BibtexClassificationType.TechReport: return CSLTypes.Report; case BibtexClassificationType.Patent: return CSLTypes.Patent; case BibtexClassificationType.Electronic: return CSLTypes.WebPage; case BibtexClassificationType.Misc: case BibtexClassificationType.Other: return CSLTypes.Article; case BibtexClassificationType.Standard: return CSLTypes.Legislation; case BibtexClassificationType.Unpublished: return CSLTypes.Manuscript; default: return CSLTypes.Book; } }
static string GetType(BibtexClassificationType bibtexClassificationType) { switch (bibtexClassificationType) { case BibtexClassificationType.Article: return(CSLTypes.ArticleJournal); case BibtexClassificationType.Proceedings: case BibtexClassificationType.Manual: case BibtexClassificationType.Book: case BibtexClassificationType.Periodical: return(CSLTypes.Book); case BibtexClassificationType.Booklet: return(CSLTypes.Pamphlet); case BibtexClassificationType.InBook: case BibtexClassificationType.InCollection: return(CSLTypes.Chapter); case BibtexClassificationType.InProceedings: case BibtexClassificationType.Conference: return(CSLTypes.PaperConference); case BibtexClassificationType.MastersThesis: case BibtexClassificationType.PhdThesis: return(CSLTypes.Thesis); case BibtexClassificationType.TechReport: return(CSLTypes.Report); case BibtexClassificationType.Patent: return(CSLTypes.Patent); case BibtexClassificationType.Electronic: return(CSLTypes.WebPage); case BibtexClassificationType.Misc: case BibtexClassificationType.Other: return(CSLTypes.Article); case BibtexClassificationType.Standard: return(CSLTypes.Legislation); case BibtexClassificationType.Unpublished: return(CSLTypes.Manuscript); default: return(CSLTypes.Book); } }