Problem with Open Graph html meta tags interfering with doi meta tags for chrome extension

33 views
Skip to first unread message

Sam Raha

unread,
May 21, 2023, 10:13:30 PM5/21/23
to zotero-dev
Hi, 

I'm a developer over at Litmaps, I'm currently following your instructions as per document for providing support for the chrome extension plugin: https://www.zotero.org/support/dev/exposing_metadata#using_an_open_standard_for_exposing_metadata

The way i am exposing my articles are through hidden doi spans in React i.e.  <span className="hidden">DOI: {article.doi}</span>
I am also utilising meta tags at the head of my html. 

This works fine and the Zotero chrome connector plugin picks up my articles just fine. However, this only works when I remove my open graph meta tags, i.e <meta property="og:type" content="website" />
Would you know why open graph meta tags interfere with your extension reading through the meta tags? I've even tried pushing the doi meta tags at the start of the head incase there was an ordering problem, but that didn't do anything.

Are you able to provide any assistance here?

Kind regards,

Sam Raha
Developer at Litmaps


Dan Stillman

unread,
May 25, 2023, 5:55:01 AM5/25/23
to zoter...@googlegroups.com
The Embedded Metadata translator has higher priority than the DOI translator. If the DOIs are being detected, you'll still see a DOI option if you right-click on the save button and look in the menu.

What else are you putting in the OG tags currently?

- Dan
Reply all
Reply to author
Forward
0 new messages