Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:exposing_metadata [2017/11/22 05:45] – Remove Zotero 5 warning bwiernikdev:exposing_metadata [2018/06/06 17:23] – [Force Zotero to refresh metadata] nbudak
Line 51: Line 51:
 Websites for which metadata changes without a page reload should fire a ZoteroItemUpdated event to tell Zotero to re-detect metadata on the page. This is supported in Zotero 3.0 and later. Websites for which metadata changes without a page reload should fire a ZoteroItemUpdated event to tell Zotero to re-detect metadata on the page. This is supported in Zotero 3.0 and later.
  
-<code javascript>var ev = document.createEvent('HTMLEvents'); +<code javascript> 
-ev.initEvent('ZoteroItemUpdated', true, true); +document.dispatchEvent(new Event('ZoteroItemUpdated', 
-document.dispatchEvent(ev);</code>+    bubbles: true, 
 +    cancelable: true 
 +})
 +</code>
 ===== Zotero Web Translators ===== ===== Zotero Web Translators =====
  
 Exposing bibliographic metadata through an open standard is very powerful (and also benefits non-Zotero users!). However, if you have little control over the way your website is built, you may have to [[dev/translators|create a Zotero web translator]] for Zotero-compatibility. Translators have some downsides: apart from the fact that they are a Zotero-specific solution, translators can break easily if the structure of the targeted website changes. Exposing bibliographic metadata through an open standard is very powerful (and also benefits non-Zotero users!). However, if you have little control over the way your website is built, you may have to [[dev/translators|create a Zotero web translator]] for Zotero-compatibility. Translators have some downsides: apart from the fact that they are a Zotero-specific solution, translators can break easily if the structure of the targeted website changes.
dev/exposing_metadata.txt · Last modified: 2024/02/24 01:59 by dstillman