Example #1
0
            JSInlineCitation GetCitation(string fieldCodeText)
            {
                JSInlineCitation result;

                if (!inlineCitationCache.TryGetValue(fieldCodeText, out result))
                {
                    var citationJSON = Helper.ExtractCitationJSON(fieldCodeText);

                    result = JSInlineCitation.FromJSON(citeProc, citationJSON);

                    SetCitation(fieldCodeText, result);
                }

                return(result);
            }
Example #2
0
        public JSInlineCitation CreateInlineCitationFromFieldJSON(Field field)
        {
            var citationJSON = Helper.ExtractCitationJSON(field);

            return(JSInlineCitation.FromJSON(this, citationJSON));
        }