Documentation
¶
Overview ¶
Package oafilter implements the core of span-oa-filter: it sets x.oa to true on intermediate schema records that a given KBART file (or free content list) validates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
KbartFile string
FreeContentFile string
Verbose bool
BatchSize int
BatchMemoryLimit int64
BestEffort bool
ExcludeSids []string
OpenAccessSids []string
}
Config holds the tunables for an oa-filter run.
type FreeContentItem ¶
type FreeContentItem struct {
FreeContent string `json:"freeContent"`
MegaCollection string `json:"mega_collection"`
Shard string `json:"shard"`
Sid string `json:"sid"`
}
FreeContentItem is a single item from the API response (2017-12-01).
type FreeContentLookup ¶
FreeContentLookup maps a string of the form "Sid:MegaCollection" to a bool, indicating free access (true) and uncertainty or closed access (false).
Click to show internal directories.
Click to hide internal directories.