Fix breakage from ea8b15a44a

This commit is contained in:
Dan Stillman 2018-08-12 04:09:26 -04:00
parent 6d299f85f8
commit 6112002003

View file

@ -3081,7 +3081,9 @@ Zotero.Translate.IO._RDFSandbox.prototype = {
const rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
var values = this.getStatementsMatching(resource, rdf + 'value');
if(values && values.length) return this.getResourceURI(values[0]);
if (values && values.length) {
return values[0][2];
}
if(resource.uri) return resource.uri;
if(resource.toNT == undefined) throw new Error("Zotero.RDF: getResourceURI called on invalid resource");