Skip to content
Snippets Groups Projects
Commit 44366e6c authored by David Maus's avatar David Maus
Browse files

Fix call to undefined method Field::append()

parent a00e195d
Branches php5
No related tags found
No related merge requests found
......@@ -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))));
......
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