dcmi

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DCMITypeReverse = map[string]Type{
	"Collection":          TypeCollection,
	"Dataset":             TypeDataset,
	"Event":               TypeEvent,
	"Image":               TypeImage,
	"MovingImage":         TypeMovingImage,
	"StillImage":          TypeStillImage,
	"InteractiveResource": TypeInteractiveResource,
	"Service":             TypeService,
	"Software":            TypeSoftware,
	"Sound":               TypeSound,
	"Text":                TypeText,
	"PhysicalObject":      TypePhysicalObject,
}
View Source
var MyfairResource = map[myfair.ResourceType]Type{
	myfair.ResourceTypeBook:                TypeText,
	myfair.ResourceTypeBookSection:         TypeText,
	myfair.ResourceTypeThesis:              TypeText,
	myfair.ResourceTypeJournalArticle:      TypeText,
	myfair.ResourceTypeMagazineArticle:     TypeText,
	myfair.ResourceTypeOnlineResource:      TypeText,
	myfair.ResourceTypeReport:              TypeText,
	myfair.ResourceTypeWebpage:             TypeText,
	myfair.ResourceTypeConferencePaper:     TypeText,
	myfair.ResourceTypePatent:              TypeText,
	myfair.ResourceTypeNote:                TypeText,
	myfair.ResourceTypeArtisticPerformance: TypeEvent,
	myfair.ResourceTypeDataset:             TypeDataset,
	myfair.ResourceTypePresentation:        TypeEvent,
	myfair.ResourceTypePhysicalObject:      TypePhysicalObject,
	myfair.ResourceTypeComputerProgram:     TypeSoftware,
	myfair.ResourceTypeOther:               TypeText,
	myfair.ResourceTypeArtwork:             TypeText,
	myfair.ResourceTypeAttachment:          TypeText,
	myfair.ResourceTypeAudioRecording:      TypeSound,
	myfair.ResourceTypeDocument:            TypeText,
	myfair.ResourceTypeEmail:               TypeText,
	myfair.ResourceTypeEncyclopediaArticle: TypeText,
	myfair.ResourceTypeFilm:                TypeMovingImage,
	myfair.ResourceTypeInstantMessage:      TypeText,
	myfair.ResourceTypeInterview:           TypeText,
	myfair.ResourceTypeLetter:              TypeText,
	myfair.ResourceTypeManuscript:          TypeText,
	myfair.ResourceTypeMap:                 TypeText,
	myfair.ResourceTypeNewspaperArticle:    TypeText,
	myfair.ResourceTypePodcast:             TypeSound,
	myfair.ResourceTypeRadioBroadcast:      TypeSound,
	myfair.ResourceTypeTvBroadcast:         TypeMovingImage,
	myfair.ResourceTypeVideoRecording:      TypeMovingImage,
}

Functions

This section is empty.

Types

type DCMI

