[Isis-users] Añadir formatos al shortcut de IAH

Maribel Cuadrado Maribel.Cuadrado at uab.es
Wed Apr 18 14:08:41 CEST 2012


Hola,

Estoy intentando añadir al "shortcut.pft" de IAH una llamada a un 
formato de mi base de datos y no acabo de conseguirlo.

La idea es que desde la visualización de un registro (que por defecto se 
muestra en un formato breve) sea posible a través de un link a una 
imagen acceder al formato detallado (sin tener que ir a la opción 
"Configuración" , y seleccionar un formato diferente, que es un proceso 
más laborioso)
formato_breve

Especifico en shortcut.pft:
(
     /* Link para o texto completo */
         , at DBLIL_LINK.PFT,
     /*Link para formato detallado*/
     , at detalle.pft
)


En el formato detalle.pft:
,if p(v35) then,

          '<tr>'/

          '<td width="28%"><a href="'v91^*'"><img 
src="',v5002[1],'uab.gif" border="0" name="text"></a></td>'/

      '<td width="72%">'

                         '<font face=verdana size="1"><i>'

                              'Formato completo'

                               '</i></font></td>'/

         '</tr>'/ ,fi,

¿Dónde tengo que especificar mi formato? He probado diferentes opciones 
y siempre obtengo un mensaje de error de IAH
Mi formato es:

