| Server IP : 109.234.162.214 / Your IP : 216.73.216.112 Web Server : Apache System : Linux servd162214.srv.odns.fr 4.18.0-372.26.1.lve.1.el8.x86_64 #1 SMP Fri Sep 16 14:08:19 EDT 2022 x86_64 User : carpe ( 1178) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/php51/usr/share/pear/test/File_MARC/tests/ |
Upload File : |
--TEST--
marc_record_001: create a MARC record from scratch
--FILE--
<?php
$dir = dirname(__FILE__);
require 'File/MARC.php';
$marc = new File_MARC_Record();
$marc->appendField(new File_MARC_Data_Field('245', array(
new File_MARC_Subfield('a', 'Main title: '),
new File_MARC_Subfield('b', 'subtitle'),
new File_MARC_Subfield('c', 'author')
), null, null
));
print $marc;
?>
--EXPECT--
LDR
245 _aMain title:
_bsubtitle
_cauthor