1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>
- <%= title %> ❁ <%= ((dmd["dc:title"] or {})[1] or {}).data or uri.data %>
- </title>
- </head>
- <body>
- <header>
- <h1>
- <%= ((dmd["dc:title"] or {})[1] or {}).data or uri.data %>
- </h1>
- </header>
- <main>
- <section id="res_dmd">
- <h2>Metadata</h2>
- <dl class="res_md">
- <% for p, ol in pairs(dmd) do %>
- <dt><%= p %></dt>
- <% for _, o in ipairs(ol) do %>
- <dd><%= o %></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% if #rel then %>
- <section id="res_rel">
- <h2>Relationships</h2>
- <dl class="res_md">
- <% for p, ol in pairs(rel) do %>
- <dt><%= p.data %></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 then %>
- <section id="res_children">
- <h2>Children</h2>
- <ul>
- <% for _, child in ipairs(children) do %>
- <li><a href = "<%= child %>"><%= child %></li>
- <% end %>
- </ul>
- </section>
- <% end %>
- </main>
- <footer></footer>
- </body>
- </html>
|