crossref

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Family   string `json:"family"`
	Given    string `json:"given"`
	Sequence string `json:"sequence"`
	Name     string `json:"name"`
	ORCID    string
}

Author field in the citation

type Citation

type Citation struct {
	Title          []string `json:"title"`
	Abstract       string   `json:"abstract"`
	Author         []Author `json:"author"`
	ContainerTitle []string `json:"container-title"`
	Publisher      string   `json:"publisher"`
	Subject        []string `json:"subject"`
	Language       string   `json:"language"`
	Type           string   `json:"type"`
	ISSN           []string
	Source         string `json:"source"` // eg CrossRef
	Issued         struct {
		DateParts []DateParts `json:"date-parts"`
	} `json:"issued"`
}

Citation data

func GetCitation

func GetCitation(doi string) (*Citation, error)

func (Citation) AuthorStrings

func (c Citation) AuthorStrings(f func(a *Author) string) []string

AuthorStrings maps citation authors to a slice of strings using the function

type DateParts

type DateParts [3]int

DateParts [y,m,d]

Jump to

Keyboard shortcuts

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