Skip to content

Commit

Permalink
fixed empty cites
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba committed Oct 23, 2024
1 parent 7156eec commit 7de516a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gg2rdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ export function gg2rdf(
) {
t.properties["cito:cites"] = t.properties["cito:cites"]
.difference(t.properties["trt:deprecates"]);

if (t.properties["cito:cites"].size === 0) {
delete t.properties["cito:cites"];
}
}

outputSubject(t);
Expand Down

0 comments on commit 7de516a

Please sign in to comment.