public JSRawCitationItem CreateJSRawCitationItem(EntryAndPagePair entryAndPagePair)
        {
            if (entryAndPagePair == null) throw new ArgumentNullException("entryAndPagePair");

            var result = new JSRawCitationItem(context)
                         	{
                         		ID = entryAndPagePair.ID,
                                Type = GetType(entryAndPagePair.Entry.Classification)
                         	};

            new Converter(result, entryAndPagePair.Entry).ConvertItem();

            return result;
        }
        public JSRawCitationItem CreateJSRawCitationItem(EntryAndPagePair entryAndPagePair)
        {
            if (entryAndPagePair == null)
            {
                throw new ArgumentNullException("entryAndPagePair");
            }

            var result = new JSRawCitationItem(context)
            {
                ID   = entryAndPagePair.ID,
                Type = GetType(entryAndPagePair.Entry.Classification)
            };

            new Converter(result, entryAndPagePair.Entry).ConvertItem();

            return(result);
        }
Example #3
0
		public void CacheRawCitationItem(JSRawCitationItem rawCitationItem)
		{
			jsRawCitationItemCache[rawCitationItem.ID] = rawCitationItem;
		}
            public Converter(JSRawCitationItem item, Entry entry)
            {
                this.item = item;

                tags = entry.GetTagDictionary();
            }
Example #5
0
 public void CacheRawCitationItem(JSRawCitationItem rawCitationItem)
 {
     jsRawCitationItemCache[rawCitationItem.ID] = rawCitationItem;
 }
            public Converter(JSRawCitationItem item, Entry entry)
            {
                this.item = item;

                tags = entry.GetTagDictionary();
            }