doisniffer

package
v0.2.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package doisniffer implements the core of span-doisniffer: it sniffs out DOI from VuFind SOLR JSON documents and optionally updates docs with a found DOI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config, r io.Reader, w io.Writer) error

Run reads SOLR JSON documents from r, sniffs out DOI and writes the (optionally updated) documents to w.

Types

type Config

type Config struct {
	SkipUnmatched bool
	UpdateKey     string
	IdentifierKey string
	IgnoreKeys    string // comma separated regular expressions
	NumWorkers    int
	BatchSize     int
}

Config holds the tunables for a doisniffer run.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL