mets

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FLocat

type FLocat struct {
	Type, URL string
}

FLocat represents a mets:FLocat of a mets:file entry.

type File

type File struct {
	MIMEType, ID string
	FLocat       FLocat
}

File represents a mets:file entry

type Mets

type Mets struct {
	// contains filtered or unexported fields
}

Mets represents an open METS file.

func Open

func Open(path string) (Mets, error)

Open opens a Mets structure from a given path.

func (Mets) FindFileGrp

func (m Mets) FindFileGrp(use string) []File

FindFileGrp searches for a file group with the given USE flag. It returns a list of files and true if a file group with the given USE flag was found. Note that the list of files can be empty even if true is returned.

Jump to

Keyboard shortcuts

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