mets

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAgent

func AddAgent(mets *xmlquery.Node, pstep, agent string) error

AddAgent adds an agent to the metsHdr of the mets tree.

func FilePathsForFileGrp added in v0.0.6

func FilePathsForFileGrp(mets *xmlquery.Node, path, fg string) ([]string, error)

FilePathsForFileGrp returns the list of file paths for the given file group. The returned file paths are updated to be relative to the mets's file base directory if they are not absolute.

func FindFlocats

func FindFlocats(mets *xmlquery.Node, fg string) []*xmlquery.Node

FindFlocats returns the Flocat nodes for the given file group.

func FindFptr

func FindFptr(mets *xmlquery.Node, id string) *xmlquery.Node

FindFptr returns the Fptr node for the given (unique) id.

func FlocatGetPath

func FlocatGetPath(n *xmlquery.Node, path string) string

FlocatGetPath returns the path of the flocat's link relative to the given mets file's base directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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