[Isis-users] linking in iaH when data contains "and"

Piet De Keyser piet.dekeyser at ucll.be
Tue Apr 28 23:02:54 CEST 2020


Dear colleagues,

A link in iaH can be a good idea to allow users to retrieve more of same. I wanted to put a link on the publisher’s name (which is in v264^b in my case). Normally my link would look like this:

'<a target="_self"
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=en&base=CATALOG&nextAction=lnk&exprSearch=', mpu, v264^b,mpl,'&indexSearch=PU">',v264^b,'</a>',

but this will give you problems with publisher’s names in which e.g. the word “and” appears (e.g. Tailor and Francis). These data can only be retrieved successfully if they are put between quotation marks: “Tailor and Francis” (because “and” is a Boolean operator). Now new problem: putting extra quotation marks in the link messes it up, because it already contains nested quotations marks. My sollution is  to put the field between HTML escape codes (in this case "). Now the link becomes:

'<a target="_self"
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=en&base=CATALOG&nextAction=lnk&exprSearch=', mpu,"""v264^b""",mpl,'&indexSearch=PU">',v264^b,'</a>',

Still one unsolved problem: the downloaded data is not: “Tailor and Francis”, but “Tailor & Francis”. My sollution doesn’t work with “&” in the data, but maybe not everything is soluble…

Piet de Keyser
Belgium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20200428/805e3314/attachment.html>


More information about the isis-users mailing list