aboutsummaryrefslogtreecommitdiffstats
path: root/skate/reduce.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/reduce.go')
-rw-r--r--skate/reduce.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/skate/reduce.go b/skate/reduce.go
index b28d976..3bb2466 100644
--- a/skate/reduce.go
+++ b/skate/reduce.go
@@ -511,7 +511,13 @@ func matchedRefsExtend(matched []*BiblioRef, refs []*Ref, stats *statsAugment) [
bref.SourceReleaseStage = r.ReleaseStage
bref.SourceWorkIdent = r.WorkIdent
bref.SourceYear = fmt.Sprintf("%d", r.ReleaseYear)
- bref.TargetUnstructured = r.Biblio.Unstructured
+ if r.Biblio.Unstructured != "" {
+ bref.TargetUnstructured = r.Biblio.Unstructured
+ } else {
+ // TODO: create CSL subdoc
+ log.Printf("to-csl: %v", r)
+ bref.TargetCSL = nil
+ }
// Reuse fields for debugging, for now.
bref.MatchStatus = StatusUnmatched.Short()
bref.MatchReason = ReasonUnknown.Short()