[OPEN-ILS-DEV] direct_ingest error

Bill Russell brussell.ls at gmail.com
Sun Jun 22 15:20:43 EDT 2008


Thanks for the info.  I wonder if the might be escaping, but figured
what the ... :-)

Don't do javascript or python, so I not not familiar with json.  Might
be reason enough to try cl-json or finally get around to python.

Good luck bug hunting.
bill





On Sun, Jun 22, 2008 at 9:55 AM, Mike Rylander <mrylander at gmail.com> wrote:
> On Sun, Jun 22, 2008 at 8:07 AM, Bill Russell <brussell.ls at gmail.com> wrote:
> [snip]
>>
>> <datafield tag=\"245\" ind1=\"1\" ind2=\"2\">
>> <subfield code=\"a\">A guide to the electrical contractor's exam /</subfield>
>> <subfield code=\"c\">Alan Stanfield.</subfield>
>> </datafield>
>>
>> I suspect it should be something like:
>>
>> <datafield tag="245" ind1="1" ind2="2">
>> <subfield code="a">A guide to the electrical contractor's exam /</subfield>
>> <subfield code="c">Alan Stanfield.</subfield>
>> </datafield>
>>
>
> The escaped quotes ( \" ) are because the XML is passed inside a JSON
> string literal, so the " marks must be escaped by adding the slash
> before them.  In other words, the <record ... </record> section is not
> yet XML, just a string of text.  Once the JSON that is carrying that
> text is deserialized the escaping is removed, then the XML string can
> be pulled out and deserialized as well.  To simulate that by  hand
> just remove the \ before " and \ characters.
>
> --
> Mike Rylander
>  | VP, Research and Design
>  | Equinox Software, Inc. / The Evergreen Experts
>  | phone: 1-877-OPEN-ILS (673-6457)
>  | email: miker at esilibrary.com
>  | web: http://www.esilibrary.com
>


More information about the Open-ils-dev mailing list