myfair

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameTypeReverse = map[string]NameType{
	"":               NameTypeDefault,
	"Organizational": NameTypeOrganizational,
	"Personal":       NameTypePersonal,
}
View Source
var ResourceTypeReverse = map[string]ResourceType{
	string(ResourceTypeBook):                ResourceTypeBook,
	string(ResourceTypeBookSection):         ResourceTypeBookSection,
	string(ResourceTypeThesis):              ResourceTypeThesis,
	string(ResourceTypeJournalArticle):      ResourceTypeJournalArticle,
	string(ResourceTypeMagazineArticle):     ResourceTypeMagazineArticle,
	string(ResourceTypeOnlineResource):      ResourceTypeOnlineResource,
	string(ResourceTypeReport):              ResourceTypeReport,
	string(ResourceTypeWebpage):             ResourceTypeWebpage,
	string(ResourceTypeConferencePaper):     ResourceTypeConferencePaper,
	string(ResourceTypePatent):              ResourceTypePatent,
	string(ResourceTypeNote):                ResourceTypeNote,
	string(ResourceTypeArtisticPerformance): ResourceTypeArtisticPerformance,
	string(ResourceTypeDataset):             ResourceTypeDataset,
	string(ResourceTypePresentation):        ResourceTypePresentation,
	string(ResourceTypePhysicalObject):      ResourceTypePhysicalObject,
	string(ResourceTypeComputerProgram):     ResourceTypeComputerProgram,
	string(ResourceTypeOther):               ResourceTypeOther,
	string(ResourceTypeArtwork):             ResourceTypeArtwork,
	string(ResourceTypeAttachment):          ResourceTypeAttachment,
	string(ResourceTypeAudioRecording):      ResourceTypeAudioRecording,
	string(ResourceTypeDocument):            ResourceTypeDocument,
	string(ResourceTypeEmail):               ResourceTypeEmail,
	string(ResourceTypeEncyclopediaArticle): ResourceTypeEncyclopediaArticle,
	string(ResourceTypeFilm):                ResourceTypeFilm,
	string(ResourceTypeInstantMessage):      ResourceTypeInstantMessage,
	string(ResourceTypeInterview):           ResourceTypeInterview,
	string(ResourceTypeLetter):              ResourceTypeLetter,
	string(ResourceTypeManuscript):          ResourceTypeManuscript,
	string(ResourceTypeMap):                 ResourceTypeMap,
	string(ResourceTypeNewspaperArticle):    ResourceTypeNewspaperArticle,
	string(ResourceTypePodcast):             ResourceTypePodcast,
	string(ResourceTypeRadioBroadcast):      ResourceTypeRadioBroadcast,
	string(ResourceTypeTvBroadcast):         ResourceTypeTvBroadcast,
	string(ResourceTypeVideoRecording):      ResourceTypeVideoRecording,
}

Functions

This section is empty.

Types

type Core

type Core struct {
	// DataCite: #1 Identifier (with mandatory type sub-property)
	Identifier []Identifier `json:"identifier"` // Todo: identifier druch identifiers ersetzen

	// DataCite: #2 Person (with optional given name, family name, name identifier
	//              and affiliation sub-properties)
	Person []Person `json:"person"` // Todo: person durch creators ersetzen

	// DataCite: #3 Title (with optional type sub-properties
	Title []Title `json:"title"` // todo: json anpassen

	// DataCite: #4 Publisher
	Publisher string `json:"publisher"` // Todo: create struct

	// DataCite: #5 Publicationyear
	PublicationYear string `json:"publicationYear"`

	// DataCite: #10 ResourceType (with mandatory general type description subproperty)
	ResourceType ResourceType `json:"resourceType"`

	Rights  string `json:"rights,omitempty"`
	License string `json:"license,omitempty"`

	Media  []*Media `json:"media"`
	Poster *Media   `json:"poster"`
}

type CoreTitleType

