Comment 7 for bug 1923225

Revision history for this message
Galen Charlton (gmc) wrote : Re: ISBN display includes code in traditional catalogue

By the way, I don't think the patch is remotely perfect; for example, subject search links that contain HTML tags would be broken (which we might not care much about), but also ones with ampersands (which we might care about).

For reference, here is the test record I've been using:

=LDR 00574nam a2200205 a 4500
=001 2
=003 CONS
=005 19970807205236.0
=008 970701s1978\fr\u000\0\fre\u
=020 \\$a2130354467 <script>alert('ISBN!')</script>
=050 00$aML1263$b.F47
=100 1\$aFerchault, Guy <script>alert('author!')</script>
=245 03$aLe concerto <script>alert('title!')</script> and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff and stuff <script>alert('extended title!')</script> /$cGuy Ferchault.
=250 \\$a1st ed. <script>alert('edition!')</script>
=260 \\$aParis :$bPresses universitaires de France <script>alert('publisher!')</script>,$c1978.
=300 \\$a127 p. :$bmusique
=490 \\$aQue sais-je? <script>alert('series!')</script>;$v1717.
=500 \\$aVery scary <script>alert('note!')</script>
=504 \\$aBibliogr.
=650 \6$aConcerto <script>alert('subject!')</script>$xFrance <script>alert('subdivision!')</script>
=650 \6$aStuff & nonsense
=856 41$uhttps://www.evergreen-ils.org/?arg1=foo&arg2=bar$yEvergreen <script>alert('URL label!')</script>
=901 \\$a2$bAUTOGEN$c2$tbiblio