aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-08-05 13:25:31 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-08-05 13:25:31 +0200
commite3b0b456a55d39630e393195a369f6ffa3bc9ac2 (patch)
tree36306a5ec78450fe30cc1ef594653691b01ff1ab /skate
parent34c0b1382d7da5041b2209ce6939026d644a0c63 (diff)
downloadrefcat-e3b0b456a55d39630e393195a369f6ffa3bc9ac2.tar.gz
refcat-e3b0b456a55d39630e393195a369f6ffa3bc9ac2.zip
map: only include complete rows
Diffstat (limited to 'skate')
-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),