Documentation ¶
Overview ¶
package etl
Index ¶
- func CorporationFromAuthority(rec marc.Record) (sirkulator.Resource, error)
- func PersonFromAuthority(rec marc.Record) (sirkulator.Resource, error)
- type FileFetch
- type HarvestNBLinksJob
- type HarvestSNLDescriptions
- type HarvestSNLLinksJob
- type HarvestWikipediaLinks
- type HarvestWikipediaSummaries
- type ImportEntry
- type Ingestion
- type Ingestor
- type UpdateSNLDescriptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorporationFromAuthority ¶
func CorporationFromAuthority(rec marc.Record) (sirkulator.Resource, error)
func PersonFromAuthority ¶
func PersonFromAuthority(rec marc.Record) (sirkulator.Resource, error)
Types ¶
type HarvestNBLinksJob ¶
func (*HarvestNBLinksJob) Name ¶
func (h *HarvestNBLinksJob) Name() string
type HarvestSNLDescriptions ¶
func (*HarvestSNLDescriptions) Name ¶
func (h *HarvestSNLDescriptions) Name() string
type HarvestSNLLinksJob ¶
func (*HarvestSNLLinksJob) Name ¶
func (h *HarvestSNLLinksJob) Name() string
type HarvestWikipediaLinks ¶
func (*HarvestWikipediaLinks) Name ¶
func (h *HarvestWikipediaLinks) Name() string
type HarvestWikipediaSummaries ¶
func (*HarvestWikipediaSummaries) Name ¶
func (h *HarvestWikipediaSummaries) Name() string
type ImportEntry ¶
type ImportEntry struct { Source string // bibsys, openlibrary, discogs etc Exists bool // allready in local DB Error string // not found, unable to map to local metadata, insuficcient data etc Resources []sirkulator.SimpleResource }
type Ingestion ¶
type Ingestion struct { Resources []sirkulator.Resource Relations []sirkulator.Relation Covers []FileFetch }
type Ingestor ¶
type Ingestor struct { // Options UseRemote bool // if true, use external sources in additin to local ImageDownload bool // if true, download images found in imported records ImageAsync bool // if true, download images after IngestISBN has returned ImageWidth int // scale to this with, calculating width to preserve aspect ratio // contains filtered or unexported fields }
func NewPreviewIngestor ¶
func (*Ingestor) Ingest ¶
func (ig *Ingestor) Ingest(ctx context.Context, data Ingestion, persist bool) ([]sirkulator.SimpleResource, error)
Ingest will merge the ingestion with locally matching resources before storing the data to db and trigger indexing of documents. if persist=false, nothing is persisted, and the returnet results represents a preview of which resources would have been stored if persist=true.
func (*Ingestor) IngestISBN ¶
IngestISBN will try to ingest a publication and related resources given an ISBN-number, optionally persisting it to DB. TODO refactor to remove duplication
Click to show internal directories.
Click to hide internal directories.