doiutils

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package doiutils provides a set of functions to work with DOIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DOIResolver

func DOIResolver(doi string, sandbox bool) string

DOIResolver returns a DOI resolver for a given DOI

func GetDOIRA

func GetDOIRA(doi string) (string, bool)

GetDOIRA returns the DOI registration agency for a given DOI or prefix

func IsRogueScholarDOI added in v0.2.14

func IsRogueScholarDOI(doi string) bool

IsRogueScholarDOI checks if a DOI is from Rogue Scholar

func NormalizeDOI

func NormalizeDOI(doi string) string

NormalizeDOI normalizes a DOI

func PrefixFromUrl

func PrefixFromUrl(str string) (string, error)

PrefixFromUrl extracts DOI prefix from URL

func ValidateDOI

func ValidateDOI(doi string) (string, bool)

ValidateDOI validates a DOI

func ValidatePrefix

func ValidatePrefix(doi string) (string, bool)

ValidatePrefix validates a DOI prefix for a given DOI

Types

This section is empty.

Jump to

Keyboard shortcuts

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