UpdateItems() public method

public UpdateItems ( string idList, bool suppressOutput = false ) : string[]
idList string
suppressOutput bool
return string[]
示例#1
0
		public void Test02()
		{
			var database = BibTexHelper.LoadBibTexDatabase(@"Sample Files\Docear.bib");
			var citeproc = new CiteProcRunner(HavardCslStyle, () => database );

			var idList = database.GetEntryNames().ToArray();
idList = database.GetEntryNames().Take(300).ToArray();
			Console.WriteLine("Total of " + idList.Length + " items.");


			citeproc.UpdateItems(idList, false, true);

			//var bib = citeproc.MakeBibliography();

			//foreach (var entry in bib.Entries) Console.WriteLine(entry);
		}
示例#2
0
		public void Test01(int x)
		{
			var citeproc = new CiteProcRunner(HavardCslStyle, () => DocearDatabase);
			var listOfItems = new[] { "Agarwal05", "Agrawal08", "Aho75" };

			var result = citeproc.UpdateItems(listOfItems, false, true);
			foreach (var s in result) Console.WriteLine(s);

			var bib = citeproc.MakeBibliography();

			foreach(var entry in bib.Entries)
			{
				Console.WriteLine(entry);
			}
		}