ieee

package
v0.1.330 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceID              = "89"
	Format                = "ElectronicArticle"
	Collection            = "IEEE Xplore Library"
	TechnicalCollectionID = "sid-89-col-ieee"
	Genre                 = "article"
	DefaultRefType        = "EJOUR"
)

Variables

View Source
var (
	ErrNoDate       = errors.New("no date found")
	ErrNoIdentifier = errors.New("missing identifier")
)

Functions

This section is empty.

Types

type Publication

type Publication struct {
	xml.Name          `xml:"publication"`
	Title             string `xml:"title"`
	TitleAbbreviation string `xml:"titleabbrev"`
	Normtitle         string `xml:"normtitle"`
	Publicationinfo   struct {
		Idamsid               string   `xml:"idamsid"`
		Publicationtype       string   `xml:"publicationtype"`
		Publicationsubtype    string   `xml:"publicationsubtype"`
		Ieeeabbrev            string   `xml:"ieeeabbrev"`
		Acronym               string   `xml:"acronym"`
		Pubstatus             string   `xml:"pubstatus"`
		Publicationopenaccess string   `xml:"publicationopenaccess"`
		StandardID            string   `xml:"standard_id"`
		Packagemembers        []string `xml:"packagememberset>packagemember"`
		Isbn                  []struct {
			Isbntype  string `xml:"isbntype,attr"`
			Mediatype string `xml:"mediatype,attr"`
			Value     string `xml:",chardata"`
		} `xml:"isbn"`
		BmsProductNumber struct {
			MediaType string `xml:"mediatype,attr"`
			Value     string `xml:",chardata"`
		}
		TCN  string `xml:"tcn"`
		Issn []struct {
			Mediatype string `xml:"mediatype,attr"`
			Value     string `xml:",chardata"`
		} `xml:"issn"`
		Pubtopicalbrowse []string `xml:"pubtopicalbrowseset>pubtopicalbrowse"`
		Copyrightgroup   struct {
			Copyright []struct {
				Year   string `xml:"year"`
				Holder string `xml:"holder"`
			}
		}
		PublisherNames []string `xml:"publisher>publishername"`
		Holdstatus     string   `xml:"holdstatus"`
		Confgroup      struct {
			ConfTitle string `xml:"conftitle"`
			Confdate  []struct {
				Confdatetype string `xml:"confdatetype,attr"`
				Year         string `xml:"year"`
				Month        string `xml:"month"`
				Day          string `xml:"day"`
			} `xml:"confdate"`
			Conflocation   string `xml:"conflocation"`
			Confcountry    string `xml:"confcountry"`
			ConferenceType string `xml:"conference_type"`
			DoiPermission  string `xml:"doi_permission"`
		} `xml:"confgroup"`
		Amsid string `xml:"amsid"`
		Coden string `xml:"coden"`
	} `xml:"publicationinfo"`
	Volume struct {
		Volumeinfo struct {
			Year      string `xml:"year"`
			Idamsid   string `xml:"idamsid"`
			Notegroup string `xml:"notegroup"`
			Issue     struct {
				Amsid         string `xml:"amsid"`
				Amscreatedate string `xml:"amscreatedate"`
				Issuestatus   string `xml:"issuestatus"`
			} `xml:"issue"`
			Volumenum string `xml:"volumenum"`
		} `xml:"volumeinfo"`
		Article struct {
			Title       string `xml:"title"`
			Articleinfo struct {
				Articleseqnum          string `xml:"articleseqnum"`
				Csarticlesortorder     string `xml:"csarticlesortorder"`
				Articledoi             string `xml:"articledoi"`
				Idamsid                string `xml:"idamsid"`
				Articlestatus          string `xml:"articlestatus"`
				Articleopenaccess      string `xml:"articleopenaccess"`
				Articleshowflag        string `xml:"articleshowflag"`
				Issuenum               string `xml:"issuenum"`
				Articleplagiarizedflag string `xml:"articleplagiarizedflag"`
				Articlenodoiflag       string `xml:"articlenodoiflag"`
				Articlecoverimageflag  string `xml:"articlecoverimageflag"`
				Csarticlehtmlflag      string `xml:"csarticlehtmlflag"`
				Articlereferenceflag   string `xml:"articlereferenceflag"`
				Articlepeerreviewflag  string `xml:"articlepeerreviewflag"`
				Holdstatus             string `xml:"holdstatus"`
				ArticleLicense         string `xml:"articlelicense"`
				ArticleLicenseURI      string `xml:"article_license_uri"`
				Articlecopyright       struct {
					Holderisieee string `xml:"holderisieee,attr"`
					Year         string `xml:"year,attr"`
				} `xml:"articlecopyright"`
				Abstract    string `xml:"abstract"`
				Authorgroup struct {
					Author []struct {
						Normname    string `xml:"normname"`
						Surname     string `xml:"surname"`
						Affiliation string `xml:"affiliation"`
						Firstname   string `xml:"firstname"`
					} `xml:"author"`
				} `xml:"authorgroup"`
				Date []struct {
					Datetype string `xml:"datetype,attr"`
					Year     string `xml:"year"`
					Month    string `xml:"month"`
					Day      string `xml:"day"`
				} `xml:"date"`
				Numpages string `xml:"numpages"`
				Size     string `xml:"size"`
				Filename []struct {
					Docpartition string `xml:"docpartition,attr"`
					Filetype     string `xml:"filetype,attr"`
				} `xml:"filename"`
				Artpagenums struct {
					Endpage   string `xml:"endpage,attr"`
					Startpage string `xml:"startpage,attr"`
				} `xml:"artpagenums"`
				Numreferences string `xml:"numreferences"`
				Amsid         string `xml:"amsid"`
				Csarticleid   string `xml:"csarticleid"`
				Keywordset    struct {
					Keywordtype string `xml:"keywordtype,attr"`
					Keyword     []struct {
						Term string `xml:"keywordterm"`
					} `xml:"keyword"`
				} `xml:"keywordset"`
			} `xml:"articleinfo"`
		} `xml:"article"`
	} `xml:"volume"`
}

Publication represents a publication.

func (Publication) Authors

func (p Publication) Authors() []finc.Author

Authors returns authors.

func (Publication) Date

func (p Publication) Date() (time.Time, error)

Date returns the date of the publication. There are multiple dates, "LastEdit", "LastInspecUpd", "OriginalPub", "ePub" - use OriginalPub.

func (Publication) ISBNList

func (p Publication) ISBNList() (isbns []string)

ISBNList returns a list of ISBN.

func (Publication) OnlineISSN

func (p Publication) OnlineISSN() (issns []string)

OnlineISSN returns the online ISSN found in the publication.

func (Publication) PageCount

func (p Publication) PageCount() string

PageCount the page count as string.

func (Publication) PaperISSN

func (p Publication) PaperISSN() (issns []string)

PaperISSN returns the online ISSN found in the publication.

func (Publication) ToIntermediateSchema

func (p Publication) ToIntermediateSchema() (*finc.IntermediateSchema, error)

ToIntermediateSchema does a type conversion only.

Jump to

Keyboard shortcuts

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