From e3b0b456a55d39630e393195a369f6ffa3bc9ac2 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 5 Aug 2021 13:25:31 +0200 Subject: map: only include complete rows --- skate/map.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'skate') diff --git a/skate/map.go b/skate/map.go index ad62328..145891d 100644 --- a/skate/map.go +++ b/skate/map.go @@ -426,6 +426,9 @@ func MapperBrefIdentifierTable(p []byte) (field [][]byte, err error) { if err := json.Unmarshal(p, &bref); err != nil { return nil, err } + if bref.SourceDOI == "" || bref.TargetDOI == "" { + return nil, nil + } return [][]byte{ []byte(bref.SourceReleaseIdent), []byte(bref.TargetReleaseIdent), -- cgit v1.2.3