[OPEN-ILS-GENERAL] HTML entities in MARC Record editor

Dan Scott dan at coffeecode.net
Tue Mar 20 17:23:28 EDT 2018


Hi Josh:

Quick question: XUL or web staff client? And version?

In theory, what you see is what you should get - MARC has no idea what HTML
entities are, so "&" in the editor should be displayed as "&"
(properly escaped, of course) in the catalogue.

If you see & in the biblio.record_entry.marc, it may be the result
of corrupted catalogue enrichment efforts (e.g. grabbing the summary for a
book from a website via a script with a bug), and thus should just be
corrected directly to "&". Unless it's a deliberately torturous book title
like "Escaping <HTML> &amp; other Secure Web Practices" :)

If & in the MARC shows up as just & in the 520 catalogue output, it
sounds like there might be a bug for us to track down...

Thanks,
Dan

On Tue, Mar 20, 2018 at 9:50 PM, Josh Stompro <stomproj at exchange.larl.org>
wrote:

> Hello, could someone give me some pointers in regards to html entities in
> marc data?  Sometimes I see & used in 490a data and displayed as &
> in the evergreen marc editor, and in the catalog it is displayed as &
> and not as &.
>
>
>
> We also see things like a 520 that contains & but it does get
> displayed as & in the catalog?
>
>
>
> And when I look at the biblio.record_entry.marc It looks like & in the
> editor gets encoded as &amp;, so is this a double encoding error?
> Should I ever see html entities when looking at marc data in the editor?
>
>
>
> If those should be cleaned up, anyone have any magic spells/queries for
> doing so?
>
> Thanks
>
> Josh
>
>
>
> Lake Agassiz Regional Library - Moorhead MN larl.org
>
> Josh Stompro     | Office 218.233.3757 EXT-139 <(218)%20233-3757>
>
> LARL IT Director | Cell 218.790.2110 <(218)%20790-2110>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180320/b168c954/attachment.html>


More information about the Open-ils-general mailing list