Commit 44366e6c authored by David Maus's avatar David Maus
Browse files

Fix call to undefined method Field::append()

parent a00e195d
...@@ -83,7 +83,7 @@ class AuthorityRecord extends Record ...@@ -83,7 +83,7 @@ class AuthorityRecord extends Record
if ($ppnSubfield) { if ($ppnSubfield) {
$ppnSubfield->setValue($ppn); $ppnSubfield->setValue($ppn);
} else { } else {
$ppnField->append(new Subfield('0', $ppn)); $ppnField->addSubfield(new Subfield('0', $ppn));
} }
} else { } else {
$this->append(new Field('003@', 0, array(new Subfield('0', $ppn)))); $this->append(new Field('003@', 0, array(new Subfield('0', $ppn))));
......
...@@ -120,7 +120,7 @@ class CopyRecord extends Record ...@@ -120,7 +120,7 @@ class CopyRecord extends Record
if ($epnSubfield) { if ($epnSubfield) {
$epnSubfield->setValue($epn); $epnSubfield->setValue($epn);
} else { } else {
$epnField->append(new Subfield('0', $epn)); $epnField->addSubfield(new Subfield('0', $epn));
} }
} else { } else {
$this->append(new Field('203@', $this->getItemNumber(), array(new Subfield('0', $epn)))); $this->append(new Field('203@', $this->getItemNumber(), array(new Subfield('0', $epn))));
......
...@@ -183,7 +183,7 @@ class TitleRecord extends NestedRecord ...@@ -183,7 +183,7 @@ class TitleRecord extends NestedRecord
if ($ppnSubfield) { if ($ppnSubfield) {
$ppnSubfield->setValue($ppn); $ppnSubfield->setValue($ppn);
} else { } else {
$ppnField->append(new Subfield('0', $ppn)); $ppnField->addSubfield(new Subfield('0', $ppn));
} }
} else { } else {
$this->append(new Field('003@', 0, array(new Subfield('0', $ppn)))); $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