kermitt2 / biblio-glutton-extension

A browser extension providing Open Access bibliographical services
Apache License 2.0
13 stars 0 forks source link

Display 'augmented PDF view' on Glutton service dedicated route #7

Open NicolasKieffer opened 4 years ago

NicolasKieffer commented 4 years ago

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

kermitt2 commented 4 years ago

The domain for the HTML document must be cloud.science-miner.com right? Not mandatory that this is served by the glutton web app?

NicolasKieffer commented 4 years ago

Yes, cloud.science-miner.com will be correct.

Note : Domain of HTML document doesn't matter. Any other domain name you own will be also correct.

kermitt2 commented 4 years ago

here it is http://cloud.science-miner.com/grobid/viewer.html