Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
dev:client_coding:changes_in_zotero_2.1 [2011/08/21 04:41] – [Changes to translators] simon | dev:client_coding:changes_in_zotero_2.1 [2017/11/12 19:53] – external edit 127.0.0.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> |
| |
| |
====== Changes in Zotero 2.1 ====== | ====== Changes in Zotero 2.1 ====== |
| |
Zotero 2.1b6 and later support extensible locate engines. For further details, see [[dev:creating_locate_engines_using_opensearch|Creating Locate Engines using OpenSearch]]. | Zotero 2.1b6 and later support extensible locate engines. For further details, see [[dev:creating_locate_engines_using_opensearch|Creating Locate Engines using OpenSearch]]. |
| |
====== Changes in Zotero 2.1.9 (not yet released) ====== | ===== Shorthand syntax ===== |
| |
===== Changes to translators ===== | |
| |
==== Shorthand syntax ==== | |
Z is now a shortcut for Zotero in translators, and ZU is a shortcut for Zotero.Utilities. | Z is now a shortcut for Zotero in translators, and ZU is a shortcut for Zotero.Utilities. |
| |
==== XPath utility functions ==== | ===== XPath utility functions ===== |
* <code>Zotero.Utilities.xpath(element, xpath[, namespaces])</code> Accepts a DOM element, document, or array of elements or documents and evaluates an XPath, optionally interpreting namespace prefixes using a object whose keys correspond to namespace prefixes and whose values correspond to namespace URIs. The result is an array of nodes matching the XPath. | * <code>Zotero.Utilities.xpath(element, xpath[, namespaces])</code> Accepts a DOM element, document, or array of elements or documents and evaluates an XPath, optionally interpreting namespace prefixes using a object whose keys correspond to namespace prefixes and whose values correspond to namespace URIs. The result is an array of nodes matching the XPath. |
* <code>Zotero.Utilities.xpathText(element, xpath[, namespaces[, delimiter]])</code> Behaves similarly to Zotero.Utilities.xpath, but the result is the textContent of all matching nodes, joined by a delimiter if more than one node matched. If no delimiter is specified, ", " is used. | * <code>Zotero.Utilities.xpathText(element, xpath[, namespaces[, delimiter]])</code> Behaves similarly to Zotero.Utilities.xpath, but the result is the textContent of all matching nodes, joined by a delimiter if more than one node matched. If no delimiter is specified, ", " is used. |