Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:exposing_metadata [2017/11/12 19:53]
127.0.0.1 external edit
dev:exposing_metadata [2018/06/06 17:23]
nbudak [Force Zotero to refresh metadata]
Line 1: Line 1:
-<​html><​p id="​zotero-5-update-warning"​ style="​color:​ red; font-weight:​ bold">​We’re 
-in the process of updating the documentation for 
-<a href="​https://​www.zotero.org/​blog/​zotero-5-0">​Zotero 5.0</​a>​. Some documentation 
-may be outdated in the meantime. Thanks for your understanding.</​p></​html>​ 
- 
- 
 ====== Exposing Your Metadata ====== ====== Exposing Your Metadata ======
  
Line 51: Line 45:
         * **Bibliontology/​Dublin-Core-like/​Zotero RDF**. [[http://​bibliontology.com/​|Bibliontology RDF]] can store any information that Zotero can save. Dublin Core is standardized and extremely common, but is limited in its expressive abilities. The legacy Zotero RDF format is also supported.         * **Bibliontology/​Dublin-Core-like/​Zotero RDF**. [[http://​bibliontology.com/​|Bibliontology RDF]] can store any information that Zotero can save. Dublin Core is standardized and extremely common, but is limited in its expressive abilities. The legacy Zotero RDF format is also supported.
         * **[[http://​www.bibtex.org/​|BibTeX]]**,​ **[[http://​www.refman.com/​support/​risformat_intro.asp|RIS]]**,​ and **[[http://​auditorymodels.org/​jba/​bibs/​NetBib/​Tools/​bp-0.2.97/​doc/​endnote.html|Bibix/​EndNote(R)/​Refer]]**. These formats are more limited in their ability to describe metadata, but have good code library support and they are simpler to generate.         * **[[http://​www.bibtex.org/​|BibTeX]]**,​ **[[http://​www.refman.com/​support/​risformat_intro.asp|RIS]]**,​ and **[[http://​auditorymodels.org/​jba/​bibs/​NetBib/​Tools/​bp-0.2.97/​doc/​endnote.html|Bibix/​EndNote(R)/​Refer]]**. These formats are more limited in their ability to describe metadata, but have good code library support and they are simpler to generate.
 +        * //Note that the unAPI website appears to be no longer maintained, but sites built using the unAPI specification will still work with Zotero. See [[/​forum/​discussion/​50327/​is-unapi-dead-because-their-website-sure-seems-to-be|here]] for a discussion.//​
  
 ===== Force Zotero to refresh metadata ===== ===== Force Zotero to refresh metadata =====
Line 56: 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: 2018/06/06 17:23 by nbudak