1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html>
- <head>
- <%- head_tpl({site_title = site_title, title = fname,
- webroot = webroot}) %>
- </head>
- <body>
- <%- header_tpl({site_title = site_title}) %>
- <main>
- <h1>
- <img class="title_icon" src="<%= icon_url %>" />
- <%= breadcrumbs[#breadcrumbs][2] -%>: <%= fname %>
- </h1>
- <% if pres then %>
- <section id="res_pres">
- <% if (mconf.gen or {}).presentation_type == "image" then %>
- <img src="<%= webroot -%><%= pres -%>" />
- <%else %>
- <a href="<%= webroot -%><%= pres -%>" download="<%= fname -%>">
- Download file
- </a>
- <% end %>
- </section>
- <% end %>
- <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="<%= webroot -%>class/<%= cls -%>">
- <%= label -%>
- </a>
- <% end %>
- </p>
- </section>
- <section class="res_md" id="res_techmd">
- <h2>Metadata</h2>
- <p><a href="<%= webroot -%><%= rdf_href %>">Download RDF document</a></p>
- <dl>
- <% for p, ol in pairs(techmd) do %>
- <dt>
- <% if ol.label then %><%= ol.label %>
- <% else %><code><%= ol.uri %></code><% end %>
- <% if ol.description then %><span
- title="<%= ol.description -%>"
- > 🛈</span>
- <% end %>
- </dt>
- <% for _, o in ipairs(ol) do %>
- <dd><%= o %></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% if next(rel) then %>
- <section class="res_md" id="res_rel">
- <h2>Relationships</h2>
- <dl>
- <% 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="<%= webroot -%><%= o.href %>"><%= o.label %></a></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% end %>
- </main>
- <footer></footer>
- </body>
- </html>
|