Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoreTitleTypeReverse = map[string]CoreTitleType{ string(TitleTypeMain): TitleTypeMain, string(TitleTypeAlternativeTitle): TitleTypeAlternativeTitle, string(TitleTypeOther): TitleTypeOther, string(TitleTypeSubTitle): TitleTypeSubTitle, string(TitleTypeTranslatedTitle): TitleTypeTranslatedTitle, }
View Source
var NameTypeReverse = map[string]NameType{ "": NameTypeDefault, "Organizational": NameTypeOrganizational, "Personal": NameTypePersonal, }
View Source
var PersonTypeReverse = map[string]PersonType{ string(PersonTypeAuthor): PersonTypeAuthor, string(PersonTypeArtist): PersonTypeArtist, string(PersonTypeContactPerson): PersonTypeContactPerson, string(PersonTypeDataCollector): PersonTypeDataCollector, string(PersonTypeDataCurator): PersonTypeDataCurator, string(PersonTypeDataManager): PersonTypeDataManager, string(PersonTypeDistributor): PersonTypeDistributor, string(PersonTypeEditor): PersonTypeEditor, string(PersonTypeHostingInstitution): PersonTypeHostingInstitution, string(PersonTypeOther): PersonTypeOther, string(PersonTypeProducer): PersonTypeProducer, string(PersonTypeProjectLeader): PersonTypeProjectLeader, string(PersonTypeProjectManager): PersonTypeProjectManager, string(PersonTypeProjectMember): PersonTypeProjectMember, string(PersonTypeRegistrationAgency): PersonTypeRegistrationAgency, string(PersonTypeRegistrationAuthority): PersonTypeRegistrationAuthority, string(PersonTypeRelatedPerson): PersonTypeRelatedPerson, string(PersonTypeResearchGroup): PersonTypeResearchGroup, string(PersonTypeRightsHolder): PersonTypeRightsHolder, string(PersonTypeResearcher): PersonTypeResearcher, string(PersonTypeSponsor): PersonTypeSponsor, string(PersonTypeSupervisor): PersonTypeSupervisor, string(PersonTypeWorkPackageLeader): PersonTypeWorkPackageLeader, }
View Source
var RelatedIdentifierTypeReverse = map[string]RelatedIdentifierType{ "ark": RelatedIdentifierTypeARK, "arxiv": RelatedIdentifierTypeArXiv, "bibcode": RelatedIdentifierTypeBibcode, "doi": RelatedIdentifierTypeDOI, "ean13": RelatedIdentifierTypeEAN13, "eissn": RelatedIdentifierTypeEISSN, "handle": RelatedIdentifierTypeHandle, "igsn": RelatedIdentifierTypeIGSN, "isbn": RelatedIdentifierTypeISBN, "issn": RelatedIdentifierTypeISSN, "istc": RelatedIdentifierTypeISTC, "lissn": RelatedIdentifierTypeLISSN, "lsid": RelatedIdentifierTypeLSID, "pmid": RelatedIdentifierTypePMID, "purl": RelatedIdentifierTypePURL, "upc": RelatedIdentifierTypeUPC, "url": RelatedIdentifierTypeURL, "urn": RelatedIdentifierTypeURN, "w3id": RelatedIdentifierTypeW3id, "zotero": RelatedIdentifierTypeZotero, }
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 NameIdentifier ¶
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"` }
Click to show internal directories.
Click to hide internal directories.