Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
15.03.2025 v1.29
* Slightly increased standard font size from 9pt to 10pt for better readability.
* Made CSS layout more flexible by replacing most px measures in rem.
* Bumped vis.js Network to newest versions.
! Fixed bugmarklet, in rare cases decodeURIComponent(x.innerHTML) caused an "URIError: malformed URI sequence" (e.g. on https://doi.org/10.1177/13524585251316242)

02.02.2025 v1.28
* Some adaptations for better integration with the awesome Zotero Cita plugin: https://github.com/diegodlh/zotero-cita.
* Slightly changed linkToShareAppendix() logic.
Expand Down
4 changes: 2 additions & 2 deletions bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ javascript:(function () {
listOfReferences = Array.from(lis).map(x => {
// Regular expression adapted from Crossref's recommendation (https://www.crossref.org/blog/dois-and-matching-regular-expressions/)
// Using the set [-_;()/:A-Z0-9] twice (fullstop . and semicolon ; only in first set) makes sure that the trailing character is neither a fullstop nor semicolon
id = decodeURIComponent(x.innerHTML).match(/10\.\d{4,9}\/[-._;()/:A-Z0-9]+[-_()/:A-Z0-9]+/gi)
id = decodeURIComponent(encodeURIComponent(x.innerHTML)).match(/10\.\d{4,9}\/[-._;()/:A-Z0-9]+[-_()/:A-Z0-9]+/gi)
if (id) {
// Make sure DOI fetched for this reference is not sourceDOI
return (id && id.map(id => id.toUpperCase()).filter(id => id !== sourceDOI)[0])
// If no DOI try PMID
} else {
// Try to fet PMID from pubmed itself
// Try to get PMID from pubmed itself
pubmed_a = x.querySelectorAll('a.reference-link:not([href*=\'pmc\'])')
if (pubmed_a.length && pubmed_a[0].attributes['data-ga-action']) {
id = pubmed_a[0].attributes['data-ga-action'].value
Expand Down
Loading