outbreak-info / outbreak.info-resources

A curated repository of metadata of resources on COVID-19 and SARS-CoV-2
MIT License
0 stars 4 forks source link

Add citation meta tags to head to enable Zotero Connector integration #64

Open flaneuse opened 4 years ago

flaneuse commented 4 years ago

To use the Zotero Connector Chrome plugin to save a citation into a Zotero (reference manager library), the metadata of the resource needs to be embedded as <meta> tags in the <head>, as described in exposing metadata. For all resource pages like outbreak.info/publication/pmid32305035, convert the metadata to the appropriate Dublin Core format and embed as meta tags.

flaneuse commented 4 years ago

tags have been added via vue-meta, but Zotero doesn't recognize them (only sees generic webpage tags. Possibly related to async loading of the data-- Zotero never updates after SPA updates? Added an event push when the data uploads, but doesn't solve the issue.

      document.dispatchEvent(new Event('ZoteroItemUpdated', {
        bubbles: true,
        cancelable: true
      }))