diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-08-05 13:25:31 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-08-05 13:25:31 +0200 |
commit | e3b0b456a55d39630e393195a369f6ffa3bc9ac2 (patch) | |
tree | 36306a5ec78450fe30cc1ef594653691b01ff1ab | |
parent | 34c0b1382d7da5041b2209ce6939026d644a0c63 (diff) | |
download | refcat-e3b0b456a55d39630e393195a369f6ffa3bc9ac2.tar.gz refcat-e3b0b456a55d39630e393195a369f6ffa3bc9ac2.zip |
map: only include complete rows
-rw-r--r-- | skate/map.go | 3 |
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), |