doisniffer

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: GPL-3.0 Imports: 8 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. Without an update key, it writes the document identifier and the DOI found, tab separated.

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