type DCMI struct {
	OAI_DCNS          string `xml:"xmlns:oai_dc,attr"`
	DCNS              string `xml:"xmlns:dc,attr"`
	XsiType           string `xml:"xmlns:xsi,attr"`
	XsiSchemaLocation string `xml:"xsi:schemaLocation,attr"`
	Type              Type   `xml:"dc:type"`

	Title       []string `xml:"dc:title"`
	Creator     []string `xml:"dc:creator"`
	Subject     []string `xml:"dc:subject"`
	Description []string `xml:"dc:description,omitempty"`
	Publisher   []string `xml:"dc:publisher"`
	Contributor []string `xml:"dc:contributor"`
	Date        []string `xml:"dc:date"`
	Format      []string `xml:"dc:format,omitempty"`
	Identifier  []string `xml:"dc:identifier"`
	Source      []string `xml:"dc:source"`
	Language    []string `xml:"dc:language,omitempty"`
	Relation    []string `xml:"dc:relation,omitempty"`
	Coverage    []string `xml:"dc:coverage,omitempty"`
	Rights      []string `xml:"dc:rights,omitempty"`

	AlternativeTitle      []string `xml:"dc:alternativeTitle,omitempty"`
	TableOfContents       []string `xml:"dc:tableOfContents,omitempty"`
	Abstract              []string `xml:"dc:abstract,omitempty"`
	Created               []string `xml:"dc:created,omitempty"`
	Valid                 []string `xml:"dc:valid,omitempty"`
	Available             []string `xml:"dc:available,omitempty"`
	Issued                []string `xml:"dc:issued,omitempty"`
	Modified              []string `xml:"dc:modified,omitempty"`
	DateAccepted          []string `xml:"dc:dateAccepted,omitempty"`
	DateCopyrighted       []string `xml:"dc:dateCopyrighted,omitempty"`
	DateSubmitted         []string `xml:"dc:dateSubmitted,omitempty"`
	Extent                []string `xml:"dc:extent,omitempty"`
	Medium                []string `xml:"dc:medium,omitempty"`
	IsVersionOf           []string `xml:"dc:isVersionOf,omitempty"`
	HasVersion            []string `xml:"dc:hasVersion,omitempty"`
	IsReplacedBy          []string `xml:"dc:isReplacedBy,omitempty"`
	Replaces              []string `xml:"dc:replaces,omitempty"`
	IsRequiredBy          []string `xml:"dc:isRequiredBy,omitempty"`
	Requires              []string `xml:"dc:requires,omitempty"`
	IsPartOf              []string `xml:"dc:isPartOf,omitempty"`
	HasPart               []string `xml:"dc:hasPart,omitempty"`
	IsReferencedBy        []string `xml:"dc:isReferencedBy,omitempty"`
	References            []string `xml:"dc:references,omitempty"`
	IsFormatOf            []string `xml:"dc:isFormatOf,omitempty"`
	HasFormat             []string `xml:"dc:hasFormat,omitempty"`
	ConformsTo            []string `xml:"dc:conformsTo,omitempty"`
	Spatial               []string `xml:"dc:spatial,omitempty"`
	Temporal              []string `xml:"dc:temporal,omitempty"`
	Audience              []string `xml:"dc:audience,omitempty"`
	AccrualMethod         []string `xml:"dc:accrualMethod,omitempty"`
	AccrualPeriodicity    []string `xml:"dc:accrualPeriodicity,omitempty"`
	AccrualPolicy         []string `xml:"dc:accrualPolicy,omitempty"`
	InstructionalMethod   []string `xml:"dc:instructionalMethod,omitempty"`
	Provenance            []string `xml:"dc:provenance,omitempty"`
	RightsHolder          []string `xml:"dc:rightsHolder,omitempty"`
	Mediator              []string `xml:"dc:mediator,omitempty"`
	EducationLevel        []string `xml:"dc:educationLevel,omitempty"`
	AccessRights          []string `xml:"dc:accessRights,omitempty"`
	License               []string `xml:"dc:license,omitempty"`
	BibliographicCitation []string `xml:"dc:bibliographicCitation,omitempty"`
}

func (*DCMI) FromCore

func (dcmi *DCMI) FromCore(core myfair.Core) error

func (*DCMI) InitNamespace

func (dcmi *DCMI) InitNamespace()

type Type

type Type string
const (
	TypeCollection          Type = "Collection"
	TypeDataset             Type = "Dataset"
	TypeEvent               Type = "Event"
	TypeImage               Type = "Image"
	TypeMovingImage         Type = "MovingImage"
	TypeStillImage          Type = "StillImage"
	TypeInteractiveResource Type = "InteractiveResource"
	TypeService             Type = "Service"
	TypeSoftware            Type = "Software"
	TypeSound               Type = "Sound"
	TypeText                Type = "Text"
	TypePhysicalObject      Type = "PhysicalObject"
)

Jump to

Keyboard shortcuts

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