index

package
v0.0.0-...-7b63a7d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFromElasticSearch

func DeleteFromElasticSearch(work string, collection string, pid string, doctype string)

DeleteFromElasticSearch ...

func GetCollectionTitleFromES

func GetCollectionTitleFromES(id string) string

GetCollectionTitleFromES ...

func GetESLogFromDmdsec

func GetESLogFromDmdsec(
	nonModsDmdsecIDs []string,
	logDivList []types.Div,
	metsHdr types.MetsHdr,
	dmdsecMap map[string]types.Dmdsec,
	amdsecMap map[string]types.Amdsec,
	logToPhysLinkMap map[string]types.LogToPhysLink,
	physicalIDToAttrMap map[string]types.PhysicalAttributes,
	useMap map[string]bool,
	ccontext string,
	product string,
	recordIdentifier string,
	workID string,
	doctype string,
	parentInfo *types.Parent,
	parentDivInfo types.ParentDivInfo,
	dmdidOfFirstPhysDiv string,
	dateIndexed string,
	dateModified string,
	redisClient *redis.Client,
	PID string,
	prevPID string,
	prevPIDs []string,
	isGt bool) (map[string]types.ESLog, string)

GetESLogFromDmdsec ...

func GetESLogFromES

func GetESLogFromES(id string, ccontext string) (map[string]types.ESLog, error)

GetESLogFromES ...

func GetESPhysFromPhysStructMap

func GetESPhysFromPhysStructMap(
	physicalIDToAttrMap map[string]types.PhysicalAttributes,
	fileIDToAttrMap map[string]types.FileSecAttributes,
	physToLogLinkMap map[string]types.PhysToLogLink,
	logToPhysLinkMap map[string]types.LogToPhysLink,
	esLogMap map[string]types.ESLog,
	metsObject *types.Mets,
	redisClient *redis.Client,
	isExternal bool,
	firstLog string) map[string]types.ESPhys

GetESPhysFromPhysStructMap ...

func GetESPyhsFromES

func GetESPyhsFromES(id string, ccontext string) (map[string]types.ESPhys, error)

GetESPyhsFromES ...

func GetExportDataFromElastictSearch

func GetExportDataFromElastictSearch(citationData types.ExportWork) (types.ExportData, error)

func GetExportDataFromEsLog

func GetExportDataFromEsLog(esLog types.ESLog) (types.ExportData, error)

func GetExportDataFromIndex

func GetExportDataFromIndex(citationData types.ExportWork) types.ExportData

func GetExportDataFromSolrGDZ

func GetExportDataFromSolrGDZ(citationData types.ExportWork) (types.ExportData, error)

func GetExportDataFromSolrNLH

func GetExportDataFromSolrNLH(citationData types.ExportWork) (types.ExportData, error)

func GetPIDForWorkidFromIndex

func GetPIDForWorkidFromIndex(workid string) (string, error)

GetPIDForWorkidFromIndex ...

func GetPIDForWorkidFromIndex_

func GetPIDForWorkidFromIndex_(workid string) (string, error)

GetPIDForWorkidFromIndex_ ...

func GetParentInfoFromES

func GetParentInfoFromES(parentRecordID string) (*types.Parent, error)

func GetParentInfoFromGDZSolr

func GetParentInfoFromGDZSolr(parentWorkID string) (*types.Parent, error)

func GetParentInfoFromNLHSolr

func GetParentInfoFromNLHSolr(parentWorkID string) (*types.Parent, error)

func GetPrevPIDsFromES

func GetPrevPIDsFromES(prevPID string, index string) ([]string, error)

func GetPrevPIDsFromES(prevPID string) (*types.PrevInfo, error) {

func GetUpdateDatesFromES

func GetUpdateDatesFromES(id string, redisClient *redis.Client) (string, string)

GetUpdateDatesFromES ...

func GetUpdateDatesFromRedis

func GetUpdateDatesFromRedis(recordIdentifier string, redisClient *redis.Client) (string, string)

GetUpdateDatesFromRedis ...

func GetUpdateDatesFromSolrGDZ

func GetUpdateDatesFromSolrGDZ(id string, redisClient *redis.Client) (string, string)

GetUpdateDatesFromSolrGDZ ...

func GetUpdateDatesFromSolrNLH

func GetUpdateDatesFromSolrNLH(id string, redisClient *redis.Client) (string, string)

GetUpdateDatesFromSolrNLH ...

func ReadFromSolrGDZ

func ReadFromSolrGDZ(id string) (types.SolrDocGDZ, error)

ReadFromSolrGDZ ...

func ReadFromSolrNLH

func ReadFromSolrNLH(id string) (types.SolrDocNLH, error)

ReadFromSolrNLH ...

func WriteToElasticSearch

func WriteToElasticSearch(esDoc types.ESDoc)

WriteToElasticSearch ...

func WriteToGDZIndex

func WriteToGDZIndex(esDoc types.ESDoc)

WriteToGDZIndex ...

func WriteToLogIndex

func WriteToLogIndex()

WriteToLogIndex ...

func WriteToNLHIndex

func WriteToNLHIndex(esDoc types.ESDoc)

WriteToNLHIndex ...

func WriteToPhysIndex

func WriteToPhysIndex()

WriteToPhysIndex ...

func WriteToSolr

func WriteToSolr(esDoc types.ESDoc)

WriteToIndex ...

Types

type DeleteAnchorMatch

type DeleteAnchorMatch struct {
	DeleteCollection DeleteCollection `json:"match"`
}

DeleteAnchorMatch ...

type DeleteAnchorQuery

type DeleteAnchorQuery struct {
	DeleteAnchorMatch DeleteAnchorMatch `json:"query"`
}

DeleteAnchorQuery ...

type DeleteCollection

type DeleteCollection struct {
	Collection string `json:"collection.keyword"`
}

DeleteCollection ...

type DeletePID

type DeletePID struct {
	PID string `json:"pid.keyword"`
}

DeletePID ...

type DeletePIDMatch

type DeletePIDMatch struct {
	DeletePID DeletePID `json:"match"`
}

DeletePIDMatch ...

type DeletePIDQuery

type DeletePIDQuery struct {
	DeletePIDMatch DeletePIDMatch `json:"query"`
}

DeletePIDQuery ...

type DeleteWork

type DeleteWork struct {
	Work string `json:"work.keyword"`
}

DeleteWork ...

type DeleteWorkMatch

type DeleteWorkMatch struct {
	DeleteWork DeleteWork `json:"match"`
}

DeleteWorkMatch ...

type DeleteWorkQuery

type DeleteWorkQuery struct {
	DeleteWorkMatch DeleteWorkMatch `json:"query"`
}

DeleteWorkQuery ...

type OldESDatesMsg

type OldESDatesMsg struct {
	ID           string `json:"id"`
	Datemodified string `json:"datemodified,omitempty"`
	Dateindexed  string `json:"dateindexed,omitempty"`
}

OldESDatesMsg ...

type OldSolrDatesMsg

type OldSolrDatesMsg struct {
	RecordIdentifier string `json:"record_identifier,omitempty"`
	Datemodified     string `json:"date_indexed,omitempty"`
	Dateindexed      string `json:"date_modified,omitempty"`
}

OldSolrDatesMsg ...

Jump to

Keyboard shortcuts

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