コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }