mediarep

package
v0.1.370 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dim

type Dim struct {
	XMLName xml.Name `xml:"record"`
	Text    string   `xml:",chardata"`
	Header  struct {
		Text       string   `xml:",chardata"`
		Status     string   `xml:"status,attr"`
		Identifier string   `xml:"identifier"` // oai:localhost:doc/2019, o...
		Datestamp  string   `xml:"datestamp"`  // 2018-09-24T22:09:15Z, 201...
		SetSpec    []string `xml:"setSpec"`    // com_doc_344, col_doc_1951...
	} `xml:"header"`
	Metadata struct {
		Text string `xml:",chardata"`
		Dim  struct {
			Text           string `xml:",chardata"`
			Dim            string `xml:"dim,attr"`
			Doc            string `xml:"doc,attr"`
			Xsi            string `xml:"xsi,attr"`
			SchemaLocation string `xml:"schemaLocation,attr"`
			Field          []struct {
				Text      string `xml:",chardata"` // Geser, Hans, 2018-09-24T1...
				Mdschema  string `xml:"mdschema,attr"`
				Element   string `xml:"element,attr"`
				Qualifier string `xml:"qualifier,attr"`
				Lang      string `xml:"lang,attr"`
			} `xml:"field"`
		} `xml:"dim"`
	} `xml:"metadata"`
	About string `xml:"about"`
}

Dim was generated 2018-10-02 14:55:51 by tir on sol.

func (*Dim) FieldValue

func (r *Dim) FieldValue(schema, element, qualifier string) string

FieldValue returns the first value given a mdschema and element attribute name, empty string if nothing is found.

func (*Dim) FieldValues

func (r *Dim) FieldValues(schema, element, qualifier string) (result []string)

FieldValues returns the all values given a mdschema and element attribute name, empty slice if nothing is found.

func (*Dim) PageCount added in v0.1.259

func (r *Dim) PageCount() string

PageCount returns number of pages as string or the the empty string.

func (*Dim) ToIntermediateSchema

func (r *Dim) ToIntermediateSchema() (*finc.IntermediateSchema, error)

ToIntermediateSchema converts mediarep/dim to intermediate schema

Jump to

Keyboard shortcuts

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