From ea8b15a44a485c99eee7a677bbb7dc691027b3e4 Mon Sep 17 00:00:00 2001 From: Philipp Zumstein Date: Sat, 11 Aug 2018 20:36:43 +0200 Subject: [PATCH] Replace getTargets with getStatementsMatching (#768) As suggested in the same file `getTargets` is deprecated since 2.1 --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 4ba9a8d8da..b051226df8 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -3080,7 +3080,7 @@ Zotero.Translate.IO._RDFSandbox.prototype = { if(typeof(resource) == "string") return resource; const rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; - var values = this.getTargets(resource, rdf + 'value'); + var values = this.getStatementsMatching(resource, rdf + 'value'); if(values && values.length) return this.getResourceURI(values[0]); if(resource.uri) return resource.uri;