Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortTitles ¶
func SortTitles(list []*Title)
SortTitles does an in-place sort on the given title list, relying solely on the SortName string
Types ¶
type Title ¶
Title wraps a db.Title for web display
func WrapTitle ¶
WrapTitle converts a db.Title to a Title, giving it a useful "SortName" based on its name (stripped of common prefixes) and LCCN
func WrapTitles ¶
WrapTitles takes a db.TitleList and wraps each title individually
func (*Title) TitlesDiffer ¶
TitlesDiffer returns true if the MARC title isn't the same as the name we've given the title. We strip all non-word characters for the comparison.
Click to show internal directories.
Click to hide internal directories.