1#-------------------------------------------- 2# marc21: file(1) magic for MARC 21 Format 3# 4# Kevin Ford (kefo@loc.gov) 5# 6# MARC21 formats are for the representation and communication 7# of bibliographic and related information in machine-readable 8# form. For more info, see http://www.loc.gov/marc/ 9 10 11# leader position 20-21 must be 45 1220 string 45 13 14# leader starts with 5 digits, followed by codes specific to MARC format 15>0 regex/1l (^[0-9]{5})[acdnp][^bhlnqsu-z] MARC21 Bibliographic 16!:mime application/marc 17>0 regex/1l (^[0-9]{5})[acdnosx][z] MARC21 Authority 18!:mime application/marc 19>0 regex/1l (^[0-9]{5})[cdn][uvxy] MARC21 Holdings 20!:mime application/marc 210 regex/1l (^[0-9]{5})[acdn][w] MARC21 Classification 22!:mime application/marc 23>0 regex/1l (^[0-9]{5})[cdn][q] MARC21 Community 24!:mime application/marc 25 26# leader position 22-23, should be "00" but is it? 27>0 regex/1l (^.{21})([^0]{2}) (non-conforming) 28!:mime application/marc 29