type CoreTitleType string
const (
	TitleTypeMain             CoreTitleType = ""
	TitleTypeAlternativeTitle CoreTitleType = "AlternativeTitle"
	TitleTypeSubTitle         CoreTitleType = "Subtitle"
	TitleTypeTranslatedTitle  CoreTitleType = "TranslatedTitle"
	TitleTypeOther            CoreTitleType = "Other"
)

type Identifier

type Identifier struct {
	Value          string                `json:"value"` // Todo: value durch identifier ersetzen
	IdentifierType RelatedIdentifierType `json:"identifierType"`
}

type Media

type Media struct {
	Name        string `json:"name"`
	Mimetype    string `json:"mimetype"`
	Type        string `json:"type"`
	Uri         string `json:"uri"`
	Width       int64  `json:"width,omitempty"`
	Height      int64  `json:"height,omitempty"`
	Orientation int64  `json:"orientation,omitempty"`
	Duration    int64  `json:"duration,omitempty"`
	Fulltext    string `json:"fulltext,omitempty"`
}

type Name

type Name struct {
	Value string   `json:"value"`
	Lang  string   `json:"lang,omitempty"`
	Type  NameType `json:"type,omitempty"`
}

type NameIdentifier

type NameIdentifier struct {
	Value                string `json:"value,omitempty"`
	Lang                 string `json:"lang,omitempty"`
	SchemeURI            string `json:"schemeURI,omitempty"`
	NameIdentifierScheme string `json:"nameIdentifierScheme,omitempty"`
}

type NameType

type NameType string
const (
	NameTypeDefault        NameType = ""
	NameTypeOrganizational NameType = "Organizational"
	NameTypePersonal       NameType = "Personal"
)

type Person

type Person struct {
	PersonType     PersonType     `json:"personType"`
	PersonName     Name           `json:"personName"`
	GivenName      string         `json:"givenName,omitempty"`
	FamilyName     string         `json:"familyName,omitempty"`
	Affiliation    string         `json:"affiliation,omitempty"`
	NameIdentifier NameIdentifier `json:"nameIdentifier,omitempty"`
}

type PersonType

type PersonType string
const (
	PersonTypeAuthor                PersonType = "Author"
	PersonTypeArtist                PersonType = "Artist"
	PersonTypeContactPerson         PersonType = "ContactPerson"
	PersonTypeDataCollector         PersonType = "DataCollector"
	PersonTypeDataCurator           PersonType = "DataCurator"
	PersonTypeDataManager           PersonType = "DataManager"
	PersonTypeDistributor           PersonType = "Distributor"
	PersonTypeEditor                PersonType = "Editor"
	PersonTypeHostingInstitution    PersonType = "HostingInstitution"
	PersonTypeOther                 PersonType = "Other"
	PersonTypeProducer              PersonType = "Producer"
	PersonTypeProjectLeader         PersonType = "ProjectLeader"
	PersonTypeProjectManager        PersonType = "ProjectManager"
	PersonTypeProjectMember         PersonType = "ProjectMember"
	PersonTypeRegistrationAgency    PersonType = "RegistrationAgency"
	PersonTypeRegistrationAuthority PersonType = "RegistrationAuthority"
	PersonTypeRelatedPerson         PersonType = "RelatedPerson"
	PersonTypeResearchGroup         PersonType = "ResearchGroup"
	PersonTypeRightsHolder          PersonType = "RightsHolder"
	PersonTypeResearcher            PersonType = "Researcher"
	PersonTypeSponsor               PersonType = "Sponsor"
	PersonTypeSupervisor            PersonType = "Supervisor"
	PersonTypeWorkPackageLeader     PersonType = "WorkPackageLeader"
)

type RelatedIdentifierType

