1 | <!-- This is a bunch of named functions for using when displaying metadata --> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"> |
---|
3 | |
---|
4 | <!-- Parameter list class, used in StubB and DIF --> |
---|
5 | |
---|
6 | <div py:def="ParameterList(params)" class="ParameterList"> |
---|
7 | <table cellspacing="0" cellpadding="3" border="0" width="100%"><tbody> |
---|
8 | <tr><td class="linehead"><span class="heading0"> Parameters</span></td></tr> |
---|
9 | <span py:for="item in params"> |
---|
10 | <tr><td class="rowhead">$item</td></tr> |
---|
11 | <?python |
---|
12 | #need to make sure keyword with spaces are not split inappropriately |
---|
13 | keywords=[] |
---|
14 | for word in params[item]: |
---|
15 | keywords.append(word.replace(' ',' ')) |
---|
16 | keywords='; '.join(keywords) |
---|
17 | ?> |
---|
18 | <tr py:if="params[item]!=[]"><td>$keywords</td></tr> |
---|
19 | </span> |
---|
20 | </tbody></table> |
---|
21 | </div> |
---|
22 | |
---|
23 | <div py:def="Services()" id="ServiceList"> |
---|
24 | <table cellspacing="0" cellpadding="3" width=" 100%" border="0"><tbody> |
---|
25 | <tr><td class="linehead" colspan="3"><span class="headingO">Links and Services</span></td></tr> |
---|
26 | <!-- s=renderService(self.config) |
---|
27 | <tr py:for="item in c.doc.services"><td>$s.get(item)<td><tr> |
---|
28 | --> |
---|
29 | <tr py:if="c.doc.ndgObject is not None"> |
---|
30 | <td width="20%"><span py:replace="linkimage(c.doc.ndgObject.xmlURL,c.icons_xml,'[XML]')"/></td> |
---|
31 | <td>Downloadable XML version of this record</td> |
---|
32 | </tr> |
---|
33 | <tr py:if="c.doc.ndgObject is not None"> |
---|
34 | <td width="20%"><span py:replace="linkimage(c.doc.ndgObject.printableURL,c.icons_prn,'[HTML]')"/></td> |
---|
35 | <td>Viewable XML version of this record</td> |
---|
36 | </tr> |
---|
37 | </tbody></table> |
---|
38 | </div> <!-- ServiceList --> |
---|
39 | |
---|
40 | |
---|
41 | <div py:def="Coverage()"/> |
---|
42 | <div py:def="Sensors()"/> |
---|
43 | <div py:def="Sources()"/> |
---|
44 | <div py:def="Curator()"/> |
---|
45 | |
---|
46 | </html> |
---|