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