diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-19 00:01:51 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-19 00:01:51 +0200 |
commit | 2e16173c217c6201c226e48b38f350bfd377393e (patch) | |
tree | fec07c23b74733be39a5ef7183612da22c9c48b4 /skate/schema.go | |
parent | dec49fea12f7809b0ec80dca5d8d688dc1124a57 (diff) | |
download | refcat-2e16173c217c6201c226e48b38f350bfd377393e.tar.gz refcat-2e16173c217c6201c226e48b38f350bfd377393e.zip |
zippy: add test
Diffstat (limited to 'skate/schema.go')
-rw-r--r-- | skate/schema.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/skate/schema.go b/skate/schema.go index 6b335a3..af920ee 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -348,13 +348,10 @@ type BiblioRef struct { MatchReason string `json:"match_reason,omitempty"` TargetUnstructured string `json:"target_unstructured,omitempty"` TargetCSL string `json:"target_csl,omitempty"` - // Extra struct { - // Ref Ref `json:"ref,omitempty"` // keep the raw original ref around (e.g. for unmatched) - // } `json:"extra,omitempty"` } // Hash returns a string that will be the same, if source and target are -// equals; different otherwise. +// equal; different otherwise. This can be used to detect duplicate links. func (b *BiblioRef) LinkHash() string { switch { case b.SourceReleaseIdent != "" && b.TargetReleaseIdent != "": |