meta

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package meta provides types and functions related to patron records in Meta.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibraryPatronRecord

type LibraryPatronRecord struct {
	GIDStatus                 sql.NullString `arg:"-"`
	GID                       sql.NullString `arg:"-"`
	IDNum                     sql.NullString `arg:"-"`
	SprIdenID                 sql.NullString `arg:"-"`
	SSN                       sql.NullString `arg:"-"`
	GivenName                 sql.NullString `arg:"-"`
	NameMiddle                sql.NullString `arg:"-"`
	Surname                   sql.NullString `arg:"-"`
	LibIssueNumber            sql.NullString `arg:"-"`
	EmpStudentFlag            sql.NullString `arg:"-"`
	StudentStatus             sql.NullString `arg:"-"`
	BannerLastTermEnrolled    sql.NullString `arg:"-"`
	StudentCurrentlyEnrolled  sql.NullString `arg:"-"`
	StudentLevelCode          sql.NullString `arg:"-"`
	EmployeeStatus            sql.NullString `arg:"-"`
	EmployeeType              sql.NullString `arg:"-"`
	SalaryTable               sql.NullString `arg:"-"`
	EmployeeGroupCode         sql.NullString `arg:"-"`
	TESFlag                   sql.NullString `arg:"-"`
	CampusCode                sql.NullString `arg:"-"`
	EmployeeTerminationDate   sql.NullString `arg:"-"`
	OU                        sql.NullString `arg:"-"`
	Title                     sql.NullString `arg:"-"`
	Location                  sql.NullString `arg:"-"`
	AddressDeptCity           sql.NullString `arg:"-"`
	AddressDeptState          sql.NullString `arg:"-"`
	AddressDeptZip            sql.NullString `arg:"-"`
	TelephoneNumber           sql.NullString `arg:"-"`
	AddressStudentPermStreet1 sql.NullString `arg:"-"`
	AddressStudentPermStreet2 sql.NullString `arg:"-"`
	AddressStudentPermStreet3 sql.NullString `arg:"-"`
	AddressStudentPermCity    sql.NullString `arg:"-"`
	AddressStudentPermState   sql.NullString `arg:"-"`
	AddressStudentPermZip     sql.NullString `arg:"-"`
	AddressNationCode         sql.NullString `arg:"-"`
	PhoneStudentPerm          sql.NullString `arg:"-"`
	StudentType               sql.NullString `arg:"-"`
	OtherStatus               sql.NullString `arg:"-"`
	OtherTypeCode             sql.NullString `arg:"-"`
	StudentDegreeEarned       sql.NullString `arg:"-"`
	NearFieldBadgeID          sql.NullString `arg:"-"`
	NearFieldIphoneID         sql.NullString `arg:"-"`
	NearFieldIphoneExp        sql.NullString `arg:"-"`
	NearFieldIphoneLost       sql.NullString `arg:"-"`
	NearFieldIwatchID         sql.NullString `arg:"-"`
	NearFieldIwatchExp        sql.NullString `arg:"-"`
	NearFieldIwatchLost       sql.NullString `arg:"-"`
	NearFieldAndroidID        sql.NullString `arg:"-"`
	NearFieldAndroidExp       sql.NullString `arg:"-"`
	NearFieldAndroidLost      sql.NullString `arg:"-"`
}

LibraryPatronRecord represents fields from a view from the `Meta` database.

func (LibraryPatronRecord) CSV

func (r LibraryPatronRecord) CSV() string

CSV produces a patron record in a pipe delimited, view_extract.txt file format. Further transformation and or encoding is needed before writing this entry to an output file for further processing by later stage tooling.

func (LibraryPatronRecord) Extract

func (r LibraryPatronRecord) Extract() (string, int, error)

Extract produces a patron record in the expected format for generating a (pipe delimited) view_extract.txt file entry. As part of this process, UTF-8 to ISO 8859-1 (Latin-1) transformation is performed for required compatibility with the Voyager SIF input format. This transformed patron record is suitable for use in the output file ingested by other tools in the patron records processing pipeline.

func (LibraryPatronRecord) String

func (r LibraryPatronRecord) String() string

String implements the Stringer interface in order to expose all fields (other than SSN) in their unmodified form.

Jump to

Keyboard shortcuts

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