Dear all,

I was wondering if there is anyone from the MARC::Record team on this list who possibly could give some insight in the following matter.

We are using MARC::Record to manipulate MARC records in Emilda [1] and we have been running into some unexpected problems. The actual manipulation code has not been altered lately, but people were reporting that MARC manipulation was behaving weird when testing Emilda. As such we had to look into the matter, and found out that there indeed was something weird going on, at least with some certain setups.

I managed to reproduce the error (I'm not quite sure if it is because of MARC::Record, but since it is MARC::Record that reports the error, I'm assuming it is) and added some debugging information to the code to see what is happening.

Here is a snipplet from the code, that displays the debugging information:

<<<<

print "RAW: ".$self->{'MARC_blob'}."\n";
$record = MARC::Record::new_from_usmarc($self->{'MARC_blob'}) or die $!;
print "RES: ".$record->as_formatted()."\n";
print "WARN: ".join("\n", $record->warnings())."\n";

>>>>

and what this outputs is:

<<<<

RAW: 02599nam 2200025 a 45040010011000000030010000110050017000210080039000380200023000770350015001000350019001150350033001340400007001670420012001740840021001860840018002071000027002252450038002522600053002903000041003435990010003846530016003946530032004106530020004426530016004626530019004786530020004978410048005178410048005658410048006138410048006618410048007098410047007578410049008048410047008538410049009008410047009498410047009968410048010438410049010918410047011408410049011878410049012368410048012858410047013338410049013808520011014298520025014408520017014658520013014828520013014958520017015088520011015258520029015368520022015658520011015878520017015988520028016158520026016438520024016698520025016938520021017188520038017398520011017778520018017889760023018060000000286ESBO_STAD20031030130634.0990309s1999 sw j 001 0 swe a9129646103c183:00 99129646103 5Boa(Bo)368396 5Lahva(MMLahv)19990000025970 aNB 9NB9SEE 5SEEaUgg2kssb/6 aUgg,u2kssb/61 aJansson, Hasse,d1949-00aTitta på fåglar! /cHasse Jansson aStockholm :bRabén & Sjögren,c1999 ;e(Danmark) a61, [2] s. :bfärgill. ;c18 x 22 cm aLi: S 5SbiaFåglar 5LahvaFåglaraArtbestämning 5LaaFaktaböcker 5JonaFåglar 5LaaBarnböcker 5JonaBarnböcker 5Gpaxab0201080u 0 4000uu |000000e1 5Liaxab0201080u 0 4000uu |000000e1 5Laaxab0201080u 0 4000uu |000000e1 5Umaxab0201080u 0 4000uu |000000e1 5Kdaxab0201080u 0 4000uu |000000e1 5Moaub030828||0000|||||001||||||000000e1 5Jonaxab0201080u 0 4000uu |000000e1 5Laxab0201080u 0 4000uu |000000e1 5Hsdaxab0201080u 0 4000uu |000000e1 5Oaxab0201080u 0 4000uu |000000e1 5Qaxab0201080u 0 4000uu |000000e1 5Skaxab0201080u 0 4000uu |000000e1 5Sbiaxab0201080u 0 4000uu |000000e1 5Boaxb0201070u 0 4000uu 021001e1 5SEEaxab0201080u 0 4000uu |000000e1 5Hlsaxab0201080u 0 4000uu |000000e1 5NBaxab0201080u 0 4000uu |000000e1 5Saxab0201080u 0 4000uu |000000e1 5Lahvaub030616||0000|||||001||||||000000e1 5MobMo 5LahvbLahvhUggxSus 5LabLahuUgg 5SEEbSEE 5HsdbHsd 5GpbGphuUgg 5SkbSk 5HlsbHlshUgg,ujJansson 5LibLicCNBhug,u 5UmbUm 5KdbKdhUg,u 5JonbJonhUg BARNjJANS 5LbLc0200h299/j102 5ObOhuUggjJansson 5QbQclärahUg,u Jan 5SbShSv99j2878 5NBbNBcNB99:12hgåvajKU, 990602 5BobBo 5SbibSbijRef 2aUgg,ubFåglar Aves
RES: LDR 02599nam 2200025 a 4504
WARN: No directory found in record 1


>>>>

"RAW" is the original MARC record to be manipulated and thus imported using new_from_usmarc(), but this seems to fail for some reason that is not apparent, at least to me.

Any help on the matter is deeply appreciated as I really cannot make anything of this, as it was working on my setup, but not on various other peoples setups.

Regards,

--
[1] http://emilda.org

--
Christoffer Landtman
Oy Realnode Ab
Partner, Sales
+358 (0)41 510 1073
[EMAIL PROTECTED]
www.realnode.fi

Reply via email to