--TEST-- marc_016: generate a single collection of MARCXML records from a MARC record --SKIPIF-- --FILE-- element $records->toXMLHeader(); // Iterate through the retrieved records while ($record = $records->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, false); } // Add the closing element and dump the XMLWriter contents print $records->toXMLFooter(); --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 01293cjm 2200289 a 4500 001878039 20050110174900.0 sd fungnn|||e| 940202r19931981nyujzn i d 7464573372 JK 57337 Red Baron (OCoLC)29737267 SVP SVP LGG Desmond, Paul, 1924- Paul Desmond & the Modern Jazz Quartet [sound recording] New York, N.Y. : Red Baron : Manufactured by Sony Music Entertainment, p1993. 1 sound disc (39 min.) : digital ; 4 3/4 in. Paul Desmond, alto saxophone; Modern Jazz Quartet: John Lewis, piano; Milt Jackson, vibraphone; Percy Heath, bass; Connie Kay, drums. All arrangements by John Lewis. Recorded live on December 25, 1971 at Town Hall, NYC. Originally released in 1981 by Finesse as LP FW 27487. Program notes by Irving Townsend, June 1981, on container insert. Greensleeves -- You go to my head -- Blue dove -- Jesus Christ Superstar -- Here's that rainy day -- East of the sun -- Bags' new groove. Jazz 1971-1980. Lewis, John, 1920- Modern Jazz Quartet. Paul Desmond and the Modern Jazz Quartet. 01829cjm 2200385 a 4500 001964482 20060626132700.0 sd fzngnn|m|e| 871211p19871957nyujzn d 4228332902 833 290-2 Verve 19571027 6299 D56 196112-- 3804 N4 19571019 4104 C6 197107-- 6299 V7 (OCoLC)17222092 CPL CPL OCL LGG pz01 ka01 sd01 pd01 Modern Jazz Quartet. prf The Modern Jazz Quartet plus [sound recording]. [New York] : Verve, p1987. 1 sound disc : digital ; 4 3/4 in. Compact jazz Modern Jazz Quartet (principally) ; Milt Jackson, vibraphone (2nd and 8th works) ; Oscar Peterson, piano (2nd and 8th works) ; Ray Brown, bass (2nd and 8th works) ; Ed Thigpen (2nd work), Louis Hayes (8th work), drums. Recorded live, Oct. 27, 1957, at the Donaueschingen Jazz Festival (1st, 5th, 7th, and 10th works); Dec. 1961, in New York (2nd work); live, Oct. 19, 1957, at the Opera House, Chicago (3rd, 4th, 6th, and 9th works); July 1971, in Villingen, Germany (8th work). Compact disc. Analog recording. The golden striker (4:08) -- On Green Dolphin Street (7:28) -- D & E (4:55) -- I'll remember April (4:51) -- Cortège (7:15) -- Now's the time (4:43) -- J.B. blues (5:09) -- Reunion blues (6:35) -- 'Round midnight (3:56) -- Three windows (7:20). Jazz. Jackson, Milt. prf Peterson, Oscar, 1925- prf Brown, Ray, 1926-2002. prf Thigpen, Ed. prf Hayes, Louis, 1937- prf MUSIC Audio-Visual CD 1131 Marvin Duchow Music Audio-Visual