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
Click to show internal directories.
Click to hide internal directories.