xref: /minix3/external/bsd/file/dist/magic/magdir/marc21 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1835f6802SDirk Vogt#--------------------------------------------
2835f6802SDirk Vogt# marc21: file(1) magic for MARC 21 Format
3835f6802SDirk Vogt#
4835f6802SDirk Vogt# Kevin Ford (kefo@loc.gov)
5835f6802SDirk Vogt#
6835f6802SDirk Vogt# MARC21 formats are for the representation and communication
7835f6802SDirk Vogt# of bibliographic and related information in machine-readable
8835f6802SDirk Vogt# form.  For more info, see http://www.loc.gov/marc/
9835f6802SDirk Vogt
10835f6802SDirk Vogt
11835f6802SDirk Vogt# leader position 20-21 must be 45
12835f6802SDirk Vogt20	string	45
13835f6802SDirk Vogt
14835f6802SDirk Vogt# leader starts with 5 digits, followed by codes specific to MARC format
15*0a6a1f1dSLionel Sambuc>0	regex/1l	(^[0-9]{5})[acdnp][^bhlnqsu-z]	MARC21 Bibliographic
16835f6802SDirk Vogt!:mime	application/marc
17*0a6a1f1dSLionel Sambuc>0	regex/1l	(^[0-9]{5})[acdnosx][z]	MARC21 Authority
18835f6802SDirk Vogt!:mime	application/marc
19*0a6a1f1dSLionel Sambuc>0	regex/1l	(^[0-9]{5})[cdn][uvxy]	MARC21 Holdings
20835f6802SDirk Vogt!:mime	application/marc
21*0a6a1f1dSLionel Sambuc0	regex/1l	(^[0-9]{5})[acdn][w]	MARC21 Classification
22835f6802SDirk Vogt!:mime	application/marc
23*0a6a1f1dSLionel Sambuc>0	regex/1l	(^[0-9]{5})[cdn][q]	MARC21 Community
24835f6802SDirk Vogt!:mime	application/marc
25835f6802SDirk Vogt
26835f6802SDirk Vogt# leader position 22-23, should be "00" but is it?
27*0a6a1f1dSLionel Sambuc>0	regex/1l	(^.{21})([^0]{2})	(non-conforming)
28835f6802SDirk Vogt!:mime	application/marc
29