kermitt2 / biblio-glutton-extension Goto Github PK
View Code? Open in Web Editor NEWA browser extension providing Open Access bibliographical services
License: Apache License 2.0
A browser extension providing Open Access bibliographical services
License: Apache License 2.0
Create new route on Glutton service to handle 'augmented PDF view' feature 'in new tab'.
This route should return an HTML document that contain <div id="gluttonPdf"></div>
So Glutton service should at least send this response :
<html>
<head></head>
<body>
<div id="gluttonPdf"></div>
</body>
</html>
Note : Web Extension only build & inject HTML code of 'augmented PDF view' in div#gluttonPdf
Issue on a dedicated service for avoiding multiple call to glutton from the web extension:
kermitt2/biblio-glutton#42
A great way to use biblio-glutton's deeper citation matching capabilities would be if this extension could detect strings on a page that look like citations (eg, a list of reference strings), and if they don't already have identifiers or URLs in the string, do a match query against the biblio-glutton instance.
The current code uses regex to match identifier strings. Detecting reference/citation strings would probably be harder... look for a sequence of <li>
elements, or short paragraphs? Maybe there exists Javascript code that already does this sort of fuzzy detection already, or code in another language that could be adapted.
Other issues (off the top of my head) are that a full match query is more expensive than an identifier lookup query, and that the privacy concerns when submitting full "raw strings" are more concerning than only matched identifiers (eg, passwords, email, or other strings could accidentally get sent in the API request).
This would be a bunch of work, and it isn't something I could contribute to in the near future, but i'm opening this issue in case others are interested or know of a project that has already done the hard bits.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.