source: MILK/trunk/milk_server/milk_server/templates/atom_editor/atom_editor.html @ 4519

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/templates/atom_editor/atom_editor.html@4519
Revision 4519, 3.7 KB checked in by cbyrom, 12 years ago (diff)

Add XML export services to edit atom mode + remove display of parameters except for granules and DEs.

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 py:if="not c.atom.isDeployment() and not c.atom.isGranule()" type="text/javascript" src="$g.server/js/queueDeployments.js"/>
10    </head>
11    <body>
12      <panelTab py:if="c.saveLink">Editor</panelTab>
13      <panelTab py:if="not c.saveLink">Details</panelTab>
14      <div id="contents">
15            <div class="metadata">
16                            <a py:if="c.saveLink" href="${h.url_for(controller='atom_editor/listatom',action='atomHome')}">Home</a>
17                            <h3>  $c.title </h3>
18                        <div py:replace="displayErrors()"/>
19                <table py:if="c.saveLink">
20                <tr><td>Data Type:</td><td>$c.atom.atomTypeName</td></tr>
21                <tr><td>Provider ID:</td><td>$c.atom.ME.providerID</td></tr>
22                                <tr><td>Created:</td><td>$c.atom.publishedDate</td></tr>
23                <tr><td>Last updated:</td><td>$c.atom.updatedDate</td></tr>
24                </table>
25
26                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="GeneralInfo(c.saveLink)"/>
27                <div py:if="c.atom.isGranule() and not c.atom.contentFile" py:replace="UploadFile('Ingest data from CSML file', 'CSML', c.saveLink)"/>
28                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="TextArea('Summary', c.atom.Summary, c.saveLink)"/>
29                <div py:if="not c.atom.isDeployment() and not c.atom.isGranule()" py:replace="TextArea('Content', c.atom.Content, c.saveLink)"/>
30                <div py:if="c.atom.isGranule()" py:replace="ContentFile(c.atom.contentFile, None)"/>
31                        <div py:replace="People('Author', [c.atom.author], c.saveLink)"/>
32                        <div py:if="not c.atom.isDeployment()" py:replace="People('Contributors', c.atom.contributors, c.saveLink)"/>
33                        <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)"/>
34                        <div py:if="c.atom.isDeployment()" py:replace="Associations('Associated Data', c.atom.relatedLinks, c.addEntityLink, c.saveAssoc)"/>
35                        <div py:if="c.atom.isDE()" py:replace="Associations('Associated Data Granules', c.atom.getLinksOfType(g.vtd.GRANULE_TERM), c.addGranuleLink, c.saveAssoc)"/>
36                        <div py:if="c.atom.isDE()" py:replace="Associations('Associated Deployments', c.atom.getLinksOfType(g.vtd.DEPLOYMENT_TERM), c.addDeploymentLink, c.saveAssoc)"/>
37                        <div class="metadataSection" py:if="c.atom.isDeployable()">
38                                <div class="headingblock" id="deploymentsPlaceholder" />
39                            </div>
40                                <span py:if="c.atom.isDE() or c.atom.isGranule()" py:strip="">
41                                        <span py:if="not c.saveLink" py:strip="">
42                                        <div py:replace="SummaryParameterList(c.atom.parameters)"/>
43                                        <div py:replace="FullParameterList(c.atom.parameters, c.saveLink, 'hidden')"/>
44                                        </span>
45                                <div py:if="c.saveLink" py:replace="FullParameterList(c.atom.parameters, c.saveLink, '')"/>
46                                </span>
47                        <div py:replace="Coverage(c.saveLink)"/>
48                        <div py:replace="People('Responsible Parties',
49                                c.atom.ME.responsibleParties, c.saveLink)"/>
50                            <div py:replace="Services()"/>
51              </div>
52      </div>
53          <span py:if="not c.saveLink" py:strip="">
54              <includeCorrectionLink>True</includeCorrectionLink>
55          <center>
56                    <p>Not all information in this record may be rendered in this view. Please see the XML version for complete
57                    content </p>
58              </center>
59          </span>
60    </body>
61</html>
Note: See TracBrowser for help on using the repository browser.