aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skate/map.go3
1 files changed, 3 insertions, 0 deletions
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),