private void mapToBibEntry(Misc value) { var x = new BibEntry(); 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()); }
public static async Task <string> SearchUrl(string url) { var entry = new BibEntry() { Type = "online" }; var html = await WebUtility.SimpleTextRequest(url); var doc = new HtmlDocument(); doc.LoadHtml(html); var title = doc.DocumentNode.SelectSingleNode(".//title").InnerText; entry.Title = title; return(entry.ToString()); }