Documentation
¶
Index ¶
- type METS
- func (mets METS) AddAgent(pstep, agent string) error
- func (mets METS) FilePathsForFileGrp(fg string) ([]string, error)
- func (mets METS) FindFlocats(fg string) []*xmlquery.Node
- func (mets METS) FindFptr(id string) *xmlquery.Node
- func (mets METS) FlocatGetPath(n *xmlquery.Node) string
- func (mets METS) Write() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type METS ¶ added in v0.0.7
METS represents an METS file.
func (METS) FilePathsForFileGrp ¶ added in v0.0.7
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 (METS) FindFlocats ¶ added in v0.0.7
FindFlocats returns the Flocat nodes for the given file group.
func (METS) FlocatGetPath ¶ added in v0.0.7
FlocatGetPath returns the path of the flocat's link relative to the given mets file's base directory unless the stored path is absolute.
Click to show internal directories.
Click to hide internal directories.