ores.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><%= title %>&emsp;&#x2741;&emsp;<%= fname %></title>
  5. </head>
  6. <body>
  7. <header>
  8. <h1><%= breadcrumbs[#breadcrumbs][2] -%>:&nbsp;<%= 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. </section>
  27. <section class="res_md" id="res_techmd">
  28. <h2>Metadata</h2>
  29. <dl>
  30. <% for p, ol in pairs(techmd) do %>
  31. <dt>
  32. <% if ol.label then %><%= ol.label %>
  33. <% else %><code><%= ol.uri %></code><% end %>
  34. </dt>
  35. <% for _, o in ipairs(ol) do %>
  36. <dd><%= o %></dd>
  37. <% end %>
  38. <% end %>
  39. </dl>
  40. </section>
  41. <% if #rel > 0 then %>
  42. <section class="res_md" id="res_rel">
  43. <h2>Relationships</h2>
  44. <dl>
  45. <% for p, ol in pairs(rel) do %>
  46. <dt>
  47. <% if ol.label then %><%= ol.label %>
  48. <% else %><code><%= ol.uri %></code><% end %>
  49. </dt>
  50. <% for _, o in ipairs(ol) do %>
  51. <dd><a href="res/<%= o.data %>.html"><%= o.data %></a></dd>
  52. <% end %>
  53. <% end %>
  54. </dl>
  55. </section>
  56. <% end %>
  57. <% if deliverable then %>
  58. <section id="res_pres">
  59. <% if mconf.presentation_type == "image" then %>
  60. <img src="<%= deliverable -%>" />
  61. <% end %>
  62. </section>
  63. <% end %>
  64. </main>
  65. <footer></footer>
  66. </body>
  67. </html>