Skip to content

Add translator for Finnish Medical Journal (Laakarilehti.js); Revised Duodecim.js - #3638

Open
shiyuwang-jamk wants to merge 19 commits into
zotero:masterfrom
shiyuwang-jamk:master
Open

Add translator for Finnish Medical Journal (Laakarilehti.js); Revised Duodecim.js#3638
shiyuwang-jamk wants to merge 19 commits into
zotero:masterfrom
shiyuwang-jamk:master

Conversation

@shiyuwang-jamk

Copy link
Copy Markdown
Contributor

Adding Laakarilehti.js

The following are left for the end user after translation

  • Jounal article page numbers for those with shortend URL /www\.laakarilehti\.fi\/e\d+/
  • Securing PDF file if no subscription access at runtime.
    • Applies also to downloading sll in Duodecim.js.
  • Translation via subscription access: whether shortened URL leads to publicly available full text.
    • When on proxy, requestDocument() always uses the proxied domain. See directAccess().

Duodecim.js: changelog

  • Revised (supplementary) PDF link filtering reducing unnecessary links.
  • PDF for sll
    • Manual link generation for legacy articles.
    • onCampus() name was scrapped for directAccess() that also verifies PDF link validity.
      • The directAccess() variant in Laakarilehti.js still uses requestDocument().
  • Revised English abstract/summary extraction for sll and Duodecim duo journals.
  • Provided a link to subscription-based testCases. See the comment block before testCases.
  • Readability: code sequence, comment blocks, cleanups.

@shiyuwang-jamk
shiyuwang-jamk marked this pull request as draft August 10, 2026 19:46
@shiyuwang-jamk
shiyuwang-jamk marked this pull request as ready for review August 10, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant