diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-07-25 15:38:31 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-07-25 15:38:31 -0700 |
commit | 3d6ea95540d1e5b225b2507808d5318ecea05b6b (patch) | |
tree | 98e9605d88ec7d02fe8cc5aa76da3cb0cb010af1 /skate | |
parent | a2cae69110df162b12b4a4aad33785fa35f6e5e8 (diff) | |
download | refcat-3d6ea95540d1e5b225b2507808d5318ecea05b6b.tar.gz refcat-3d6ea95540d1e5b225b2507808d5318ecea05b6b.zip |
skate: pass-through match_provenance in more situations
Diffstat (limited to 'skate')
-rw-r--r-- | skate/reduce.go | 2 |
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) |