using System;

namespace UniMarc
{
    public class MarcCopyItem
    {
        public int idx { get; set; }
        public string compidx { get; set; }
        public string ISBN { get; set; }
        public string Title { get; set; }
        public string Author { get; set; }
        public string Comp { get; set; }
        public string User { get; set; }
        public string Date { get; set; }
        public string Grade { get; set; }
        public string Tag008 { get; set; }
        public string Marc { get; set; } // Calculated real MARC
        
        // Raw MARC segments from DB
        public string marc_db { get; set; }
        public string marc_chk { get; set; }
        public string marc1 { get; set; }
        public string marc_chk1 { get; set; }
        public string marc2 { get; set; }
        public string marc_chk2 { get; set; }

        public string kwoncha { get; set; }
        public string kwoncha_title { get; set; }
        public string KwonchaFull { get; set; } // Combined kwoncha + kwoncha_title
        public string TotalTitleFull { get; set; } // Combined 총서명 + 총서번호
        public string pancha { get; set; }
        public string publishdate { get; set; }
        public string remark1 { get; set; }
        public string remark2 { get; set; }
        public string DisplayGrade
        {
            get
            {
                switch (Grade)
                {
                    case "0": return "A";
                    case "1": return "B";
                    case "2": return "C";
                    case "3": return "D";
                    default: return Grade;
                }
            }
        }
    }
}
