mods

package
v0.7.3-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mods provides the MODS/METS structure for the XML files of the Staats- und Universitaets Bibliothek Hamburg The package provides not all tags and attributes, which are inside the files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifier

type Identifier struct {
	Type  string `xml:"type,attr"`
	Value string `xml:",innerxml"`
}

Identifier represents different kinds of identifiers

type Mets

type Mets struct {
	XMLName xml.Name `xml:"mets"`
	MetsHDR string   `xml:"metsHdr"`
	Mods    Mods     `xml:"dmdSec>mdWrap>xmlData>mods"`
}

Mets struct represents the header of the XML file.

type Mods

type Mods struct {
	XMLName              xml.Name              `xml:"mods"`
	Names                []Name                `xml:"name"`
	RecordIdentifier     string                `xml:"recordInfo>recordIdentifier"`
	Identifiers          []Identifier          `xml:"identifier"`
	PhysicalDescriptions []PhysicalDescription `xml:"physicalDescription"`
	PhysicalLocaltion    string                `xml:"location>physicalLocation"`
	ShelfLocator         string                `xml:"location>shelfLocator"`
	OriginInfo           OriginInfo            `xml:"originInfo"`
	Classification       []string              `xml:"classification"`
	TitleInfos           []TitleInfo           `xml:"titleInfo"`
}

Mods provides all the relevant data of the XML file

type Name

type Name struct {
	Type         string     `xml:"type,attr"`
	Authority    string     `xml:"authority,attr"`
	AuthorityURI string     `xml:"authorityURI,attr"`
	ValueURI     string     `xml:"valueURI,attr"`
	RoleTerm     string     `xml:"role>roleTerm"`
	NameParts    []NamePart `xml:"namePart"`
	DisplayForm  string     `xml:"displayForm"`
}

Name structure for the methadata

type NamePart

type NamePart struct {
	NameType string `xml:"type,attr"`
	NamePart string `xml:",innerxml"`
}

NamePart provides the information about one element of a name. NameType can be "family" or "given"

type OriginInfo

type OriginInfo struct {
	PlaceTerm  string `xml:"place>placeTerm"`
	DateIssued string `xml:"dateIssued"`
	Publisher  string `xml:"publisher"`
}

OriginInfo provides date, place and publisher. If a value is inside [] the value is set from the Stabi

type PhysicalDescription

type PhysicalDescription struct {
	Extend []string `xml:"extent"`
}

PhysicalDescription has free text elements to describe the picture

type TitleInfo

type TitleInfo struct {
	Type  string `xml:"type,attr"`
	Title string `xml:"title"`
}

TitleInfo provides different kind of titles. If Type is empty, it is the original title, which can be found on the picture. Alternative titles could be set by the Stabi.

Jump to

Keyboard shortcuts

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