/opt/alt/php74/usr/share/pear/test/File_MARC/tests
--TEST-- marc_007: Use key=>value iteration for tags and codes --SKIPIF-- <?php include('tests/skipif.inc'); ?> --FILE-- <?php $dir = dirname(__FILE__); require __DIR__ . '/bootstrap.php'; $marc_file = new File_MARC($dir . '/' . 'example.mrc'); if ($marc_record = $marc_file->next()) { foreach ($marc_record->getFields() as $tag=>$value) { print "$tag: "; if ($value instanceof File_MARC_Control_Field) { print $value->getData(); } else { foreach ($value->getSubfields() as $code=>$subdata) { print "_$code"; } } print "\n"; } } ?> --EXPECT-- 001: 0000000044 003: EMILDA 008: 980120s1998 fi j 000 0 swe 020: _a_c 035: _9 040: _a 042: _9_9 084: _a_2 084: _5_a_2 084: _5_a_2 084: _5_a_2 100: _a_d 245: _a_c 250: _a 260: _a_b_c_e_f 300: _a_b_c 440: _a_x 500: _a 599: _a 740: _a 775: _z_w_9 841: _5_a_b_e 841: _5_a_b_e 841: _5_a_b_e 841: _5_a_b_e 841: _5_a_b_e 841: _5_a_b_e 852: _5_b_c_h_j 852: _5_b_c_h 852: _5_b 852: _5_b_j 852: _5_b_c_h_j 852: _5_b_h_j 900: _a_d_u_d 900: _a_d_u_d 900: _a_d_u_d 900: _a_d_u_d 900: _a_d_u_d 900: _a_d_u_d 976: _a_b 005: 20050204111518.0
.
Edit
..
Edit
bad_example.mrc
Edit
bad_example.xml
Edit
bigarchive.xml
Edit
camel.mrc
Edit
example.mrc
Edit
marc_001.phpt
Edit
marc_002.phpt
Edit
marc_003.phpt
Edit
marc_004.phpt
Edit
marc_005.phpt
Edit
marc_006.phpt
Edit
marc_007.phpt
Edit
marc_008.phpt
Edit
marc_009.phpt
Edit
marc_010.phpt
Edit
marc_011.phpt
Edit
marc_012.phpt
Edit
marc_013.phpt
Edit
marc_014.phpt
Edit
marc_015.phpt
Edit
marc_016.phpt
Edit
marc_017.phpt
Edit
marc_018.phpt
Edit
marc_019.phpt
Edit
marc_020.phpt
Edit
marc_021.phpt
Edit
marc_022.phpt
Edit
marc_023.phpt
Edit
marc_16783.phpt
Edit
marc_field_001.phpt
Edit
marc_field_002.phpt
Edit
marc_field_003.phpt
Edit
marc_field_004.phpt
Edit
marc_field_005.phpt
Edit
marc_field_21246.phpt
Edit
marc_lint_001.phpt
Edit
marc_lint_002.phpt
Edit
marc_lint_003.phpt
Edit
marc_lint_004.phpt
Edit
marc_lint_005.phpt
Edit
marc_record_001.phpt
Edit
marc_subfield_001.phpt
Edit
marc_subfield_002.phpt
Edit
marc_xml_001.phpt
Edit
marc_xml_002.phpt
Edit
marc_xml_003.phpt
Edit
marc_xml_004.phpt
Edit
marc_xml_005.phpt
Edit
marc_xml_006.phpt
Edit
marc_xml_007.phpt
Edit
marc_xml_008.phpt
Edit
marc_xml_009.phpt
Edit
marc_xml_16642.phpt
Edit
marc_xml_namespace.phpt
Edit
marc_xml_namespace_prefix.phpt
Edit
marc_xml_rsinger.phpt
Edit
music.mrc
Edit
music.xml
Edit
namespace.xml
Edit
onerecord.xml
Edit
sandburg.mrc
Edit
sandburg.xml
Edit
skipif.inc
Edit
xmlescape.mrc
Edit