Exemplo n.º 1
0
        private static void TransformSourceCitation(GDMTree tree, GDMSourceCitation sourCit)
        {
            GDMSourceRecord sourRec = tree.CreateSource();

            StringList description         = sourCit.Description;
            string     page                = sourCit.Page;
            int        certaintyAssessment = sourCit.CertaintyAssessment;

            sourRec.Text.Lines.Assign(description);

            sourCit.Clear();
            sourCit.Value = sourRec;
            sourCit.Page  = page;
            sourCit.CertaintyAssessment = certaintyAssessment;
        }
Exemplo n.º 2
0
        private void TransformSourceCitation(GDMSourceCitation sourCit)
        {
            GDMSourceRecord sourRec = fTree.CreateSource();

            sourRec.Title.Lines.Assign(sourCit.Description);
            sourRec.Text.Lines.Assign(sourCit.Text.Lines);

            // transfers notes and multimedia from the citation to the source record
            sourRec.AssignList(sourCit.Notes, sourRec.Notes);
            sourRec.AssignList(sourCit.MultimediaLinks, sourRec.MultimediaLinks);

            sourCit.Description.Clear();
            sourCit.Text.Clear();
            sourCit.Notes.Clear();
            sourCit.MultimediaLinks.Clear();
            sourCit.XRef = sourRec.XRef;

            CheckTagWithNotes(sourRec);
            CheckTagWithMultimediaLinks(sourRec);
        }