From 6fabbf4fe8992a68e248cf760fa36c37e6e2a734 Mon Sep 17 00:00:00 2001 From: David Ball Date: Sat, 22 Jun 2024 14:30:04 -0400 Subject: [PATCH] feat: Embed PDF documents on the webpages which describe them. --- app/views/directory.ejs | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/app/views/directory.ejs b/app/views/directory.ejs index c9cef055..2eeecef8 100644 --- a/app/views/directory.ejs +++ b/app/views/directory.ejs @@ -23,15 +23,36 @@

<%= h.readmeFm(directory).title %>

- <%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %>Document Date: <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %><% } %> + <%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %> + Document Date: <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %> + <% } %> + <%if (typeof h.readmeFm(directory).file !== 'undefined') { %> + Attached Document: <%- h.readmeFm(directory).file %> + <% } %>

<% } %> - <%- h.printReadme(directory) %> + <% if (typeof h.readmeFm(directory).file !== 'undefined') { %> + + <% } else { %> + <%- h.printReadme(directory) %> + <% } %> + + +
+
+

OCR Text Scan (approximately)

+

+ This text scan may contain automatically generated text as generated using Apache Tika + and Tesseract. It may not be correct. No effort has been made to correct any of these scans + (so far). These OCR scans are also used in the site's Search feature. Please review the + Search Policy for details about the site features. +

+
<%- h.printReadme(directory) %>
<% } %> - +