dres.html 2.9 KB

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