1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <html 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 | <head> |
---|
7 | <title py:content="c.title">title</title> |
---|
8 | <?python |
---|
9 | import oai_info_editor.lib.constants as constants |
---|
10 | import urllib |
---|
11 | from oai_info_editor.controllers.master import ADMIN_PARAMETER |
---|
12 | ?> |
---|
13 | <script py:if="c.popupMessage" type="text/javascript"> |
---|
14 | window.onload = alert('$c.popupMessage'); |
---|
15 | <?python del c.popupMessage ?> |
---|
16 | </script> |
---|
17 | </head> |
---|
18 | <body> |
---|
19 | <div id="contents"> |
---|
20 | <div class="metadata"> |
---|
21 | <h1 align="center">$c.title</h1> |
---|
22 | <h3 align="center">$c.subTitle</h3> |
---|
23 | <p>$c.abstract</p> |
---|
24 | <p>Click on either the Data Provider name or the view/edit link to be taken to a page where you can start a harvest and ingest sequence. |
---|
25 | You will need to have an OpenID registered with the provider of this service to proceed from this stage and will be prompted for this after clicking on the relevant link. Once you have completed the OpenId authentication you will be returned to this portal. If you have any queries contact the STFC CEDA <a href="mailto:$c.suppEmail?subject=Discovery Service Providers Portal query">helpdesk</a>.</p> |
---|
26 | <div py:replace="displayErrors()"/> |
---|
27 | <div py:if="c.createLink"> |
---|
28 | <h3> |
---|
29 | <a href="${c.createLink}">Create new provider info</a> |
---|
30 | <br /> |
---|
31 | </h3> |
---|
32 | </div> |
---|
33 | <br/><br/> |
---|
34 | <h3 py:if="c.providerInfos" align="center">Select the provider info data to view/edit</h3> |
---|
35 | <h4 py:if="c.providerInfos"> |
---|
36 | <table border="0" align="center"> |
---|
37 | <tr> |
---|
38 | <td colspan="2" align="center" border="0"> Data Provider </td> |
---|
39 | <td align="center" border="0">Format</td> |
---|
40 | |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td py:if="c.user.isAdmin"> |
---|
44 | <a href="${h.url_for('viewProviderInfo', providerName = constants.ALL_PROVIDER_IDS) + ADMIN_PARAMETER}">All data</a> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | <tr py:for="pi in c.providerInfos"> |
---|
48 | <?python |
---|
49 | viewLink = h.url_for('viewProviderInfo', providerName = urllib.quote(pi.name)) |
---|
50 | if c.user.isAdmin: |
---|
51 | viewLink += ADMIN_PARAMETER |
---|
52 | ?> |
---|
53 | <td> |
---|
54 | <a href="$viewLink">${Markup(pi.dataCentreName)}</a> |
---|
55 | </td> |
---|
56 | <!--<td align="center"> |
---|
57 | ${Markup(pi.name)} |
---|
58 | </td>--> |
---|
59 | <td align="center"> |
---|
60 | ${Markup(pi.dataFormat)} |
---|
61 | </td> |
---|
62 | <td> |
---|
63 | <input type="button" value="view/edit" title="Click to edit details and/or initate a harvest" onclick="location.href='$viewLink'"/> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | </table> |
---|
67 | </h4> |
---|
68 | <h3 py:if="not c.providerInfos" align="center"> |
---|
69 | No provider info currently available to view/edit |
---|
70 | </h3> |
---|
71 | </div> |
---|
72 | </div> |
---|
73 | </body> |
---|
74 | </html> |
---|