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 ¶
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 ¶
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