1 |
dpavlin |
237 |
<%! |
2 |
|
|
# define a procedure to be called |
3 |
|
|
proc pr {tag name} { |
4 |
|
|
# list of all occurences of $tag |
5 |
|
|
set occ [v $tag] |
6 |
|
|
if {"" == $occ} {return 0} ;# empty |
7 |
|
|
set occ [MHLl $occ] |
8 |
|
|
# this section ends with a ! before the %, |
9 |
|
|
# so the HTML becomes part of this procedure |
10 |
|
|
!%> |
11 |
|
|
<tr><td valign="top"><%=name%></td><td><%=join $occ <br>%></td></tr> |
12 |
|
|
<%! |
13 |
|
|
return 1 |
14 |
|
|
} |
15 |
|
|
%> |
16 |
|
|
<font color="#006600" size="+2"> |
17 |
|
|
<table> |
18 |
|
|
<% |
19 |
|
|
if [pr 24 TITLE] { # looks like CDS ;) |
20 |
|
|
pr 70 AUTHOR(S) |
21 |
|
|
pr 12 CONFERENCE |
22 |
|
|
pr 25 EDITION |
23 |
|
|
pr 26 IMPRINT |
24 |
|
|
pr 30 COLLATION |
25 |
|
|
pr 44 SERIES |
26 |
|
|
pr 50 NOTES |
27 |
|
|
pr 71 "CORP. BODY" |
28 |
|
|
pr 72 "ADDED CONF" |
29 |
|
|
pr 74 "OTHER TITLE" |
30 |
|
|
pr 76 "OTHER LANG" |
31 |
|
|
pr 69 KEYWORDS |
32 |
|
|
} else { # default to "ALL" listing |
33 |
|
|
foreach {tag val} [v get -tags] { |
34 |
|
|
%> |
35 |
|
|
<tr><td valign="top"><%=tag%></td><td><%=MHL $val%></td></tr> |
36 |
|
|
<% |
37 |
|
|
} |
38 |
|
|
} |
39 |
|
|
%> |
40 |
|
|
</table> |
41 |
|
|
</font> |