Commit 927acdf5 authored by David Maus's avatar David Maus
Browse files

Use addSubfield() to add subfields

Fix #6
parent e1f786ca
......@@ -83,7 +83,7 @@ class AuthorityRecord extends Record
if ($ppnSubfield) {
$ppnSubfield->setValue($ppn);
} else {
$ppnField->append(new Subfield('0', $ppn));
$ppnField->addSubfield(new Subfield('0', $ppn));
}
} else {
$this->append(new Field('003@', 0, array(new Subfield('0', $ppn))));
......
......@@ -120,7 +120,7 @@ class CopyRecord extends Record
if ($epnSubfield) {
$epnSubfield->setValue($epn);
} else {
$epnField->append(new Subfield('0', $epn));
$epnField->addSubfield(new Subfield('0', $epn));
}
} else {
$this->append(new Field('203@', $this->getItemNumber(), array(new Subfield('0', $epn))));
......
......@@ -183,7 +183,7 @@ class TitleRecord extends NestedRecord
if ($ppnSubfield) {
$ppnSubfield->setValue($ppn);
} else {
$ppnField->append(new Subfield('0', $ppn));
$ppnField->addSubfield(new Subfield('0', $ppn));
}
} else {
$this->append(new Field('003@', 0, array(new Subfield('0', $ppn))));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment