source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/atom_editor.html @ 4445

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/atom_editor.html@4445
Revision 4445, 3.6 KB checked in by cbyrom, 12 years ago (diff)

Add code to display the associated deployments info for deployments data
+ store atom details in session variable to allow re-use to improve
load efficiency.

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html lang="en" xmlns="http://www.w3.org/1999/xhtml" 
3        xmlns:py="http://genshi.edgewall.org/" 
4        xmlns:xi="http://www.w3.org/2001/XInclude">
5        <xi:include href="layout.html" />
6        <xi:include href="atom_functions.html" />
7        <head>
8        <title py:content="c.title">title</title>
9                <script type="text/javascript" src="$g.server/js/queueDeployments.js"/>
10    </head>
11    <body>
12      <panelTab>Details</panelTab>
13      <div id="contents">
14            <div class="metadata">
15                            <a py:if="c.saveLink" href="${h.url_for(controller='listatom',action='atomHome')}">Home</a>
16                            <h3>  $c.title </h3>
17                        <div py:replace="displayErrors()"/>
18                <table py:if="c.saveLink">
19                <tr><td>Data Type:</td><td>$c.atom.atomTypeName</td></tr>
20                <tr><td>Provider ID:</td><td>$c.atom.ME.providerID</td></tr>
21                                <tr><td>Created:</td><td>$c.atom.publishedDate</td></tr>
22                <tr><td>Last updated:</td><td>$c.atom.updatedDate</td></tr>
23                </table>
24
25                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="GeneralInfo(c.saveLink)"/>
26                <div py:if="not c.atom.isDeployment()" py:replace="UploadFile('Ingest data from CSML file', 'CSML', c.saveLink)"/>
27                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="TextArea('Summary', c.atom.Summary, c.saveLink)"/>
28                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="TextArea('Content', c.atom.Content, c.saveLink)"/>
29                <div py:if="c.atom.isGranule()" py:replace="ContentFile(c.atom.contentFile, c.saveLink)"/>
30                        <div py:replace="People('Author', [c.atom.author], c.saveLink)"/>
31                        <div py:if="not c.atom.isDeployment()" py:replace="People('Contributors', c.atom.contributors, c.saveLink)"/>
32                        <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="OnlineReferences(c.atom.getLinksOfType(c.atom.ONLINE_REF_LABEL), c.saveLink)"/>
33                        <div py:if="c.atom.isDeployment()" py:replace="Associations('Associated Data', c.atom.relatedLinks, c.addEntityLink, c.saveAssoc)"/>
34                        <div py:if="c.atom.isDE()" py:replace="Associations('Associated Data Granules', c.atom.getLinksOfType(g.vtd.GRANULE_TERM), c.addGranuleLink, c.saveAssoc)"/>
35                        <div py:if="c.atom.isDE()" py:replace="Associations('Associated Deployments', c.atom.getLinksOfType(g.vtd.DEPLOYMENT_TERM), c.addDeploymentLink, c.saveAssoc)"/>
36                        <div class="metadataSection" py:if="c.atom.isDeployable()">
37                                <div class="headingblock" id="deploymentsPlaceholder" />
38                            </div>
39                                <span py:if="not c.atom.isDeployment()" py:strip="">
40                                        <span py:if="not c.saveLink" py:strip="">
41                                        <div py:replace="SummaryParameterList(c.atom.parameters)"/>
42                                        <div py:replace="FullParameterList(c.atom.parameters, c.saveLink, 'hidden')"/>
43                                        </span>
44                                <div py:if="c.saveLink" py:replace="FullParameterList(c.atom.parameters, c.saveLink, '')"/>
45                                </span>
46                        <div py:replace="Coverage(c.saveLink)"/>
47                        <div py:replace="People('Responsible Parties',
48                                c.atom.ME.responsibleParties, c.saveLink)"/>
49                            <div py:if="not c.saveLink" py:replace="Services()"/>
50              </div>
51      </div>
52          <span py:if="not c.saveLink" py:strip="">
53              <includeCorrectionLink>True</includeCorrectionLink>
54          <center>
55                    <p>Not all information in this record may be rendered in this view. Please see the XML version for complete
56                    content </p>
57              </center>
58          </span>
59    </body>
60</html>
Note: See TracBrowser for help on using the repository browser.