biblio

package
v0.0.0-...-9c67b44 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareJSONRaw

func CompareJSONRaw(s1, s2 json.RawMessage) (bool, error)

Types

type KohaBiblio

type KohaBiblio struct {
	Id                uint32          `json:"-"`                 // Biblionumber
	HomeBranches      json.RawMessage `json:"homeBranches"`      // Branches which have at least one item of biblio
	AvailableBranches json.RawMessage `json:"availableBranches"` // Branches which have at least one item of biblio and which is available
	Locations         json.RawMessage `json:"locations"`         // locations having at least one item
	NumItems          uint32          `json:"numItems"`          // Number of total items on biblio
	Publication       string          `json:"publication"`       // Corresponding publication's IRI
	ReservesByYear    json.RawMessage `json:"reservesByYear"`    // Number of reserves grouped by year
	IssuesByYear      json.RawMessage `json:"issuesByYear"`      // Number of reserves grouped by year
	KohaPopularity    float64         `json:"kohaPopularity"`    // calculated popularity according to Koha
	Timestamp         time.Time       `json:"-"`                 // When this data was persisted to Sibyl
}

kohaBiblibo represents all information on a Koha biblio that is relevant and persisted in Sibyl.

func (KohaBiblio) SameAs

func (b KohaBiblio) SameAs(other KohaBiblio) (isSame bool, diffReason string)

sameAs checks if two KohaBiblio structs are equal, disregarding the timestamp

Jump to

Keyboard shortcuts

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