[Isis-users] links in iaH

Piet De Keyser piet.dekeyser at ucll.be
Wed Apr 5 09:27:32 CEST 2017


Hi Juan,


This is a very good idea too - although I was not successful yet in tying to implemend this with my links and repeatable fields. I'll keep on trying....


Piet

________________________________
Van: Juan Urzúa González <juan.urzua at pucv.cl>
Verzonden: dinsdag 4 april 2017 17:51
Aan: Piet De Keyser
CC: De Smet Egbert; isis-users at iccisis.org
Onderwerp: Re: [Isis-users] links in iaH

Piet:

I use this trick:

Before all occurrences, I establish 2 variables
e0:=nocc(v650)+nocc(v651)+nocc(v653)  (Totals the number of occurrences of all fields).
e1:=0  (Will count one by one each occurrence)

then, each field is displayed...
if p(v650) then....
   e1:=e1+1,   first thing in each occurrence is to increase the counter
   v650 (you put the field and everything you want)
   Now you have to ask if it is the last occurrence of the total
   if e1<e0 then ";" else "." fi

if p(v651) then....
   e1:=e1+1,   first thing in each occurrence is to increase the counter
   v651 (you put the field and everything you want)
   Now you have to ask if it is the last occurrence of the total
   if e1<e0 then ";" else "." fi

if p(v653) then....
   e1:=e1+1,   first thing in each occurrence is to increase the counter
   v653 (you put the field and everything you want)
   Now you have to ask if it is the last occurrence of the total
   if e1<e0 then ";" else "." fi

that's all... and it's works!!!
I hope it serves you and enjoy it!!!



[https://docs.google.com/uc?export=download&id=0B9BBgCzWdpMmeE81cmM5MjNESzg&revid=0B9BBgCzWdpMmSGVrNHNJNmExQnBJQiswZThzMXpSN3lWZG5JPQ]

2017-04-04 5:00 GMT-04:00 Piet De Keyser <piet.dekeyser at ucll.be<mailto:piet.dekeyser at ucll.be>>:
Egbert,

Yes, I tried many variations, but the  “+” sign gave me errors when used within the link anchor. The solution with iocc and nocc works perfectly. An extra complication here was that the content of three fields is displayed as one; so I had to add the extra “;” again after the last occurrence of the previous field content by means of the dummy fields.

Piet

Van: De Smet Egbert [mailto:egbert.desmet at uantwerpen.be<mailto:egbert.desmet at uantwerpen.be>]
Verzonden: dinsdag 4 april 2017 9:42
Aan: Piet De Keyser <piet.dekeyser at ucll.be<mailto:piet.dekeyser at ucll.be>>; isis-users at iccisis.org<mailto:isis-users at iccisis.org>
Onderwerp: RE: links in iaH

Piet,

the 'official' method to avoid a final interpunction is to use the '+' sign with a 'conditional' literal, i.e. the pipes. Therefore : v650+|; | . Did you try that (I didn't) and how does it come out ? It might be simpler.

Egbert de Smet
Universiteit Antwerpen
________________________________
From: isis-users [isis-users-bounces+egbert.desmet=ua.ac.be at iccisis.org<mailto:ua.ac.be at iccisis.org>] on behalf of Piet De Keyser [piet.dekeyser at ucll.be<mailto:piet.dekeyser at ucll.be>]
Sent: Monday, April 03, 2017 10:11 PM
To: isis-users at iccisis.org<mailto:isis-users at iccisis.org>
Subject: [Isis-users] links in iaH

Hi all,



I want to share this with you, because small things matter too.

If you build links in iaH it can be difficult to find a good layout. Suppose you want all of your keywords to be links, then it is not nice to have this:



        Keywords: xxx; yyy; zzz;



(where each of them is clickable as link) because they should not end with semi-colon.



You would want:



        Keywords: xxx; yyy; zzz



i.e. without the annoying semi-colon at the end.



It could even be more complicated if you have more than one field for keywords (e.g. topical, geographical, uncontrolled keywords) and you all want them listed as one field. This is my case: I have v650, v651 and v653 (without subfields). Hiere is my layout - and it does the trick:



if p(v650) then '<tr><td width="10%" valign="top"><font face=arial size=2 color="green"><b>Keywords</b></td><td><font face=arial size=2>',('<a target="_blank"
href="http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?
IsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=',s(mpu,v650,mpl),'&indexSearch=MA<http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?%0bIsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=%27,s%28mpu,v650,mpl%29,%27&indexSearch=MA>">',v650,'</a>',if  iocc<nocc(v650) then '; ' fi),,

"; "d651,

if p(v651) then
('<a target="_blank" href="http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?
IsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=',s(mpu,v651,mpl),'&indexSearch=MA<http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?%0bIsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=%27,s%28mpu,v651,mpl%29,%27&indexSearch=MA>">',v651,'</a>',if iocc<nocc(v651) then '; ' fi), fi,

"; "d653,

if p(v653) then
('<a target="_blank" href="http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?
IsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=',s(mpu,v653,mpl),'&indexSearch=MA<http://localhost:9090/cgi-bin/wxis.exe/iah/scripts/?%0bIsisScript=iah.xis&lang=du&base=CATALOG&nextAction=lnk&exprSearch=%27,s%28mpu,v653,mpl%29,%27&indexSearch=MA>">',v653,'</a>',if  iocc<nocc(v653) then '; ' fi), fi,



Piet de Keyser

UC Leuven, Belgium

_______________________________________________
isis-users mailing list
isis-users at iccisis.org<mailto:isis-users at iccisis.org>
To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users
Or contact Henk Rutten: hlrutten at xs4all.nl<mailto:hlrutten at xs4all.nl>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20170405/03a8447a/attachment.html>


More information about the isis-users mailing list