mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix serialization of anonymous nodes with no incoming arcs.
Fixes #139, sz.incoming[subject] is undefined during Dublin Core Unqualified RDF export
This commit is contained in:
parent
05acc6dea9
commit
1f53fc8202
1 changed files with 1 additions and 1 deletions
|
|
@ -758,7 +758,7 @@ $rdf.Serializer = function () {
|
|||
|
||||
var attrs = '';
|
||||
if(subject.termType == 'bnode') {
|
||||
if(sz.incoming[subject].length != 1) { // not an anonymous bnode
|
||||
if(!sz.incoming[subject] || sz.incoming[subject].length != 1) { // not an anonymous bnode
|
||||
attrs = ' rdf:nodeID="' + subject.toNT().slice(2) + '"';
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue