ores.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <%- header_tpl({site_title = site_title, title = fname}) %>
  5. </head>
  6. <body>
  7. <header>
  8. <h1><%= breadcrumbs[#breadcrumbs][2] -%>:&ensp;<%= fname %></h1>
  9. </header>
  10. <main>
  11. <section id="res_lineage">
  12. <h2>Classification</h2>
  13. <p>
  14. <% for i, bc in ipairs(breadcrumbs) do %>
  15. <% cls, label = table.unpack(bc) %>
  16. <% if i ~= 1 then %>
  17. <span class="breadcrump_sep">&ensp;&#x27B3;&ensp;</span>
  18. <% end %>
  19. <a
  20. class="breadcrumb<%if i == #breadcrumbs then %> current<% end %>"
  21. href="../class/<%= cls -%>">
  22. <%= label -%>
  23. </a>
  24. <% end %>
  25. </p>
  26. <a href="<%= rdf_href %>">RDF document</a>
  27. </section>
  28. <section class="res_md" id="res_techmd">
  29. <h2>Metadata</h2>
  30. <dl>
  31. <% for p, ol in pairs(techmd) do %>
  32. <dt>
  33. <% if ol.label then %><%= ol.label %>
  34. <% else %><code><%= ol.uri %></code><% end %>
  35. </dt>
  36. <% for _, o in ipairs(ol) do %>
  37. <dd><%= o %></dd>
  38. <% end %>
  39. <% end %>
  40. </dl>
  41. </section>
  42. <% if #rel > 0 then %>
  43. <section class="res_md" id="res_rel">
  44. <h2>Relationships</h2>
  45. <dl>
  46. <% for p, ol in pairs(rel) do %>
  47. <dt>
  48. <% if ol.label then %><%= ol.label %>
  49. <% else %><code><%= ol.uri %></code><% end %>
  50. </dt>
  51. <% for _, o in ipairs(ol) do %>
  52. <dd><a href="/res/<%= o.data %>.html"><%= o.data %></a></dd>
  53. <% end %>
  54. <% end %>
  55. </dl>
  56. </section>
  57. <% end %>
  58. <% if deliverable then %>
  59. <section id="res_pres">
  60. <% if mconf.presentation_type == "image" then %>
  61. <img src="<%= deliverable -%>" />
  62. <%else %>
  63. <a href="<%= deliverable -%>" download="<%= fname -%>">
  64. Download file
  65. </a>
  66. <% end %>
  67. </section>
  68. <% end %>
  69. </main>
  70. <footer></footer>
  71. </body>
  72. </html>