diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index ca827f8062..d6b34e52ef 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2639,6 +2639,11 @@ Zotero.Translate.IO._RDFSandbox.prototype = { */ "getResourceURI":function(resource) { 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'); + if(values && values.length) return this.getResourceURI(values[0]); + if(resource.uri) return resource.uri; if(resource.toNT == undefined) throw new Error("Zotero.RDF: getResourceURI called on invalid resource"); return resource.toNT();