--TEST--
marc_019: generate a MARCXML record not in a collection element
--SKIPIF--
--FILE--
next();
// Change each 852 $c to "Audio-Visual"
$holdings = $record->getFields('852');
foreach ($holdings as $holding) {
// Get the $c subfields from this field
$formats = $holding->getSubfields('c');
foreach ($formats as $format) {
if ($format->getData('AV')) {
$format->setData('Audio-Visual');
}
}
}
// Generate the XML output for this record
print($record->toXML('UTF-8', true, true));
--EXPECT--
01145ncm 2200277 i 4500
000073594
AAJ5802
20030415102100.0
801107s1977 nyujza
77771106
(CaOTUIC)15460184
AAJ5802
LC
M1366
.M62
M1527.2
The Modern Jazz Quartet :
The legendary profile. --
New York :
M.J.Q. Music,
c1977.
score (72 p.) ;
31 cm.
For piano, vibraphone, drums, and double bass.
Lewis, J. Django.--Lewis, J. Plastic dreams (music from the film Kemek).--Lewis, J. Dancing (music from the film Kemek).--Lewis, J. Blues in A minor.--Lewis, J. Blues in B♭.--Lewis, J. Precious joy.--Jackson, M. The martyr.--Jackson, M. The legendary profile.
Jazz.
Motion picture music
Excerpts
Scores.
Lewis, John,
1920-
Selections.
1977.
Jackson, Milt.
Martyrs.
1977.
Jackson, Milt.
Legendary profile.
1977.
The legendary profile.
MUSIC
Audio-Visual
folio
M1366
M62
1
Marvin Duchow Music