1 /* ---------------------------------------------------------------------------
2 * Copyright (C) 2011 Equinox Software, Inc.
3 * Mike Rylander <miker@esilibrary.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * ---------------------------------------------------------------------------
17 if(!dojo._hasResource["MARC.FixedFields"]) {
19 dojo.require('MARC.Record');
21 dojo._hasResource["MARC.FixedFields"] = true;
22 dojo.provide("MARC.FixedFields");
24 MARC.Record._recType = {
25 BKS : { Type : /[at]{1}/, BLvl : /[acdm]{1}/ },
26 SER : { Type : /[a]{1}/, BLvl : /[bsi]{1}/ },
27 VIS : { Type : /[gkro]{1}/, BLvl : /[abcdmsi]{1}/ },
28 MIX : { Type : /[p]{1}/, BLvl : /[cdi]{1}/ },
29 MAP : { Type : /[ef]{1}/, BLvl : /[abcdmsi]{1}/ },
30 SCO : { Type : /[cd]{1}/, BLvl : /[abcdmsi]{1}/ },
31 REC : { Type : /[ij]{1}/, BLvl : /[abcdmsi]{1}/ },
32 COM : { Type : /[m]{1}/, BLvl : /[abcdmsi]{1}/ },
33 AUT : { Type : /[z]{1}/, BLvl : /.{1}/ },
34 MFHD : { Type : /[uvxy]{1}/, BLvl : /.{1}/ }
37 MARC.Record._ff_pos = {
40 BKS : {start : 15, len : 3, def : ' ' },
41 SER : {start : 15, len : 3, def : ' ' },
42 VIS : {start : 15, len : 3, def : ' ' },
43 MIX : {start : 15, len : 3, def : ' ' },
44 MAP : {start : 15, len : 3, def : ' ' },
45 SCO : {start : 15, len : 3, def : ' ' },
46 REC : {start : 15, len : 3, def : ' ' },
47 COM : {start : 15, len : 3, def : ' ' }
52 BKS : {start : 35, len : 3, def : ' ' },
53 SER : {start : 35, len : 3, def : ' ' },
54 VIS : {start : 35, len : 3, def : ' ' },
55 MIX : {start : 35, len : 3, def : ' ' },
56 MAP : {start : 35, len : 3, def : ' ' },
57 SCO : {start : 35, len : 3, def : ' ' },
58 REC : {start : 35, len : 3, def : ' ' },
59 COM : {start : 35, len : 3, def : ' ' }
64 BKS : {start : 38, len : 1, def : ' ' },
65 SER : {start : 38, len : 1, def : ' ' },
66 VIS : {start : 38, len : 1, def : ' ' },
67 MIX : {start : 38, len : 1, def : ' ' },
68 MAP : {start : 38, len : 1, def : ' ' },
69 SCO : {start : 38, len : 1, def : ' ' },
70 REC : {start : 38, len : 1, def : ' ' },
71 COM : {start : 38, len : 1, def : ' ' }
76 BKS : {start : 6, len : 1, def : ' ' },
77 SER : {start : 6, len : 1, def : 'c' },
78 VIS : {start : 6, len : 1, def : ' ' },
79 MIX : {start : 6, len : 1, def : ' ' },
80 MAP : {start : 6, len : 1, def : ' ' },
81 SCO : {start : 6, len : 1, def : ' ' },
82 REC : {start : 6, len : 1, def : ' ' },
83 COM : {start : 6, len : 1, def : ' ' }
88 BKS : {start : 5, len : 1, def : 'n' },
89 SER : {start : 5, len : 1, def : 'n' },
90 VIS : {start : 5, len : 1, def : 'n' },
91 MIX : {start : 5, len : 1, def : 'n' },
92 MAP : {start : 5, len : 1, def : 'n' },
93 SCO : {start : 5, len : 1, def : 'n' },
94 REC : {start : 5, len : 1, def : 'n' },
95 COM : {start : 5, len : 1, def : 'n' },
96 MFHD: {start : 5, len : 1, def : 'n' },
97 AUT : {start : 5, len : 1, def : 'n' }
102 BKS : {start : 6, len : 1, def : 'a' },
103 SER : {start : 6, len : 1, def : 'a' },
104 VIS : {start : 6, len : 1, def : 'g' },
105 MIX : {start : 6, len : 1, def : 'p' },
106 MAP : {start : 6, len : 1, def : 'e' },
107 SCO : {start : 6, len : 1, def : 'c' },
108 REC : {start : 6, len : 1, def : 'i' },
109 COM : {start : 6, len : 1, def : 'm' },
110 AUT : {start : 6, len : 1, def : 'z' },
111 MFHD : {start : 6, len : 1, def : 'y' }
117 BKS : {start : 8, len : 1, def : ' ' },
118 SER : {start : 8, len : 1, def : ' ' },
119 VIS : {start : 8, len : 1, def : ' ' },
120 MIX : {start : 8, len : 1, def : ' ' },
121 MAP : {start : 8, len : 1, def : ' ' },
122 SCO : {start : 8, len : 1, def : ' ' },
123 REC : {start : 8, len : 1, def : ' ' },
124 COM : {start : 8, len : 1, def : ' ' }
129 BKS : {start : 7, len : 1, def : 'm' },
130 SER : {start : 7, len : 1, def : 's' },
131 VIS : {start : 7, len : 1, def : 'm' },
132 MIX : {start : 7, len : 1, def : 'c' },
133 MAP : {start : 7, len : 1, def : 'm' },
134 SCO : {start : 7, len : 1, def : 'm' },
135 REC : {start : 7, len : 1, def : 'm' },
136 COM : {start : 7, len : 1, def : 'm' }
141 BKS : {start : 18, len : 1, def : ' ' },
142 SER : {start : 18, len : 1, def : ' ' },
143 VIS : {start : 18, len : 1, def : ' ' },
144 MIX : {start : 18, len : 1, def : ' ' },
145 MAP : {start : 18, len : 1, def : ' ' },
146 SCO : {start : 18, len : 1, def : ' ' },
147 REC : {start : 18, len : 1, def : ' ' },
148 COM : {start : 18, len : 1, def : ' ' }
153 MFHD : {start : 18, len : 1, def : 'i' }
158 BKS : {start : 17, len : 1, def : ' ' },
159 SER : {start : 17, len : 1, def : ' ' },
160 VIS : {start : 17, len : 1, def : ' ' },
161 MIX : {start : 17, len : 1, def : ' ' },
162 MAP : {start : 17, len : 1, def : ' ' },
163 SCO : {start : 17, len : 1, def : ' ' },
164 REC : {start : 17, len : 1, def : ' ' },
165 COM : {start : 17, len : 1, def : ' ' },
166 AUT : {start : 17, len : 1, def : 'n' },
167 MFHD : {start : 17, len : 1, def : 'u' }
172 VIS : {start : 33, len : 1, def : ' ' }
175 VIS : {start : 16, len : 1, def : ' ' }
180 SCO : {start : 33, len : 1, def : ' ' },
181 REC : {start : 33, len : 1, def : 'n' }
184 SCO : {start : 16, len : 1, def : ' ' },
185 REC : {start : 16, len : 1, def : 'n' }
190 BKS : {start : 31, len : 1, def : '0' },
191 MAP : {start : 31, len : 1, def : '0' }
194 BKS : {start : 14, len : 1, def : '0' },
195 MAP : {start : 14, len : 1, def : '0' }
200 BKS : {start : 7, len : 4, def : ' ' },
201 SER : {start : 7, len : 4, def : ' ' },
202 VIS : {start : 7, len : 4, def : ' ' },
203 MIX : {start : 7, len : 4, def : ' ' },
204 MAP : {start : 7, len : 4, def : ' ' },
205 SCO : {start : 7, len : 4, def : ' ' },
206 REC : {start : 7, len : 4, def : ' ' },
207 COM : {start : 7, len : 4, def : ' ' }
212 BKS : {start : 11, len : 4, def : ' ' },
213 SER : {start : 11, len : 4, def : '9' },
214 VIS : {start : 11, len : 4, def : ' ' },
215 MIX : {start : 11, len : 4, def : ' ' },
216 MAP : {start : 11, len : 4, def : ' ' },
217 SCO : {start : 11, len : 4, def : ' ' },
218 REC : {start : 11, len : 4, def : ' ' },
219 COM : {start : 11, len : 4, def : ' ' }
224 BKS : {start : 33, len : 1, def : '0' }
227 BKS : {start : 16, len : 1, def : '0' }
232 BKS : {start : 34, len : 1, def : ' ' }
235 BKS : {start : 17, len : 1, def : ' ' }
240 BKS : {start : 18, len : 4, def : ' ' }
243 BKS : {start : 1, len : 4, def : ' ' }
248 BKS : {start : 30, len : 1, def : '0' }
251 BKS : {start : 13, len : 1, def : '0' }
256 BKS : {start : 24, len : 4, def : ' ' },
257 SER : {start : 25, len : 3, def : ' ' }
260 BKS : {start : 7, len : 4, def : ' ' },
261 SER : {start : 8, len : 3, def : ' ' }
266 BKS : {start : 28, len : 1, def : ' ' },
267 SER : {start : 28, len : 1, def : ' ' },
268 VIS : {start : 28, len : 1, def : ' ' },
269 MAP : {start : 28, len : 1, def : ' ' },
270 COM : {start : 28, len : 1, def : ' ' }
273 BKS : {start : 11, len : 1, def : ' ' },
274 SER : {start : 11, len : 1, def : ' ' },
275 VIS : {start : 11, len : 1, def : ' ' },
276 MAP : {start : 11, len : 1, def : ' ' },
277 COM : {start : 11, len : 1, def : ' ' }
282 BKS : {start : 39, len : 1, def : 'd' },
283 SER : {start : 39, len : 1, def : 'd' },
284 VIS : {start : 39, len : 1, def : 'd' },
285 SCO : {start : 39, len : 1, def : 'd' },
286 REC : {start : 39, len : 1, def : 'd' },
287 COM : {start : 39, len : 1, def : 'd' },
288 MFHD : {start : 39, len : 1, def : 'd' },
289 "AUT" : {"start" : 39, "len" : 1, "def" : 'd' }
294 BKS : {start : 22, len : 1, def : ' ' },
295 SER : {start : 22, len : 1, def : ' ' },
296 VIS : {start : 22, len : 1, def : ' ' },
297 SCO : {start : 22, len : 1, def : ' ' },
298 REC : {start : 22, len : 1, def : ' ' },
299 COM : {start : 22, len : 1, def : ' ' }
302 BKS : {start : 5, len : 1, def : ' ' },
303 SER : {start : 5, len : 1, def : ' ' },
304 VIS : {start : 5, len : 1, def : ' ' },
305 SCO : {start : 5, len : 1, def : ' ' },
306 REC : {start : 5, len : 1, def : ' ' },
307 COM : {start : 5, len : 1, def : ' ' }
312 BKS : {start : 23, len : 1, def : ' ' },
313 SER : {start : 23, len : 1, def : ' ' },
314 VIS : {start : 29, len : 1, def : ' ' },
315 MIX : {start : 23, len : 1, def : ' ' },
316 MAP : {start : 29, len : 1, def : ' ' },
317 SCO : {start : 23, len : 1, def : ' ' },
318 REC : {start : 23, len : 1, def : ' ' }
321 BKS : {start : 6, len : 1, def : ' ' },
322 SER : {start : 6, len : 1, def : ' ' },
323 VIS : {start : 12, len : 1, def : ' ' },
324 MIX : {start : 6, len : 1, def : ' ' },
325 MAP : {start : 12, len : 1, def : ' ' },
326 SCO : {start : 6, len : 1, def : ' ' },
327 REC : {start : 6, len : 1, def : ' ' }
332 SER : {start : 34, len : 1, def : '0' }
335 SER : {start : 17, len : 1, def : '0' }
340 SER : {start : 33, len : 1, def : ' ' }
343 SER : {start : 16, len : 1, def : ' ' }
348 "AUT" : {"start" : 6, "len" : 1, "def" : ' ' }
353 "AUT" : {"start" : 7, "len" : 1, "def" : ' ' }
358 "AUT" : {"start" : 8, "len" : 1, "def" : ' ' }
363 "AUT" : {"start" : 9, "len" : 1, "def" : ' ' }
368 "AUT" : {"start" : 10, "len" : 1, "def" : ' ' }
373 "AUT" : {"start" : 11, "len" : 1, "def" : ' ' }
378 "AUT" : {"start" : 12, "len" : 1, "def" : ' ' }
383 "AUT" : {"start" : 13, "len" : 1, "def" : ' ' }
388 "AUT" : {"start" : 14, "len" : 1, "def" : ' ' }
393 "AUT" : {"start" : 15, "len" : 1, "def" : ' ' }
398 "AUT" : {"start" : 16, "len" : 1, "def" : ' ' }
403 "AUT" : {"start" : 17, "len" : 1, "def" : ' ' }
408 "AUT" : {"start" : 28, "len" : 1, "def" : ' ' }
413 "AUT" : {"start" : 29, "len" : 1, "def" : ' ' }
418 "AUT" : {"start" : 31, "len" : 1, "def" : ' ' }
423 "AUT" : {"start" : 32, "len" : 1, "def" : ' ' }
428 "AUT" : {"start" : 33, "len" : 1, "def" : ' ' }
433 "AUT" : {"start" : 38, "len" : 1, "def" : ' ' }
438 "AUT" : {"start" : 39, "len" : 1, "def" : ' ' }
443 MARC.Record._physical_characteristics = {
445 label : "Electronic Resource",
450 values: { a : "Tape Cartridge",
451 b : "Chip cartridge",
452 c : "Computer optical disk cartridge",
456 m : "Magneto-optical disk",
466 values: { a : "One color",
467 b : "Black-and-white",
471 n : "Not applicable",
478 label : "Dimensions",
479 values: { a : "3 1/2 in.",
481 g : "4 3/4 in. or 12 cm.",
482 i : "1 1/8 x 2 3/8 in.",
483 j : "3 7/8 x 2 1/2 in.",
484 n : "Not applicable",
494 values: { ' ' : "No sound (Silent)",
501 label : "Image bit depth",
502 values: { mmm : "Multiple",
503 nnn : "Not applicable",
509 label : "File formats",
510 values: { a : "One file format",
511 m : "Multiple file formats",
517 label : "Quality assurance target(s)",
518 values: { a : "Absent",
519 n : "Not applicable",
526 label : "Antecedent/Source",
527 values: { a : "File reproduced from original",
528 b : "File reproduced from microform",
529 c : "File reproduced from electronic resource",
530 d : "File reproduced from an intermediate (not microform)",
532 n : "Not applicable",
538 label : "Level of compression",
539 values: { a : "Uncompressed",
548 label : "Reformatting quality",
549 values: { a : "Access",
550 n : "Not applicable",
564 values: { a : "Celestial globe",
565 b : "Planetary or lunar globe",
566 c : "Terrestrial globe",
567 e : "Earth moon globe",
575 values: { a : "One color",
581 label : "Physical medium",
582 values: { a : "Paper",
596 label : "Type of reproduction",
597 values: { f : "Facsimile",
598 n : "Not applicable",
611 values: { d : "Atlas",
616 r : "Remote-sensing image",
626 values: { a : "One color",
632 label : "Physical medium",
633 values: { a : "Paper",
641 q : "Flexible base photographic medium, positive",
642 r : "Flexible base photographic medium, negative",
643 s : "Non-flexible base photographic medium, positive",
644 t : "Non-flexible base photographic medium, negative",
646 y : "Other photographic medium",
652 label : "Type of reproduction",
653 values: { f : "Facsimile",
654 n : "Not applicable",
661 label : "Production/reproduction details",
662 values: { a : "Photocopy, blueline print",
664 c : "Pre-production",
672 label : "Positive/negative",
673 values: { a : "Positive",
687 values: { a : "Aperture card",
688 b : "Microfilm cartridge",
689 c : "Microfilm cassette",
690 d : "Microfilm reel",
692 f : "Microfiche cassette",
700 label : "Positive/negative",
701 values: { a : "Positive",
709 label : "Dimensions",
710 values: { a : "8 mm.",
715 l : "3 x 5 in. (8 x 13 cm.)",
716 m : "4 x 6 in. (11 x 15 cm.)",
717 o : "6 x 9 in. (16 x 23 cm.)",
718 p : "3 1/4 x 7 3/8 in. (9 x 19 cm.)",
725 label : "Reduction ratio range/Reduction ratio",
726 values: { a : "Low (1-16x)",
727 b : "Normal (16-30x)",
729 d : "Very high (61-90x)",
732 v : "Reduction ratio varies"
738 values: { b : "Black-and-white",
747 label : "Emulsion on film",
748 values: { a : "Silver halide",
752 n : "Not applicable",
759 label : "Quality assurance target(s)",
760 values: { a : "1st gen. master",
761 b : "Printing master",
763 m : "Mixed generation",
769 label : "Base of film",
770 values: { a : "Safety base, undetermined",
771 c : "Safety base, acetate undetermined",
772 d : "Safety base, diacetate",
775 n : "Not applicable",
776 p : "Safety base, polyester",
777 r : "Safety base, mixed",
778 t : "Safety base, triacetate",
786 label : "Motion Picture",
791 values: { a : "Film cartridge",
801 values: { b : "Black-and-white",
811 label : "Motion picture presentation format",
812 values: { a : "Standard sound aperture, reduced frame",
813 b : "Nonanamorphic (wide-screen)",
815 d : "Anamorphic (wide-screen)",
816 e : "Other-wide screen format",
817 f : "Standard. silent aperture, full frame",
824 label : "Sound on medium or separate",
825 values: { a : "Sound on medium",
826 b : "Sound separate from medium",
832 label : "Medium for sound",
833 values: { a : "Optical sound track on motion picture film",
834 b : "Magnetic sound track on motion picture film",
835 c : "Magnetic audio tape in cartridge",
837 e : "Magnetic audio tape on reel",
838 f : "Magnetic audio tape in cassette",
839 g : "Optical and magnetic sound track on film",
848 label : "Dimensions",
849 values: { a : "Standard 8 mm.",
850 b : "Super 8 mm./single 8 mm.",
862 label : "Configuration of playback channels",
863 values: { k : "Mixed",
865 n : "Not applicable",
866 q : "Multichannel, surround or quadraphonic",
874 label : "Production elements",
875 values: { a : "Work print",
880 f : "Title bands/inter-title rolls",
881 g : "Production rolls",
882 n : "Not applicable",
889 label : "Non-projected Graphic",
894 values: { c : "Collage",
897 f : "Photo-mechanical print",
902 l : "Technical drawing",
904 o : "Flash/activity card",
912 values: { a : "One color",
913 b : "Black-and-white",
923 label : "Primary support material",
924 values: { a : "Canvas",
926 c : "Cardboard/illustration board",
932 m : "Mixed collection",
945 label : "Secondary support material",
946 values: { a : "Canvas",
948 c : "Cardboard/illustration board",
954 m : "Mixed collection",
968 label : "Projected Graphic",
973 values: { c : "Film cartridge",
975 f : "Film filmstrip type",
976 o : "Filmstrip roll",
985 values: { b : "Black-and-white",
989 n : "Not applicable",
996 label : "Base of emulsion",
997 values: { d : "Glass",
1000 k : "Film base, other than safety film",
1001 m : "Mixed collection",
1009 label : "Sound on medium or separate",
1010 values: { a : "Sound on medium",
1011 b : "Sound separate from medium",
1017 label : "Medium for sound",
1018 values: { a : "Optical sound track on motion picture film",
1019 b : "Magnetic sound track on motion picture film",
1020 c : "Magnetic audio tape in cartridge",
1022 e : "Magnetic audio tape on reel",
1023 f : "Magnetic audio tape in cassette",
1024 g : "Optical and magnetic sound track on film",
1033 label : "Dimensions",
1034 values: { a : "Standard 8 mm.",
1035 b : "Super 8 mm./single 8 mm.",
1041 j : "2 x 2 in. (5 x 5 cm.)",
1042 k : "2 1/4 x 2 1/4 in. (6 x 6 cm.)",
1043 s : "4 x 5 in. (10 x 13 cm.)",
1044 t : "5 x 7 in. (13 x 18 cm.)",
1045 v : "8 x 10 in. (21 x 26 cm.)",
1046 w : "9 x 9 in. (23 x 23 cm.)",
1047 x : "10 x 10 in. (26 x 26 cm.)",
1048 y : "7 x 7 in. (18 x 18 cm.)",
1055 label : "Secondary support material",
1056 values: { c : "Cardboard",
1060 j : "Metal and glass",
1061 k : "Synthetics and glass",
1062 m : "Mixed collection",
1070 label : "Remote-sensing Image",
1075 values: { u : "Unspecified" }
1079 label : "Altitude of sensor",
1080 values: { a : "Surface",
1083 n : "Not applicable",
1090 label : "Attitude of sensor",
1091 values: { a : "Low oblique",
1094 n : "Not applicable",
1100 label : "Cloud cover",
1101 values: { 0 : "0-09%",
1111 n : "Not applicable",
1117 label : "Platform construction type",
1118 values: { a : "Balloon",
1119 b : "Aircraft-low altitude",
1120 c : "Aircraft-medium altitude",
1121 d : "Aircraft-high altitude",
1122 e : "Manned spacecraft",
1123 f : "Unmanned spacecraft",
1124 g : "Land-based remote-sensing device",
1125 h : "Water surface-based remote-sensing device",
1126 i : "Submersible remote-sensing device",
1127 n : "Not applicable",
1134 label : "Platform use category",
1135 values: { a : "Meteorological",
1136 b : "Surface observing",
1137 c : "Space observing",
1139 n : "Not applicable",
1146 label : "Sensor type",
1147 values: { a : "Active",
1155 label : "Data type",
1156 values: { nn : "Not applicable",
1159 aa : "Visible light",
1160 da : "Near infrared",
1161 db : "Middle infrared",
1162 dc : "Far infrared",
1163 dd : "Thermal infrared",
1164 de : "Shortwave infrared (SWIR)",
1165 df : "Reflective infrared",
1166 dv : "Combinations",
1167 dz : "Other infrared data",
1168 ga : "Sidelooking airborne radar (SLAR)",
1169 gb : "Synthetic aperture radar (SAR-single frequency)",
1170 gc : "SAR-multi-frequency (multichannel)",
1171 gd : "SAR-like polarization",
1172 ge : "SAR-cross polarization",
1173 gf : "Infometric SAR",
1174 gg : "Polarmetric SAR",
1175 gu : "Passive microwave mapping",
1176 gz : "Other microwave data",
1177 ja : "Far ultraviolet",
1178 jb : "Middle ultraviolet",
1179 jc : "Near ultraviolet",
1180 jv : "Ultraviolet combinations",
1181 jz : "Other ultraviolet data",
1182 ma : "Multi-spectral, multidata",
1183 mb : "Multi-temporal",
1184 mm : "Combination of various data types",
1185 pa : "Sonar-water depth",
1186 pb : "Sonar-bottom topography images, sidescan",
1187 pc : "Sonar-bottom topography, near-surface",
1188 pd : "Sonar-bottom topography, near-bottom",
1189 pe : "Seismic surveys",
1190 pz : "Other acoustical data",
1191 ra : "Gravity anomales (general)",
1195 sa : "Magnetic field",
1196 ta : "Radiometric surveys"
1202 label : "Sound Recording",
1207 values: { d : "Sound disc",
1209 g : "Sound cartridge",
1210 i : "Sound-track film",
1212 s : "Sound cassette",
1213 t : "Sound-tape reel",
1215 w : "Wire recording",
1222 values: { a : "16 rpm",
1242 label : "Configuration of playback channels",
1243 values: { m : "Monaural",
1252 label : "Groove width or pitch",
1253 values: { m : "Microgroove/fine",
1254 n : "Not applicable",
1255 s : "Coarse/standard",
1262 label : "Dimensions",
1263 values: { a : "3 in.",
1269 g : "4 3/4 in. (12 cm.)",
1270 j : "3 7/8 x 2 1/2 in.",
1271 o : "5 1/4 x 3 7/8 in.",
1272 s : "2 3/4 x 4 in.",
1273 n : "Not applicable",
1280 label : "Tape width",
1281 values: { l : "1/8 in.",
1283 n : "Not applicable",
1292 label : "Tape configuration ",
1293 values: { a : "Full (1) track",
1294 b : "Half (2) track",
1295 c : "Quarter (4) track",
1299 n : "Not applicable",
1306 label : "Special playback",
1307 values: { a : "NAB standard",
1308 b : "CCIR standard",
1309 c : "Dolby-B encoded, standard Dolby",
1311 e : "Digital recording",
1312 f : "Dolby-A encoded",
1313 g : "Dolby-C encoded",
1315 n : "Not applicable",
1322 label : "Capture and storage",
1323 values: { a : "Acoustical capture, direct storage",
1324 b : "Direct storage, not acoustical",
1325 d : "Digital storage",
1326 e : "Analog electrical storage",
1334 label : "Tactile Material",
1339 values: { a : "Moon",
1342 d : "Tactile, with no writing system",
1349 label : "Class of braille writing",
1350 values: { a : "Literary braille",
1351 b : "Format code braille",
1352 c : "Mathematics and scientific braille",
1353 d : "Computer braille",
1354 e : "Music braille",
1355 m : "Multiple braille types",
1356 n : "Not applicable",
1363 label : "Level of contraction",
1364 values: { a : "Uncontracted",
1367 n : "Not applicable",
1374 label : "Braille music format",
1375 values: { a : "Bar over bar",
1377 c : "Line over line",
1380 f : "Section by section",
1383 i : "Spanner short form scoring",
1384 j : "Short form scoring",
1386 l : "Vertical score",
1387 n : "Not applicable",
1394 label : "Special physical characteristics",
1395 values: { a : "Print/braille",
1396 b : "Jumbo or enlarged braille",
1397 n : "Not applicable",
1405 label : "Videorecording",
1410 values: { c : "Videocartridge",
1412 f : "Videocassette",
1421 values: { b : "Black-and-white",
1424 n : "Not applicable",
1431 label : "Videorecording format",
1432 values: { a : "Beta",
1454 label : "Sound on medium or separate",
1455 values: { a : "Sound on medium",
1456 b : "Sound separate from medium",
1462 label : "Medium for sound",
1463 values: { a : "Optical sound track on motion picture film",
1464 b : "Magnetic sound track on motion picture film",
1465 c : "Magnetic audio tape in cartridge",
1467 e : "Magnetic audio tape on reel",
1468 f : "Magnetic audio tape in cassette",
1469 g : "Optical and magnetic sound track on motion picture film",
1478 label : "Dimensions",
1479 values: { a : "8 mm.",
1491 label : "Configuration of playback channel",
1492 values: { k : "Mixed",
1494 n : "Not applicable",
1495 q : "Multichannel, surround or quadraphonic",
1505 MARC.Record.prototype.recordType = function () {
1507 var _t = this.leader.substr(MARC.Record._ff_pos.Type.ldr.BKS.start, MARC.Record._ff_pos.Type.ldr.BKS.len);
1508 var _b = this.leader.substr(MARC.Record._ff_pos.BLvl.ldr.BKS.start, MARC.Record._ff_pos.BLvl.ldr.BKS.len);
1510 for (var t in MARC.Record._recType) {
1511 if (_t.match(MARC.Record._recType[t].Type) && _b.match(MARC.Record._recType[t].BLvl)) {
1515 return 'BKS'; // default
1518 MARC.Record.prototype.videorecordingFormatName = function () {
1519 var _7 = this.field('007').data;
1521 if (_7 && _7.match(/^v/)) {
1522 var _v_e = _7.substr(
1523 MARC.Record._physical_characteristics.v.subfields.e.start,
1524 MARC.Record._physical_characteristics.v.subfields.e.len
1527 return MARC.Record._physical_characteristics.v.subfields.e.values[ _v_e ];
1533 MARC.Record.prototype.videorecordingFormatCode = function () {
1534 var _7 = this.field('007').data;
1536 if (_7 && _7.match(/^v/)) {
1538 MARC.Record._physical_characteristics.v.subfields.e.start,
1539 MARC.Record._physical_characteristics.v.subfields.e.len
1546 MARC.Record.prototype.extractFixedField = function (field, dflt) {
1547 if (!MARC.Record._ff_pos[field]) return null;
1549 var _l = this.leader;
1550 var _8 = this.field('008').data;
1551 var _6 = this.field('006').data;
1553 var rtype = this.recordType();
1557 if (MARC.Record._ff_pos[field].ldr && _l) {
1558 if (MARC.Record._ff_pos[field].ldr[rtype]) {
1560 MARC.Record._ff_pos[field].ldr[rtype].start,
1561 MARC.Record._ff_pos[field].ldr[rtype].len
1564 } else if (MARC.Record._ff_pos[field]._8 && _8) {
1565 if (MARC.Record._ff_pos[field]._8[rtype]) {
1567 MARC.Record._ff_pos[field]._8[rtype].start,
1568 MARC.Record._ff_pos[field]._8[rtype].len
1573 if (!val && MARC.Record._ff_pos[field]._6 && _6) {
1574 if (MARC.Record._ff_pos[field]._6[rtype]) {
1576 MARC.Record._ff_pos[field]._6[rtype].start,
1577 MARC.Record._ff_pos[field]._6[rtype].len
1586 if (MARC.Record._ff_pos[field].ldr && MARC.Record._ff_pos[field].ldr[rtype]) {
1587 d = MARC.Record._ff_pos[field].ldr[rtype].def;
1591 if (MARC.Record._ff_pos[field]._8 && MARC.Record._ff_pos[field]._8[rtype]) {
1592 d = MARC.Record._ff_pos[field]._8[rtype].def;
1596 if (!val && MARC.Record._ff_pos[field]._6 && MARC.Record._ff_pos[field]._6[rtype]) {
1597 d = MARC.Record._ff_pos[field]._6[rtype].def;
1602 for (var j = 0; j < MARC.Record._ff_pos[field][p][rtype].len; j++) {
1613 MARC.Record.prototype.setFixedField = function (field, value) {
1614 if (!MARC.Record._ff_pos[field]) return null;
1616 var _l = this.leader;
1617 var _8 = this.field('008').data;
1618 var _6 = this.field('006').data;
1620 var rtype = this.recordType();
1624 if (MARC.Record._ff_pos[field].ldr && _l) {
1625 if (MARC.Record._ff_pos[field].ldr[rtype]) { // It's in the leader
1626 val = value.substr(0, MARC.Record._ff_pos[field].ldr[rtype].len);
1628 _l.substring(0, MARC.Record._ff_pos[field].ldr[rtype].start) +
1631 MARC.Record._ff_pos[field].ldr[rtype].start
1632 + MARC.Record._ff_pos[field].ldr[rtype].len
1635 } else if (MARC.Record._ff_pos[field]._8 && _8) {
1636 if (MARC.Record._ff_pos[field]._8[rtype]) { // Nope, it's in the 008
1637 val = value.substr(0, MARC.Record._ff_pos[field]._8[rtype].len);
1638 this.field('008').update(
1639 _8.substring(0, MARC.Record._ff_pos[field]._8[rtype].start) +
1642 MARC.Record._ff_pos[field]._8[rtype].start
1643 + MARC.Record._ff_pos[field]._8[rtype].len
1649 if (!val && MARC.Record._ff_pos[field]._6 && _6) {
1650 if (MARC.Record._ff_pos[field]._6[rtype]) { // ok, maybe the 006?
1651 val = value.substr(0, MARC.Record._ff_pos[field]._6[rtype].len);
1652 this.field('006').update(
1653 _6.substring(0, MARC.Record._ff_pos[field]._6[rtype].start) +
1656 MARC.Record._ff_pos[field]._6[rtype].start
1657 + MARC.Record._ff_pos[field]._6[rtype].len