source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/meta.kid @ 2676

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/meta.kid@2676
Revision 2676, 2.2 KB checked in by lawrence, 14 years ago (diff)

A bit more for DIF ...

Line 
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(' ','&nbsp;'))
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   
43    <div py:def="Keywords(Name,listOf)">
44         <table cellspacing="0" cellpadding="3" border="0" width="100%"><tbody>
45            <tr><td class="linehead"><span class="heading0"> $Name</span></td></tr>
46            <tr py:for="item in listOf"><td>$item</td></tr>
47        </tbody></table>
48    </div>
49   
50    <div py:def="Curator()"/>
51   
52</html>
Note: See TracBrowser for help on using the repository browser.