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


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) ---



Code for pretty printing MARC Holdings data

2006-09-25 Thread Mark Jordan

Hi,

Anyone got code for pretty printing MFHD (MRAC Format for Holdings) 
data? Basically, we have reams of 853 and 863 fields that we'd like to 
transform into decent looking human readable summaries. Before 
reinventing the wheel, I thought I'd ask.


Maybe a good Hackfest project?

TIA,

Mark

--
Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Phone (604) 291 5753 / Fax (604) 291 3023
[EMAIL PROTECTED] / http://www.sfu.ca/~mjordan/