Fix breakage from ea8b15a44a
This commit is contained in:
parent
6d299f85f8
commit
6112002003
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue