Пример #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            AppendQcData(sb, Idx.ToString());
            AppendQcData(sb, VolumeId.ToString());
            AppendQcData(sb, VolumeTitle);
            AppendQcData(sb, VolumePublicationDate.ToString());

            AppendQcData(sb, CitationId.ToString());
            AppendQcData(sb, Page.ToString());
            AppendQcData(sb, PhysicalPage.ToString());

            AppendQcData(sb, OriginalCitation);
            AppendQcData(sb, Citation);
            AppendQcData(sb, CitationAndSource);

            AppendQcData(sb, Book);
            AppendQcData(sb, BookAuthor);
            AppendQcData(sb, Chapter);
            AppendQcData(sb, SubChapter);
            AppendQcData(sb, Paragraph);

            AppendQcData(sb, MainCategory);
            AppendQcData(sb, MainCategoryWeight.ToString());

            return(sb.ToString());
        }
Пример #2
0
        public int CompareTo(Citation other)
        {
            if (PhysicalPage == other.PhysicalPageStart)
            {
                return(Glyph.CompareTo(other.GlyphStart));
            }

            return(PhysicalPage.CompareTo(other.PhysicalPageStart));
        }
Пример #3
0
        public int CompareTo(Reference other)
        {
            if (PhysicalPage == other.PhysicalPage)
            {
                return(Glyph.CompareTo(other.Glyph));
            }

            return(PhysicalPage.CompareTo(other.PhysicalPage));
        }