kuhumcst / glossematics

The life of Louis Hjelmslev.
https://glossematics.dk
4 stars 1 forks source link

Mark TEI documents where the facsimile is a multi-page PDF #33

Closed simongray closed 2 years ago

simongray commented 2 years ago

e.g. the stuff in 8_Udgivelser.

Unsure if the documents themselves reveal this fact or if I need to place those files in a separate root directory.

simongray commented 2 years ago

And for vieweing this may be an option? https://github.com/thheller/reagent-pdfjs/blob/master/src/main/demo/app.cljs

Obviously, a major nice-to-have, not immediately needed.

simongray commented 2 years ago

I'm guessing all of the :entity.type/bibliographic-entry are multi-page PDFs? Are there more than these or will this be enough?

simongray commented 2 years ago

Currently achieving this this predicate used in the frontend:

(and (not body?)
     (string? facsimile)
     (str/ends-with? facsimile ".pdf")
     (api/normalize-url (str "/file/" facsimile)))