mets

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02T15:04:05"

TimeFormat is the standard format used in our METS header - it's basically RFC3339 without a timezone

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

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

Transformer takes an issue and generates METS XML to a given file

func New

func New(templatePath string, outputFileName string, issue *db.Issue, title *db.Title, createDate time.Time) *Transformer

New returns a METS Transformer

We need an issue as well as a title in order to avoid DB lookups, reduce unknowns, and allow for unsaved / faked data

func (*Transformer) Transform

func (t *Transformer) Transform() error

Transform generates the METS XML

Jump to

Keyboard shortcuts

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