aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-25 15:38:31 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-25 15:38:31 -0700
commit3d6ea95540d1e5b225b2507808d5318ecea05b6b (patch)
tree98e9605d88ec7d02fe8cc5aa76da3cb0cb010af1 /skate
parenta2cae69110df162b12b4a4aad33785fa35f6e5e8 (diff)
downloadrefcat-3d6ea95540d1e5b225b2507808d5318ecea05b6b.tar.gz
refcat-3d6ea95540d1e5b225b2507808d5318ecea05b6b.zip
skate: pass-through match_provenance in more situations
Diffstat (limited to 'skate')
-rw-r--r--skate/reduce.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/skate/reduce.go b/skate/reduce.go
index 361d7ba..76b511e 100644
--- a/skate/reduce.go
+++ b/skate/reduce.go
@@ -408,6 +408,7 @@ func ZippyWayback(refs, cdx io.Reader, w io.Writer) error {
cdx.Summary.Ok, cdx.Line)
}
}
+ bref.MatchProvenance = ref.RefSource
bref.MatchStatus = StatusExact.Short()
bref.MatchReason = ReasonURLMatch.Short()
if err := enc.Encode(bref); err != nil {
@@ -605,6 +606,7 @@ func matchedRefsExtend(matched []*BiblioRef, refs []*Ref, stats *statsAugment) [
}
}
// Reuse fields for debugging, for now.
+ bref.MatchProvenance = r.RefSource
bref.MatchStatus = StatusUnmatched.Short()
bref.MatchReason = ReasonUnknown.Short()
matched = append(matched, &bref)