issues
search
WDscholia
/
scholia
Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
215
stars
77
forks
source link
Fix DOI to QS generation on DOI 404 page
#2437
Closed
larsgw
closed
3 months ago
larsgw
commented
3 months ago
Description
Bypass the DOI detection system of Citation.js to always attempt to query the route parameter as a DOI. E.g.
https://scholia.toolforge.org/doi/10.1021/ci040131
+
Same DOI: makes sure HTML cannot be injected, even if it's just
<i>
Do not pollute the
c
variable in the global scope
Checklist
[x] I have
commented
my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have not used code from external sources without attribution
[x] I have considered
accessibility
in my implementation
[x] There are no remaining debug statements (print, console.log, ...)
Description
<i>
c
variable in the global scopeChecklist