[OPEN-ILS-DEV] problems running the import demo on my own data

Dan Scott denials at gmail.com
Mon Jan 19 16:01:21 EST 2009


See the information at
http://open-ils.org/dokuwiki/doku.php?id=evergreen-admin:importing:bibrecords#converting_marc_records_to_evergreen_bre_json_format
that addresses exactly this problem (well, recognizes the problem, but
doesn't offer a straightforward fix).

What tool did you use to convert the records to MARCXML format?

Dan

2009/1/19 John Fink <john.fink at gmail.com>:
> Hey folks,
>
> I'm trying to run through the import demo stuff again, only this time using
> my own data instead of the data that comes in the tarball.  The first step,
> marc2bre.pl, fails with no errors and no output.  Poking in the xml files
> for both the demo data and my own, they look pretty different.  Here's the
> beginning of the demo data:
>
>>
>   <datafield tag="035" ind1=" " ind2=" ">
>     <subfield code="a">(Sirsi) a778670</subfield>
>   </datafield>
>   <datafield tag="100" ind1="1" ind2=" ">
>     <subfield code="a">Ontario.</subfield>
>     <subfield code=" ">Écoles secondaires publiques de langue
> française</subfiel
> d>
>
> And here's the beginning of mine:
>
> <?xml version="1.0" encoding="UTF-8" ?><marc:collection
> xmlns:marc="http://www.l
> oc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:sc
> hemaLocation="http://www.loc.gov/MARC21/slim
> http://www.loc.gov/standards/marcxm
> l/schema/MARC21slim.xsd">
> <marc:record><marc:leader>00937nam a2200289 a 4500</marc:leader>
> <marc:controlfield tag="001">1</marc:controlfield>
> <marc:controlfield
> tag="005">19970717144400.0</marc:controlfield><marc:controlfi
> eld tag="008">800623s1979    mau   a     b 00110 eng
> </marc:controlfield><marc:
> datafield tag="010" ind1=" " ind2=" "><marc:subfield code="a">   79004570
> </marc
> :subfield></marc:datafield><marc:datafield tag="020" ind1=" " ind2="
> "><marc:sub
> field code="a">0805792643</marc:subfield></marc:datafield><marc:datafield
> tag="0
> 35" ind1=" " ind2=" "><marc:subfield
> code="a">(CaOTULAS)12450001.</marc:subfield
>></marc:datafield><marc:datafield tag="040" ind1=" " ind2=" "><marc:subfield
>> cod
> e="a">LC</marc:subfield></marc:datafield><marc:datafield tag="050" ind1=" "
> ind2
>
> (etc etc etc)
>
> It looks like my own marc data is properly formed XML, so I'm not sure why
> marc2bre is choking on it.  Although the demo data does look a *lot*
> different, doesn't it?  Am I missing something stupendously obvious?
>
> jf
>
>
> --
> http://libgrunt.blogspot.com -- library culture and technology.
>



-- 
Dan Scott
Laurentian University


More information about the Open-ils-dev mailing list