/// <summary>
 /// Сравнение двух выпусков
 /// (с целью сортировки по возрастанию номеров).
 /// </summary>
 public static int CompareNumbers
 (
     MagazineIssueInfo first,
     MagazineIssueInfo second
 )
 {
     return(NumberText.Compare(first.Number, second.Number));
 }
 public MagazineInfo GetMagazine
 (
     MagazineIssueInfo issue
 )
 {
     if (ReferenceEquals(issue, null))
     {
         throw new ArgumentNullException("issue");
     }
     return(null);
 }
        public static MagazineIssueInfo Parse
        (
            IrbisRecord record
        )
        {
            if (ReferenceEquals(record, null))
            {
                throw new ArgumentNullException("record");
            }

            MagazineIssueInfo result = new MagazineIssueInfo();

            return(result);
        }
        /// <summary>
        /// Разбор записи.
        /// </summary>
        public static MagazineIssueInfo Parse
        (
            IrbisRecord record
        )
        {
            if (ReferenceEquals(record, null))
            {
                throw new ArgumentNullException("record");
            }

            MagazineIssueInfo result = new MagazineIssueInfo
            {
                Mfn          = record.Mfn,
                DocumentCode = record.FM("903"),
                MagazineCode = record.FM("933"),
                Year         = record.FM("934"),
                Volume       = record.FM("935"),
                Number       = record.FM("936"),
                Supplement   = record.FM("931", 'c'),
                Worksheet    = record.FM("920"),
                Articles     = record.Fields
                               .GetField("922")
                               .Select(MagazineArticleInfo.Parse)
                               .ToArray(),
                Exemplars = record.Fields
                            .GetField("910")
                            .Select(ExemplarInfo.Parse)
                            .ToArray()
            };

            if (string.IsNullOrEmpty(result.Number))
            {
                return(null);
            }

            return(result);
        }