Exemplo n.º 1
0
        public static IsoRecordHeader GetDefault()
        {
            IsoRecordHeader result = new IsoRecordHeader
            {
                RecordStatus         = MarcRecordStatus.New,
                RecordType           = MarcRecordType.Text,
                BibliographicalIndex = MarcBibliographicalIndex.Monograph,
                BibliographicalLevel = MarcBibliographicalLevel.Unknown,
                CatalogingRules      = MarcCatalogingRules.NotConforming,
                RelatedRecord        = MarcRelatedRecord.NotRequired
            };

            return(result);
        }
Exemplo n.º 2
0
        public static IsoRecordHeader Parse
        (
            [NotNull] string text
        )
        {
            IsoRecordHeader result = new IsoRecordHeader
            {
                RecordStatus         = (MarcRecordStatus)text[0],
                RecordType           = (MarcRecordType)text[1],
                BibliographicalIndex = (MarcBibliographicalIndex)text[2],
                BibliographicalLevel = (MarcBibliographicalLevel)text[3],
                CatalogingRules      = (MarcCatalogingRules)text[4],
                RelatedRecord        = (MarcRelatedRecord)text[5]
            };

            return(result);
        }
Exemplo n.º 3
0
        public static IsoRecordHeader Parse
        (
            [NotNull] byte[] bytes,
            int offset
        )
        {
            IsoRecordHeader result = new IsoRecordHeader
            {
                RecordStatus         = (MarcRecordStatus)bytes[offset],
                RecordType           = (MarcRecordType)bytes[offset + 1],
                BibliographicalIndex = (MarcBibliographicalIndex)bytes[offset + 2],
                BibliographicalLevel = (MarcBibliographicalLevel)bytes[offset + 3],
                CatalogingRules      = (MarcCatalogingRules)bytes[offset + 4],
                RelatedRecord        = (MarcRelatedRecord)bytes[offset + 5]
            };

            return(result);
        }