12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html>
- <html>
- <head>
- <%- header_tpl({site_title = site_title, title = title}) %>
- </head>
- <body>
- <header>
- <h1><%= breadcrumbs[#breadcrumbs][2] %>: <%= title %></h1>
- </header>
- <main>
- <section id="res_lineage">
- <h2>Classification</h2>
- <p>
- <% for i, bc in ipairs(breadcrumbs) do %>
- <% cls, label = table.unpack(bc) %>
- <% if i ~= 1 then %>
- <span class="breadcrump_sep"> ➳ </span>
- <% end %>
- <a
- class="breadcrumb<%if i == #breadcrumbs then %> current<% end %>"
- href="../class/<%= cls -%>">
- <%= label -%>
- </a>
- <% end %>
- </p>
- <a href="<%= rdf_href %>">RDF document</a>
- </section>
- <section id="res_dmd">
- <h2>Metadata</h2>
- <dl class="res_md">
- <% for _, ol in ipairs(dmd) do %>
- <dt>
- <% if ol.label then %><%= ol.label %>
- <% else %><code><%= ol.uri %></code><% end %>
- </dt>
- <% for _, o in ipairs(ol) do %>
- <dd><%= o %></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% if #rel > 0 then %>
- <section id="res_rel">
- <h2>Relationships</h2>
- <dl class="res_md">
- <% for p, ol in pairs(rel) do %>
- <dt>
- <% if ol.label then %><%= ol.label %>
- <% else %><code><%= ol.uri %></code><% end %>
- </dt>
- <% for _, o in ipairs(ol) do %>
- <dd><a href="/res/<%= o.data %>.html"><%= o.data %></a></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% end %>
- <% if #children > 0 then %>
- <section id="res_children">
- <h2>Contains</h2>
- <ul>
- <% for _, ll in ipairs(children) do %>
- <li>Sequence (<%= #ll %> items):<ol>
- <% for i, el in ipairs(ll) do %>
- <li><a href="<%= el.href %>">
- <% if el.tn then %>
- <img src="<%= el.tn %>" alt="<%= el.label %>" />
- <% else %>
- <%= el.label %>
- <% end %>
- </a></li>
- <%end %>
- </ol></li>
- <% end %>
- </ul>
- </section>
- <% end %>
- </main>
- <footer></footer>
- </body>
- </html>
|