oarec_service_metadata.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="{{ language }}">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>{{ gettext('Service Metadata') }}</title>
  6. <style type="text/css">
  7. body,h3, h4 {
  8. background-color: #ffffff;
  9. font-family: arial, verdana, sans-serif;
  10. text-align: left;
  11. float: left;
  12. }
  13. header {
  14. display: inline-block;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <header>
  20. <h3>{{ gettext('Service Metadata') }}</h3>
  21. </header>
  22. <section id="service-metadata">
  23. <h4>{{ gettext('Service Identification') }}</h4>
  24. <table>
  25. <tr>
  26. <td>{{ gettext('Title') }}</td>
  27. <td>{{ obj.title }}</td>
  28. </tr>
  29. <tr>
  30. <td>{{ gettext('Abstract') }}</td>
  31. <td>{{ obj.description or obj['title'] }}</td>
  32. </tr>
  33. <tr>
  34. <td>{{ gettext('Service URL') }}</td>
  35. <td><a href="{{ obj.url }}">{{ obj.url}}</a></td>
  36. </tr>
  37. </table>
  38. </section>
  39. <section id="collections">
  40. <h4>{{ gettext('Collections') }}</h4>
  41. {% for j in obj.collections()['collections'] %}
  42. {% if j.id in obj.records() %}
  43. <p><b>{{ j.title }}</b><br/>{{ j.description }}</p>
  44. {% endif %}
  45. {% endfor %}
  46. </section>
  47. <section id="conformance">
  48. <h4>{{ gettext('Conformance') }}</h4>
  49. <ul>
  50. {% for i in obj.conformance()['conformsTo'] %}
  51. <li><a href="{{ i }}">{{ i }}</a></li>
  52. {% endfor %}
  53. </ul>
  54. </section>
  55. <section id="links">
  56. <h4>{{ gettext('Links') }}</h4>
  57. <ul>
  58. {% for link in obj.links %}
  59. <li><a href="{{ link['href'] }}">{{ link['title'] }}</a></li>
  60. {% endfor %}
  61. </ul>
  62. </section>
  63. </body>
  64. </html>