openaccess

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type COREConnector

type COREConnector struct {
	// contains filtered or unexported fields
}

func NewCOREConnector

func NewCOREConnector(httpClient transport.HTTPClient) COREConnector

func (COREConnector) Name

func (COREConnector) Name() string

func (COREConnector) Search

type DOAJConnector

type DOAJConnector struct {
	// contains filtered or unexported fields
}

func NewDOAJConnector

func NewDOAJConnector(httpClient transport.HTTPClient) DOAJConnector

func (DOAJConnector) Name

func (DOAJConnector) Name() string

func (DOAJConnector) Search

type OpenAccessCandidate

type OpenAccessCandidate struct {
	PaperTitle               string `json:"paperTitle"`
	DOI                      string `json:"doi,omitempty"`
	Source                   string `json:"source"`
	URL                      string `json:"url"`
	License                  string `json:"license,omitempty"`
	OAStatus                 string `json:"oaStatus,omitempty"`
	Provenance               string `json:"provenance"`
	Attribution              string `json:"attribution,omitempty"`
	RateLimitPolicy          string `json:"rateLimitPolicy,omitempty"`
	APIProvenance            string `json:"apiProvenance,omitempty"`
	ReviewerApprovalRequired bool   `json:"reviewerApprovalRequired"`
}

type OpenAccessCandidateComparison

type OpenAccessCandidateComparison struct {
	SchemaVersion string                `json:"schemaVersion"`
	Candidates    []OpenAccessCandidate `json:"candidates"`
}

func CompareOpenAccessCandidates

func CompareOpenAccessCandidates(records []library.PaperRecord) OpenAccessCandidateComparison

type OpenAccessResolvePlan

type OpenAccessResolvePlan struct {
	SchemaVersion      string                      `json:"schemaVersion"`
	DOI                string                      `json:"doi"`
	Sources            []OpenAccessResolveSource   `json:"sources"`
	HumanGates         []string                    `json:"humanGates"`
	UnsupportedSources []UnsupportedFullTextSource `json:"unsupportedSources"`
}

OpenAccessResolvePlan is a legal, provenance-first plan for resolving DOI full-text candidates. It intentionally does not download full text or approve acquisition.

func BuildOpenAccessResolvePlan

func BuildOpenAccessResolvePlan(doi string) (OpenAccessResolvePlan, error)

BuildOpenAccessResolvePlan builds a DOI-specific legal OA source plan.

type OpenAccessResolveSource

type OpenAccessResolveSource struct {
	ID                 string   `json:"id"`
	Label              string   `json:"label"`
	Kind               string   `json:"kind"`
	Lookup             string   `json:"lookup"`
	Signals            []string `json:"signals"`
	LicensePolicy      string   `json:"licensePolicy"`
	AcquisitionPolicy  string   `json:"acquisitionPolicy"`
	ProvenanceRequired []string `json:"provenanceRequired"`
}

OpenAccessResolveSource describes one legal OA discovery source.

func LegalOpenAccessResolveSources

func LegalOpenAccessResolveSources() []OpenAccessResolveSource

LegalOpenAccessResolveSources returns generic legal OA resolver coverage.

type UnsupportedFullTextSource

type UnsupportedFullTextSource struct {
	ID     string `json:"id"`
	Reason string `json:"reason"`
}

UnsupportedFullTextSource documents intentionally unsupported sources.

func UnsupportedFullTextSources

func UnsupportedFullTextSources() []UnsupportedFullTextSource

UnsupportedFullTextSources returns sources intentionally excluded from OA workflows.

Jump to

Keyboard shortcuts

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