'<table width=100%>'
'<div style="text-align:justify">'
if p(v35) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v35,'&indexSearch=MF_">',v35,'</a>' 
fi,' - ',if p(v10) or v8^d:'s' or v8^d:'z' then '<I>'v912'</I>', | = 
|v245^k,| / |v245^d, else | |v912, if v8^s:'a' or v8^s:'h' or v8^s:'g' 
or v8^s:'m' or v8^s:'f' or v8^s:'c' or v8^s:'j' or v8^s:'k' then (| 
[|v918|] |) ,fi fi | = |v245^k,| / |v245^d,
| .-- |v255, |. -- |v250,
if v8^d:'o' or v8^d:'u' then '<br> En: ',v10^n|. |,'<I>'v10^p'</I>',|. 
|v10^z,| : |v10^y,|, |v10^b fi, if p(v260) then '<br>'v260^z,| : 
|v260^y,|, |v260^b fi,
if v8^d:'z' then '<br> En: ',if p(v12^z) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v12^z,'&indexSearch=RV_">',v12^z,'</a>' 
fi,|. |v12^p,|. |v12^x,|, |v12^b,
| (|v12^f|  |,if p(v12^f) and p(v12^c) then v12^c |)|, else | (|v12^c|) 
| fi fi,|, |v12^d,
if v8^d:'p' or v8^d:'q' then |. Dirigida per: |v502^z, |. |v502^y,|, 
|v502^x fi,mdl,| . -- |v300,mhl,
if p(v440) then ,' (' '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v440^a,'&indexSearch=CC_">',v440^a,'</a>',  
|, |v440^b,|. |v440^z,|, |v440^d,') 'fi,
mdl,| . -- |v554, if p(v500) or p(v503) or p(v504) or p(v505) or p(v508) 
or p(v514) or p(v515) or p(v521) or p(v525) or p(v546) or p(v554) or 
p(v556)then ' . -- ',v500, v503, v504, v505,v508,v514,v515,v525,v546, 
v554,v556 fi,| ISBN |v21,| ISSN |v22,
, mdl,if p(v513) then '<br><br>Resum:  ', v513, fi,
mhl, if p(v558) then '<br> Ressenya de: <br>',(if p(v558) then ,| - 
|v558^n,|. |v558^p,| / |v558^x,|. |v558^z,| : |v558^y,|, |v558^b,| 
(|v558^q|) |, if iocc<>nocc(v558) then '<br>'fi fi/), fi/,
if p(v20) then '<br>Conté:   ', (REF(val(v20), '<br>' / ' - ', mhl, 
v100^b, mdl,|. |v100^c, v110^*,mhl,'<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=fons' 
,v5003[1],'&nextAction=lnk&exprSearch=',v912,'&indexSearch=TC_">',v912,'</a>')),'<br>' 
fi/,
'</div>'
'</table>'
'<table width=100%>'
'<div style="text-align:justify">'
if p(v650) then '<tr><td width=20% valign=top><font face=arial 
size=2>Descriptors: </td><td valign=top><font face=arial size=2>' fi,(if 
p(v650) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v650 
'&indexSearch=MA_">',v650'</a>',if iocc<>nocc(v650) then ' ; ' fi 
fi),'</td>'
if p(v651) then '<tr><td width=20% valign=top><font face=arial 
size=2>Àmbit geogràfic:</td><td valign=top><font face=arial size=2>' fi,
(if p(v651) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',mhl,v651^*,|-|v651^z, 
'&indexSearch=GE_">',mhl,v651^*,|-|v651^z '</a>',if iocc<>nocc(v651) 
then ' ; ' fi  fi),'</td>'
if p(v658) then '<tr><td width=20% valign=top><font face=arial 
size=2>Comarques:</td><td valign=top><font face=arial size=2>'fi,
(if p(v658) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v658 
'&indexSearch=MA_">',v658'</a>',if iocc<>nocc(v658) then ' ; ' fi fi 
),'</td>'
if p(v600) then '<tr><td width=20% valign=top><font face=arial 
size=2>Identificadors personals: </td><td valign=top><font face=arial 
size=2>'fi,
(if p(v600) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v600^b,|, 
|v600^c'&indexSearch=MA_">',v600^b,|, |v600^c,'</a>',| (|v600^d|) |,if 
iocc<>nocc(v600) then ' ; ' fi fi),'</td>'
if p(v610) then '<tr><td width=20% valign=top><font face=arial 
size=2>Identificadors corporatius:</td><td valign=top><font face=arial 
size=2>'fi,
(if p(v610) then '<a 
href="/cgi-bin/wxis.exe/iah/scripts/?IsisScript=iah.xis&lang=es&base=' 
,v5003[1],'&nextAction=lnk&exprSearch=',v610'&indexSearch=MA_">',v610^*,'</a>',if 
iocc<>nocc(v610) then ' ; ' fi fi,),'</td>'
if p(v652) then '<tr><td width=20% valign=top><font face=arial 
size=2>Cronologia:</td><td valign=top><font face=arial size=2>'fi, 
mhl,v652^*,'</td>'
'<br><br>'
if p(v90) or p(v91) then  '<tr><td width=20% valign=top><font face=arial 
size=2></td><td valign=top><font face=arial 
size=2>'fi,'                      ','</td>'
mhl, if p(v91) then '<tr><td width=20% valign=top><font face=arial 
size=2>URL: </td><td valign=top><font face=arial size=2>',(if p(v91) 
then '<a href="'v91^*'" target=blank> 'v91^*' </a>' if iocc<>nocc(v91) 
then '<br><i>URL: </i>' fi,fi/), fi/'</td>'
if p(v90) then '<tr><td width=20% valign=top><font face=arial size=2> 
Localització: </td><td valign=top><font face=arial 
size=2>',(REF(L(|BL_|v90^a),v2), if iocc<>nocc(v90) then '; ' 
fi/),'<br>' fi/'</td>'
if p(v11) then '<tr><td width=20% valign=top><font face=arial 
size=2>Localització: </td><td valign=top><font face=arial size=2>' fi,
(ref (val(v11),(REF(L(|BL_|V90^a),v2),if iocc<>nocc(v90) then '; ' 
fi))),'</td>'
  '</div>'
'</table>'
fi


Maribel Cuadrado
Universitat Autònoma de Barcelona


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20120418/da3c5b34/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: breu.JPG
Type: image/jpeg
Size: 70297 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20120418/da3c5b34/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Maribel_Cuadrado.vcf
Type: text/x-vcard
Size: 605 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20120418/da3c5b34/attachment.vcf>


More information about the isis-users mailing list