Re: MARC::Charset and transcoding of MARC::Record objects

2006-09-25 Thread bargioni


On 25/set/06, at 12:38, Edward Summers wrote:

How would you guys do to transcode a whole MARC record, contained  
in a MARC::Record object, from MARC8 to UTF8?


I'd probably extend marc8_to_utf8() in MARC::Charset so that it not  
only transcoded strings, but records as well. The function would  
essentially just iterate through a record transcoding each field/ 
subfield and building up a new record which it would return.


I consider it a very good and useful idea.
Thanks for your work.
Stefano
--
Dott. Stefano Bargioni
Pontificia Universita' della Santa Croce - Roma
Vicedirettore della Biblioteca

--- "Non refert quam multos habeas libros, sed bonos" (Seneca) ---



Re: MARC::Charset and transcoding of MARC::Record objects

2006-09-25 Thread Edward Summers

On Sep 22, 2006, at 6:06 AM, Leif Andersson wrote:
How would you guys do to transcode a whole MARC record, contained  
in a MARC::Record object, from MARC8 to UTF8?


I'd probably extend marc8_to_utf8() in MARC::Charset so that it not  
only transcoded strings, but records as well. The function would  
essentially just iterate through a record transcoding each field/ 
subfield and building up a new record which it would return. If you  
do happen to do that please send me a patch :-)


I seem to recall someone on this list mentioning the path MARC  
Record (MARC8) -> MARCXML (UTF8) -> MARC Record (UTF8)
This trip involves, I'd guess, MARC::File::XML in addition to  
MARC::Charset


You could do that yeah...although it would be doing lots of  
unnecessary xml stuff and disk IO.


//Ed