type RelatedIdentifierType string
const (
	RelatedIdentifierTypeARK     RelatedIdentifierType = "ARK"
	RelatedIdentifierTypeArXiv   RelatedIdentifierType = "arXiv"
	RelatedIdentifierTypeBibcode RelatedIdentifierType = "bibcode"
	RelatedIdentifierTypeDOI     RelatedIdentifierType = "DOI"
	RelatedIdentifierTypeEAN13   RelatedIdentifierType = "EAN13"
	RelatedIdentifierTypeEISSN   RelatedIdentifierType = "EISSN"
	RelatedIdentifierTypeHandle  RelatedIdentifierType = "Handle"
	RelatedIdentifierTypeIGSN    RelatedIdentifierType = "IGSN"
	RelatedIdentifierTypeISBN    RelatedIdentifierType = "ISBN"
	RelatedIdentifierTypeISSN    RelatedIdentifierType = "ISSN"
	RelatedIdentifierTypeISTC    RelatedIdentifierType = "ISTC"
	RelatedIdentifierTypeLISSN   RelatedIdentifierType = "LISSN"
	RelatedIdentifierTypeLSID    RelatedIdentifierType = "LSID"
	RelatedIdentifierTypePMID    RelatedIdentifierType = "PMID"
	RelatedIdentifierTypePURL    RelatedIdentifierType = "PURL"
	RelatedIdentifierTypeUPC     RelatedIdentifierType = "UPC"
	RelatedIdentifierTypeURL     RelatedIdentifierType = "URL"
	RelatedIdentifierTypeURN     RelatedIdentifierType = "URN"
	RelatedIdentifierTypeW3id    RelatedIdentifierType = "w3id"
	RelatedIdentifierTypeZotero  RelatedIdentifierType = "zotero"
)

type ResourceType

type ResourceType string
const (
	ResourceTypeBook                ResourceType = "book"
	ResourceTypeBookSection         ResourceType = "bookSection"
	ResourceTypeThesis              ResourceType = "thesis"
	ResourceTypeJournalArticle      ResourceType = "journalArticle"
	ResourceTypeMagazineArticle     ResourceType = "magazineArticle"
	ResourceTypeOnlineResource      ResourceType = "onlineResource"
	ResourceTypeReport              ResourceType = "report"
	ResourceTypeWebpage             ResourceType = "webpage"
	ResourceTypeConferencePaper     ResourceType = "conferencePaper"
	ResourceTypePatent              ResourceType = "patent"
	ResourceTypeNote                ResourceType = "note"
	ResourceTypeArtisticPerformance ResourceType = "artisticPerformance"
	ResourceTypeDataset             ResourceType = "dataset"
	ResourceTypePresentation        ResourceType = "presentation"
	ResourceTypePhysicalObject      ResourceType = "physicalObject"
	ResourceTypeComputerProgram     ResourceType = "computerProgram"
	ResourceTypeOther               ResourceType = "other"
	ResourceTypeArtwork             ResourceType = "artwork"
	ResourceTypeAttachment          ResourceType = "attachment"
	ResourceTypeAudioRecording      ResourceType = "audioRecording"
	ResourceTypeDocument            ResourceType = "document"
	ResourceTypeEmail               ResourceType = "email"
	ResourceTypeEncyclopediaArticle ResourceType = "encyclopediaArticle"
	ResourceTypeFilm                ResourceType = "film"
	ResourceTypeInstantMessage      ResourceType = "instantMessage"
	ResourceTypeInterview           ResourceType = "interview"
	ResourceTypeLetter              ResourceType = "letter"
	ResourceTypeManuscript          ResourceType = "manuscript"
	ResourceTypeMap                 ResourceType = "map"
	ResourceTypeNewspaperArticle    ResourceType = "newspaperArticle"
	ResourceTypePodcast             ResourceType = "podcast"
	ResourceTypeRadioBroadcast      ResourceType = "radioBroadcast"
	ResourceTypeTvBroadcast         ResourceType = "tvBroadcast"
	ResourceTypeVideoRecording      ResourceType = "videoRecording"
)

func ZSearchItemTypeMap

func ZSearchItemTypeMap(zit zsearch.ItemType) ResourceType

type Title

type Title struct {
	Lang string        `json:"lang"`
	Data string        `json:"value"`
	Type CoreTitleType `json:"type"`
}

Jump to

Keyboard shortcuts

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