[Isis-users] Fwd: Display format frbr

Francisco Tamor fttamor at yahoo.com
Sat May 9 09:12:34 CEST 2020


 Dear Colleagues,
Thank you very much for your help. Indeed the problem was the proper use of parenthesis in a repeatable field.
Below is the PFT with the corresponding result:
if p(v650) then '<tr><td width=20% valign=top align=right><font face=arial size=2 color="#000080"><b>Subjects :</b></td><td valign=top id="v650"><font face=arial size=2>',
(if npost(['theses'],'SU_'v650)=1 then v650 '<br>',  else v650 '<a href="/cgi-bin/ansi/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=en&base=THESES&nextAction=lnk&exprSearch=',s(mpu,v650,mpl),'&indexSearch=SU" target=new>', ' (', f(npost(['theses'],'SU_'v650),1,0),' similar terms)</a><br>',/fi),
 '</td></tr>',fi,


Subjects :Y-chromosome (19 similar terms)
                  population genetics (52 similar terms)
                  Mediterranean populations

Regards and more power,
Francisco
    On Sunday, 19 April 2020, 4:34:30 pm SGT, Piet De Keyser <piet.dekeyser at ucll.be> wrote:  
 
 #yiv9866487463 #yiv9866487463 -- _filtered {} _filtered {} _filtered {}#yiv9866487463 #yiv9866487463 p.yiv9866487463MsoNormal, #yiv9866487463 li.yiv9866487463MsoNormal, #yiv9866487463 div.yiv9866487463MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv9866487463 a:link, #yiv9866487463 span.yiv9866487463MsoHyperlink {color:blue;text-decoration:underline;}#yiv9866487463 a:visited, #yiv9866487463 span.yiv9866487463MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9866487463 p.yiv9866487463msonormal0, #yiv9866487463 li.yiv9866487463msonormal0, #yiv9866487463 div.yiv9866487463msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9866487463 span.yiv9866487463E-mailStijl18 {font-family:sans-serif;color:windowtext;}#yiv9866487463 .yiv9866487463MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv9866487463 div.yiv9866487463WordSection1 {}#yiv9866487463 
Francisco,
 
  
 
Your initial problem was that the link only shows with unrepeated fields. This is because the condition
 
  
 
 if npost(['theses'],'AR_'v700^a)>1 then (


 
is not put inside the repetation, so it should be inside it:
 
  
 
( if npost(['theses'],'AR_'v700^a)>1  then v700^a |, | v700^e,… etc etc ‘<a href… etc etc
 
  
 
Piet de Keyser
 
  
 
  
 
Van: isis-users <isis-users-bounces+piet.dekeyser=ucll.be at iccisis.org>Namens Francisco Tamor
Verzonden: zondag 19 april 2020 9:01
Aan: Egbert De Smet <egbert.desmet at uantwerpen.be>
CC: Isis-users <isis-users at iccisis.org>
Onderwerp: Re: [Isis-users] Fwd: Display format frbr
 
  
 
Egbert,
 
  
 
Thank you very much. I will try this at once and let you know the result.
 
  
 
  
 
Regards,
 
Francisco
 
  
 
On Saturday, 18 April 2020, 7:51:18 pm SGT, Egbert De Smet <egbert.desmet at uantwerpen.be> wrote: 
 
  
 
  
 
  
 
  
 
GetOutlook for Android
 
From: Egbert De Smet <egbert.desmet at uantwerpen.be>
Sent: Saturday, April 18, 2020 11:25:35 AM
To: Francisco Tamor <fttamor at yahoo.com>
Subject: Re: Display format frbr
 
 
 
Francisco,
 
  
 
OK now I could test it, however I did it in Linux and still had to - additionally to the changes below - deal with upper/lowercase references to the database name and the call to wxis dropping the '.exe' extension.
 
  
 
First of all : the current PFT with the FRBR-reference works only showing the linked records in iAH, since it calls the iah.xis script. I suppose this is not a problem for you ? Testing in Central is still possible but the link opens an iAH-results-screen.
 
If you want it to show the links in Central, another PFT will be needed which calls another IsisScript (e.g. see the attached one 'show_searchresults.xis' as an example, only using cipar=, base=, pft= and search= as necessary parameters) but I didn't test this yet. 
 
  
 
The PFT-code which works correctly (in my case at least) is, for v700 (Contributors) also if repeated, the following :
 
  
 
if p(v700) then '<tr><td width=20% valign=top align=right><font face=arial size=2 color="#000080">
<b>Contributor(s) :</b></td><td valign=top id="v700"><font face=arial size=2>',
 if npost(['theses'],'AR_'v700^a)>1 then
(v700^a, |, | v700^e,
'<a href="/cgi-bin/ansi/wxis/iah/scripts/?IsisScript=iah.xis&lang=en&base=THESES&nextAction=lnk&exprSearch=',s(mpu,v700^a,mpl),'&indexSearch=AR" target=new>',
' (', f(npost(['theses'],'AR_'v700^a),1,0),' related works)</a><br>',
  if iocc<>nocc(v700) then '<br></td></tr>' fi)/
 else (|<br>|+v700^a |, | v700^e),
 fi,
fi/
 
  
 
Compare that carefully to your original code below :
 
  
 
if p(v700) then '<tr><td width=20% valign=top align=right><font face=arial size=2 color="#000080"><b>Contributor(s) :</b></td>
<td valign=top id="v700"><font face=arial size=2>'
if npost(['theses'],'AR_'v700^a)>1 then 
 
(v700^a |, | v700^e,
'<a href="/cgi-bin/ansi/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=en&base=theses&nextAction=lnk&exprSearch=',s(mpu,v700^a,mpl),'&indexSearch=AR" target=new>',
'(',f(npost(['theses'],'AR_'v700^a),1,0),' related works)</a><br>') 
 
else (|<br>|+v700^a |, | v700^e),
 
if iocc<>nocc(v700) then '<br>' fi/, fi,'</td></tr>' fi/
 
I hope this helps.
 
  
 
Egbert de Smet
Universiteit Antwerpen
 
  
 
From: Francisco Tamor <fttamor at yahoo.com>
Sent: Saturday, April 18, 2020 5:48 AM
To: Egbert De Smet
Subject: Re: Display format frbr
 
 
 
Hi Egbert,
 
  
 
Here it is...
 
  
 
On Friday, 17 April 2020, 8:30:36 pm SGT, Egbert De Smet <egbert.desmet at uantwerpen.be> wrote: 
 
  
 
  
 
Sorry I also need your theses.def (since the FRBR-link is using the iah.xis script from the iAH-OPAC and therefore it needs the iAH-configuration file for that database.
 
  
 
Egbert de Smet
Universiteit Antwerpen
 
  
 
From: Francisco Tamor <fttamor at yahoo.com>
Sent: Friday, April 17, 2020 1:09 PM
To: Egbert De Smet
Cc: Isis-users
Subject: Display format frbr
 
 
 
Egbert,
 
  
 
Pleas(e see attached files (for my Theses Database).
 
  
 
  
 
Thank you.
 
  
 
Francisco
 
  
 
  
 
_______________________________________________
isis-users mailing list
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
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20200509/67b1d130/attachment.html>


More information about the isis-users mailing list