Documentation
¶
Index ¶
- Constants
- Variables
- func CreateTree(cfg *NodeConfig, n *Node, hubID string, id string) *fragments.Tree
- func GetDataPath(spec string) string
- func NewResource(label string) r.Term
- func NewSubject(spec, eadType, id string) string
- func ProcessUpload(r *http.Request, w http.ResponseWriter, spec string, p *elastic.BulkProcessor) (uint64, error)
- func ResaveDescriptions(eadPath string) error
- type Archive
- type BulkProcessor
- type CLevel
- type CLevelEntry
- type Cabstract
- type Caccessrestrict
- type Caccruals
- type Cacqinfo
- type Caltformavail
- type Cappraisal
- type Carchdesc
- type Carchref
- type Carrangement
- type Cauthor
- type Cbibliography
- type Cbibref
- type Cbioghist
- type Cblockquote
- type Cc
- func (c *Cc) GetAttraltrender() string
- func (c *Cc) GetAttrlevel() string
- func (c *Cc) GetAttrotherlevel() string
- func (c *Cc) GetCaccessrestrict() []*Caccessrestrict
- func (c *Cc) GetCc() *Cc
- func (c *Cc) GetCdid() *Cdid
- func (c *Cc) GetGenreform() string
- func (c *Cc) GetMaterial() string
- func (c *Cc) GetNested() []CLevel
- func (c *Cc) GetOdd() []*Codd
- func (c *Cc) GetPhystech() []*Cphystech
- func (c *Cc) GetScopeContent() []*Cscopecontent
- func (c *Cc) GetXMLName() xml.Name
- func (cc *Cc) Triples(s r.Term) ([]*r.Triple, error)
- type Cc01
- type Cc02
- type Cc03
- type Cc04
- type Cc05
- type Cc06
- type Cc07
- type Cc08
- type Cc09
- type Cc10
- type Cc11
- type Cc12
- type Cc13
- type Cc14
- type Cc15
- type Cc16
- type Cc17
- type Cc18
- type Cc19
- type Cc20
- type Cchange
- type Cchronitem
- type Cchronlist
- type Ccolspec
- type Ccontrolaccess
- type Ccorpname
- type Ccreation
- type Ccustodhist
- type Cdao
- type Cdate
- type Cdefitem
- type Cdescgrp
- type Cdescrules
- type Cdid
- type Cdimensions
- type Cdsc
- type Cead
- type Ceadheader
- type Ceadid
- type Cedition
- type Ceditionstmt
- type Cemph
- type Centry
- type Cevent
- type Ceventgrp
- type Cextent
- type Cextptr
- type Cextref
- type Cfamname
- type Cfiledesc
- type Cfileplan
- type Cfunction
- type Cgenreform
- type Cgeogname
- type Chead
- type Chead01
- type Chead02
- type Cimprint
- type Cindex
- type Cindexentry
- type Citem
- type Clabel
- type Clangmaterial
- type Clanguage
- type Clangusage
- type Clb
- type Clegalstatus
- type Clist
- type Clisthead
- type Cmaterialspec
- type Cname
- type Cnote
- type Cnotestmt
- type Cnum
- type Codd
- type Coriginalsloc
- type Corigination
- type Cotherfindaid
- type Cp
- type Cpersname
- type Cphysdesc
- type Cphysfacet
- type Cphysloc
- type Cphystech
- type Cprefercite
- type Cprocessinfo
- type Cprofiledesc
- type Cptrgrp
- type Cpublicationstmt
- type Cpublisher
- type Cref
- type Crelatedmaterial
- type Crepository
- type Crevisiondesc
- type Crow
- type Cscopecontent
- type Cseparatedmaterial
- type Csubject
- type Ctable
- type Ctbody
- type Ctgroup
- type Cthead
- type Ctitle
- type Ctitleproper
- type Ctitlestmt
- type Cunitdate
- type Cunitid
- type Cunittitle
- type Cuserestrict
- type DataItem
- type DataType
- type Deque
- func (q *Deque) At(i int) (interface{}, bool)
- func (q *Deque) Back() (interface{}, bool)
- func (q *Deque) Clear()
- func (q *Deque) Front() (interface{}, bool)
- func (q *Deque) Len() int
- func (q *Deque) List() []interface{}
- func (q *Deque) PopBack() (interface{}, bool)
- func (q *Deque) PopFront() (interface{}, bool)
- func (q *Deque) PushBack(elem interface{})
- func (q *Deque) PushFront(elem interface{})
- func (q *Deque) Rotate(n int)
- func (q *Deque) SetMinCapacity(minCapacityExp uint)
- func (q *Deque) String() string
- type Description
- type DescriptionIndex
- func (di *DescriptionIndex) CreateFrom(desc *Description) error
- func (di *DescriptionIndex) HighlightMatches(hits *search.Matches, items []*DataItem, filter bool) []*DataItem
- func (di *DescriptionIndex) Search(qt *search.QueryTerm) (*search.Matches, error)
- func (di *DescriptionIndex) SearchWithString(query string) (*search.Matches, error)
- func (di *DescriptionIndex) Write() error
- type DuplicateError
- type Extractor
- type File
- type FindingAid
- type FlowType
- type Header
- type Manifest
- type MetsCounter
- func (mc *MetsCounter) AppendError(err string)
- func (mc *MetsCounter) GetCount() uint64
- func (mc *MetsCounter) GetDigitalObjectCount() uint64
- func (mc *MetsCounter) GetErrorCount() uint64
- func (mc *MetsCounter) GetErrors() []string
- func (mc *MetsCounter) GetUniqueCounter() map[string]int
- func (mc *MetsCounter) Increment(daoLink string)
- func (mc *MetsCounter) IncrementDigitalObject(delta uint64)
- func (mc *MetsCounter) IncrementError()
- type NLPToken
- type NLPType
- type Node
- type NodeConfig
- type NodeCounter
- type NodeDate
- type NodeID
- type NodeList
- type Profile
- type SearchRequest
- type SearchResponse
- type SectionInfo
- type Summary
- type UnitInfo
Constants ¶
const CLevelLeader = "@"
const FragmentGraphDocType = "ead"
Variables ¶
var (
ErrNoDescriptionIndex = errors.New("no index created for EAD description")
)
Functions ¶
func CreateTree ¶
func GetDataPath ¶ added in v0.1.3
func NewResource ¶ added in v0.1.1
func NewSubject ¶ added in v0.1.1
func ProcessUpload ¶
func ResaveDescriptions ¶ added in v0.1.6
Types ¶
type Archive ¶ added in v0.1.3
type Archive struct { InventoryID string `json:"inventoryID"` Title string `json:"title"` Period []string `json:"period"` CLevelCount int `json:"cLevelCount"` DescriptionCount int `json:"descriptionCount"` Files string `json:"files,omitempty"` Length string `json:"length,omitempty"` Abstract []string `json:"abstract,omitempty"` Material string `json:"material,omitempty"` Language string `json:"language,omitempty"` Origin []string `json:"origin,omitempty"` MetsFiles int `json:"metsFiles,omitempty"` ClevelsTotal int `json:"clevelsTotal"` }
Archive holds all information for the EAD search results that are grouped by inventoryID. This is the EadID from the EAD header.
type BulkProcessor ¶
type BulkProcessor interface {
Add(request elastic.BulkableRequest)
}
BulkProcessor is an interface for oliver/elastice BulkProcessor.
type CLevelEntry ¶ added in v0.1.3
type CLevelEntry struct { // Path is the unique key to the path of the clevel in the archive tree Path string `json:"path"` // UnitID is the identifier of the clevel UnitID string `json:"unitID"` // Label is the title of the clevel Label string `json:"label"` // HubID is the unique identifier of the clevel as stored in the hub3 index HubID string `json:"hubID"` // ResultOrder is the place the search result has in the total list of results. // This can be used to aid the search pagination on the Archive result page. ResultOrder uint64 `json:"sortKey"` }
CLevel holds the search results per clevel entry in the an EAD Archive.
type Cabstract ¶
type Cabstract struct { XMLName xml.Name `xml:"abstract,omitempty" json:"abstract,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Abstract string `xml:",chardata" json:",omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` }
func (*Cabstract) CleanAbstract ¶ added in v0.1.1
CleanAbstract returns the Abstract split on EAD '<lb />', i.e. line-break
type Caccessrestrict ¶
type Caccessrestrict struct { XMLName xml.Name `xml:"accessrestrict,omitempty" json:"accessrestrict,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Caccessrestrict []*Caccessrestrict `xml:"accessrestrict,omitempty" json:"accessrestrict,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clegalstatus *Clegalstatus `xml:"legalstatus,omitempty" json:"legalstatus,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
type Caccruals ¶
type Caccruals struct { XMLName xml.Name `xml:"accruals,omitempty" json:"accruals,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cacqinfo ¶
type Cacqinfo struct { XMLName xml.Name `xml:"acqinfo,omitempty" json:"acqinfo,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraltrender string `xml:"altrender,attr" json:",omitempty"` Cacqinfo []*Cacqinfo `xml:"acqinfo,omitempty" json:"acqinfo,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Caltformavail ¶
type Caltformavail struct { XMLName xml.Name `xml:"altformavail,omitempty" json:"altformavail,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
type Cappraisal ¶
type Cappraisal struct { XMLName xml.Name `xml:"appraisal,omitempty" json:"appraisal,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Cappraisal []*Cappraisal `xml:"appraisal,omitempty" json:"appraisal,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Carchdesc ¶
type Carchdesc struct { XMLName xml.Name `xml:"archdesc,omitempty" json:"archdesc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlevel string `xml:"level,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Caccruals []*Caccruals `xml:"accruals,omitempty" json:"accruals,omitempty"` Cbibliography []*Cbibliography `xml:"bibliography,omitempty" json:"bibliography,omitempty"` Cbioghist []*Cbioghist `xml:"bioghist,omitempty" json:"bioghist,omitempty"` Cdescgrp []*Cdescgrp `xml:"descgrp,omitempty" json:"descgrp,omitempty"` Cdid []*Cdid `xml:"did,omitempty" json:"did,omitempty"` Cdsc *Cdsc `xml:"dsc,omitempty" json:"dsc,omitempty"` Cuserestrict []*Cuserestrict `xml:"userestrict,omitempty" json:"userestrict,omitempty"` }
func (*Carchdesc) GetAbstract ¶
func (*Carchdesc) GetNormalPeriods ¶
func (*Carchdesc) GetPeriods ¶
type Carchref ¶ added in v0.1.1
type Carchref struct { XMLName xml.Name `xml:"archref,omitempty" json:"archref,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attrhref string `xml:"href,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` Archref string `xml:",chardata" json:",omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Cunitid []*Cunitid `xml:"unitid,omitempty" json:"unitid,omitempty"` Cunittitle []*Cunittitle `xml:"unittitle,omitempty" json:"unittitle,omitempty"` }
type Carrangement ¶
type Carrangement struct { XMLName xml.Name `xml:"arrangement,omitempty" json:"arrangement,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Carrangement []*Carrangement `xml:"arrangement,omitempty" json:"arrangement,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cbibliography ¶ added in v0.1.1
type Cbibliography struct { XMLName xml.Name `xml:"bibliography,omitempty" json:"bibliography,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cbibliography []*Cbibliography `xml:"bibliography,omitempty" json:"bibliography,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cbibref ¶
type Cbibref struct { XMLName xml.Name `xml:"bibref,omitempty" json:"bibref,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attrhref string `xml:"href,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` Bibref string `xml:",chardata" json:",omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Cimprint []*Cimprint `xml:"imprint,omitempty" json:"imprint,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` }
type Cbioghist ¶
type Cbioghist struct { XMLName xml.Name `xml:"bioghist,omitempty" json:"bioghist,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cbioghist []*Cbioghist `xml:"bioghist,omitempty" json:"bioghist,omitempty"` Cchronlist []*Cchronlist `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Codd []*Codd `xml:"odd,omitempty" json:"odd,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cblockquote ¶
type Cc ¶
type Cc struct { XMLName xml.Name `xml:"c,omitempty" json:"c,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraltrender string `xml:"altrender,attr" json:",omitempty"` Attrlevel string `xml:"level,attr" json:",omitempty"` Attrotherlevel string `xml:"otherlevel,attr" json:",omitempty"` Caccessrestrict []*Caccessrestrict `xml:"accessrestrict,omitempty" json:"accessrestrict,omitempty"` Caccruals []*Caccruals `xml:"accruals,omitempty" json:"accruals,omitempty"` Cacqinfo []*Cacqinfo `xml:"acqinfo,omitempty" json:"acqinfo,omitempty"` Caltformavail []*Caltformavail `xml:"altformavail,omitempty" json:"altformavail,omitempty"` Cappraisal []*Cappraisal `xml:"appraisal,omitempty" json:"appraisal,omitempty"` Carrangement []*Carrangement `xml:"arrangement,omitempty" json:"arrangement,omitempty"` Cbibliography []*Cbibliography `xml:"bibliography,omitempty" json:"bibliography,omitempty"` Cbioghist []*Cbioghist `xml:"bioghist,omitempty" json:"bioghist,omitempty"` Ccontrolaccess []*Ccontrolaccess `xml:"controlaccess,omitempty" json:"controlaccess,omitempty"` Ccustodhist []*Ccustodhist `xml:"custodhist,omitempty" json:"custodhist,omitempty"` Cdao []*Cdao `xml:"dao,omitempty" json:"dao,omitempty"` Cdid []*Cdid `xml:"did,omitempty" json:"did,omitempty"` Codd []*Codd `xml:"odd,omitempty" json:"odd,omitempty"` Coriginalsloc *Coriginalsloc `xml:"originalsloc,omitempty" json:"originalsloc,omitempty"` Cotherfindaid []*Cotherfindaid `xml:"otherfindaid,omitempty" json:"otherfindaid,omitempty"` Cphystech []*Cphystech `xml:"phystech,omitempty" json:"phystech,omitempty"` Cprocessinfo []*Cprocessinfo `xml:"processinfo,omitempty" json:"processinfo,omitempty"` Cscopecontent []*Cscopecontent `xml:"scopecontent,omitempty" json:"scopecontent,omitempty"` Cseparatedmaterial []*Cseparatedmaterial `xml:"separatedmaterial,omitempty" json:"separatedmaterial,omitempty"` Cuserestrict []*Cuserestrict `xml:"userestrict,omitempty" json:"userestrict,omitempty"` Cc []*Cc // not supported by data Cfileplan *Cfileplan `xml:"fileplan,omitempty" json:"fileplan,omitempty"` Cdescgrp []*Cdescgrp `xml:"descgrp,omitempty" json:"descgrp,omitempty"` }
func (*Cc) GetAttraltrender ¶
func (*Cc) GetAttrlevel ¶
func (*Cc) GetAttrotherlevel ¶
func (*Cc) GetCaccessrestrict ¶
func (c *Cc) GetCaccessrestrict() []*Caccessrestrict
func (*Cc) GetGenreform ¶
func (*Cc) GetMaterial ¶
func (*Cc) GetPhystech ¶
func (*Cc) GetScopeContent ¶
func (c *Cc) GetScopeContent() []*Cscopecontent
func (*Cc) GetXMLName ¶
type Cc01 ¶
type Cc02 ¶
type Cc03 ¶
type Cc04 ¶
type Cc05 ¶
type Cc06 ¶
type Cc07 ¶
type Cc08 ¶
type Cc09 ¶
type Cc10 ¶
type Cc11 ¶
type Cc12 ¶
type Cc13 ¶
type Cc14 ¶
type Cc15 ¶
type Cc16 ¶
type Cc17 ¶
type Cc18 ¶
type Cc19 ¶
type Cchronitem ¶
type Cchronitem struct { XMLName xml.Name `xml:"chronitem,omitempty" json:"chronitem,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cevent []*Cevent `xml:"event,omitempty" json:"event,omitempty"` Ceventgrp *Ceventgrp `xml:"eventgrp,omitempty" json:"eventgrp,omitempty"` }
type Cchronlist ¶
type Cchronlist struct { XMLName xml.Name `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cchronitem []*Cchronitem `xml:"chronitem,omitempty" json:"chronitem,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clisthead *Clisthead `xml:"listhead,omitempty" json:"listhead,omitempty"` }
type Ccolspec ¶ added in v0.1.1
type Ccolspec struct { XMLName xml.Name `xml:"colspec,omitempty" json:"colspec,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attralign string `xml:"align,attr" json:",omitempty"` Attrcolname string `xml:"colname,attr" json:",omitempty"` Attrcolnum string `xml:"colnum,attr" json:",omitempty"` Attrcolsep string `xml:"colsep,attr" json:",omitempty"` Attrcolwidth string `xml:"colwidth,attr" json:",omitempty"` }
type Ccontrolaccess ¶
type Ccontrolaccess struct { XMLName xml.Name `xml:"controlaccess,omitempty" json:"controlaccess,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Cgenreform *Cgenreform `xml:"genreform,omitempty" json:"genreform,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Csubject *Csubject `xml:"subject,omitempty" json:"subject,omitempty"` }
type Ccorpname ¶
type Ccorpname struct { XMLName xml.Name `xml:"corpname,omitempty" json:"corpname,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrauthfilenumber string `xml:"authfilenumber,attr" json:",omitempty"` Attrencodinganalog string `xml:"encodinganalog,attr" json:",omitempty"` Attrnormal string `xml:"normal,attr" json:",omitempty"` Attrrole string `xml:"role,attr" json:",omitempty"` Attrsource string `xml:"source,attr" json:",omitempty"` Corpname string `xml:",chardata" json:",omitempty"` }
type Ccreation ¶
type Ccreation struct { XMLName xml.Name `xml:"creation,omitempty" json:"creation,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Creation string `xml:",chardata" json:",omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` }
type Ccustodhist ¶
type Ccustodhist struct { XMLName xml.Name `xml:"custodhist,omitempty" json:"custodhist,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cacqinfo []*Cacqinfo `xml:"acqinfo,omitempty" json:"acqinfo,omitempty"` Ccustodhist []*Ccustodhist `xml:"custodhist,omitempty" json:"custodhist,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Codd []*Codd `xml:"odd,omitempty" json:"odd,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cdao ¶
type Cdao struct { XMLName xml.Name `xml:"dao,omitempty" json:"dao,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Attrhref string `xml:"href,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrrole string `xml:"role,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` }
type Cdate ¶
type Cdate struct { XMLName xml.Name `xml:"date,omitempty" json:"date,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcalendar string `xml:"calendar,attr" json:",omitempty"` Attrencodinganalog string `xml:"encodinganalog,attr" json:",omitempty"` Attrera string `xml:"era,attr" json:",omitempty"` Attrnormal string `xml:"normal,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Date string `xml:",chardata" json:",omitempty"` }
type Cdescgrp ¶
type Cdescgrp struct { XMLName xml.Name `xml:"descgrp,omitempty" json:"descgrp,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Caccessrestrict []*Caccessrestrict `xml:"accessrestrict,omitempty" json:"accessrestrict,omitempty"` Caccruals []*Caccruals `xml:"accruals,omitempty" json:"accruals,omitempty"` Cacqinfo []*Cacqinfo `xml:"acqinfo,omitempty" json:"acqinfo,omitempty"` Caltformavail []*Caltformavail `xml:"altformavail,omitempty" json:"altformavail,omitempty"` Cappraisal []*Cappraisal `xml:"appraisal,omitempty" json:"appraisal,omitempty"` Carrangement []*Carrangement `xml:"arrangement,omitempty" json:"arrangement,omitempty"` Cbibliography []*Cbibliography `xml:"bibliography,omitempty" json:"bibliography,omitempty"` Cbioghist []*Cbioghist `xml:"bioghist,omitempty" json:"bioghist,omitempty"` Ccontrolaccess []*Ccontrolaccess `xml:"controlaccess,omitempty" json:"controlaccess,omitempty"` Ccustodhist []*Ccustodhist `xml:"custodhist,omitempty" json:"custodhist,omitempty"` Cfileplan *Cfileplan `xml:"fileplan,omitempty" json:"fileplan,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cindex []*Cindex `xml:"index,omitempty" json:"index,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Codd []*Codd `xml:"odd,omitempty" json:"odd,omitempty"` Coriginalsloc *Coriginalsloc `xml:"originalsloc,omitempty" json:"originalsloc,omitempty"` Cotherfindaid []*Cotherfindaid `xml:"otherfindaid,omitempty" json:"otherfindaid,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cphystech []*Cphystech `xml:"phystech,omitempty" json:"phystech,omitempty"` Cprefercite *Cprefercite `xml:"prefercite,omitempty" json:"prefercite,omitempty"` Cprocessinfo []*Cprocessinfo `xml:"processinfo,omitempty" json:"processinfo,omitempty"` Cscopecontent []*Cscopecontent `xml:"scopecontent,omitempty" json:"scopecontent,omitempty"` Cseparatedmaterial []*Cseparatedmaterial `xml:"separatedmaterial,omitempty" json:"separatedmaterial,omitempty"` Cuserestrict []*Cuserestrict `xml:"userestrict,omitempty" json:"userestrict,omitempty"` }
type Cdescrules ¶
type Cdescrules struct { XMLName xml.Name `xml:"descrules,omitempty" json:"descrules,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Cbibref []*Cbibref `xml:"bibref,omitempty" json:"bibref,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Descrules string `xml:",chardata" json:",omitempty"` }
type Cdid ¶
type Cdid struct { XMLName xml.Name `xml:"did,omitempty" json:"did,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Cabstract *Cabstract `xml:"abstract,omitempty" json:"abstract,omitempty"` Cdao []*Cdao `xml:"dao,omitempty" json:"dao,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clangmaterial *Clangmaterial `xml:"langmaterial,omitempty" json:"langmaterial,omitempty"` Cmaterialspec []*Cmaterialspec `xml:"materialspec,omitempty" json:"materialspec,omitempty"` Corigination *Corigination `xml:"origination,omitempty" json:"origination,omitempty"` Cphysdesc []*Cphysdesc `xml:"physdesc,omitempty" json:"physdesc,omitempty"` Cphysloc []*Cphysloc `xml:"physloc,omitempty" json:"physloc,omitempty"` Crepository *Crepository `xml:"repository,omitempty" json:"repository,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Cunitid []*Cunitid `xml:"unitid,omitempty" json:"unitid,omitempty"` Cunittitle []*Cunittitle `xml:"unittitle,omitempty" json:"unittitle,omitempty"` }
func (*Cdid) NewNodeIDs ¶
NewNodeIDs extract Unit Identifiers from the EAD did
type Cdimensions ¶ added in v0.1.1
type Cdsc ¶
type Cdsc struct { XMLName xml.Name `xml:"dsc,omitempty" json:"dsc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Cc []*Cc `xml:"c,omitempty" json:"c,omitempty"` Numbered []*Cc01 `xml:"c01,omitempty" json:"c,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
func (*Cdsc) NewNodeList ¶
func (dsc *Cdsc) NewNodeList(cfg *NodeConfig) (*NodeList, uint64, error)
NewNodeList converts the Archival Description Level to a Nodelist Nodelist is an optimized lossless Protocol Buffer container.
type Cead ¶
type Cead struct { XMLName xml.Name `xml:"ead,omitempty" json:"ead,omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Carchdesc *Carchdesc `xml:"archdesc,omitempty" json:"archdesc,omitempty"` Ceadheader *Ceadheader `xml:"eadheader,omitempty" json:"eadheader,omitempty"` }
do not include Raw
func (*Cead) DescriptionGraph ¶
func (cead *Cead) DescriptionGraph(cfg *NodeConfig, unitInfo *UnitInfo) (*fragments.FragmentGraph, *fragments.ResourceMap, error)
DescriptionGraph returns the graph of the Description section (archdesc, descgroups, desc/did) as a FragmentGraph
func (*Cead) RawDescription ¶
RawDescription returns the EAD description stripped of all markup.
func (*Cead) SaveDescription ¶
func (cead *Cead) SaveDescription(cfg *NodeConfig, unitInfo *UnitInfo, p *elastic.BulkProcessor) error
SaveDescription stores the FragmentGraph of the EAD description in ElasticSearch
type Ceadheader ¶
type Ceadheader struct { XMLName xml.Name `xml:"eadheader,omitempty" json:"eadheader,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcountryencoding string `xml:"countryencoding,attr" json:",omitempty"` Attrdateencoding string `xml:"dateencoding,attr" json:",omitempty"` Attrfindaidstatus string `xml:"findaidstatus,attr" json:",omitempty"` Attrlangencoding string `xml:"langencoding,attr" json:",omitempty"` Attrrepositoryencoding string `xml:"repositoryencoding,attr" json:",omitempty"` Attrscriptencoding string `xml:"scriptencoding,attr" json:",omitempty"` Ceadid *Ceadid `xml:"eadid,omitempty" json:"eadid,omitempty"` Cfiledesc *Cfiledesc `xml:"filedesc,omitempty" json:"filedesc,omitempty"` Cprofiledesc *Cprofiledesc `xml:"profiledesc,omitempty" json:"profiledesc,omitempty"` Crevisiondesc *Crevisiondesc `xml:"revisiondesc,omitempty" json:"revisiondesc,omitempty"` }
func (*Ceadheader) GetOwner ¶
func (eh *Ceadheader) GetOwner() string
GetOwner returns the owner of the EAD
func (*Ceadheader) GetTitle ¶
func (eh *Ceadheader) GetTitle() string
GetTitle returns the title of the EAD
type Ceadid ¶
type Ceadid struct { XMLName xml.Name `xml:"eadid,omitempty" json:"eadid,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcountrycode string `xml:"countrycode,attr" json:",omitempty"` Attrmainagencycode string `xml:"mainagencycode,attr" json:",omitempty"` Attrpublicid string `xml:"publicid,attr" json:",omitempty"` Attrurl string `xml:"url,attr" json:",omitempty"` Attrurn string `xml:"urn,attr" json:",omitempty"` EadID string `xml:",chardata" json:",omitempty"` }
type Ceditionstmt ¶
type Centry ¶ added in v0.1.1
type Centry struct { XMLName xml.Name `xml:"entry,omitempty" json:"entry,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attralign string `xml:"align,attr" json:",omitempty"` Attrchar string `xml:"char,attr" json:",omitempty"` Attrcharoff string `xml:"charoff,attr" json:",omitempty"` Attrcolname string `xml:"colname,attr" json:",omitempty"` Attrcolsep string `xml:"colsep,attr" json:",omitempty"` Attrnameend string `xml:"nameend,attr" json:",omitempty"` Attrnamest string `xml:"namest,attr" json:",omitempty"` Attrrowsep string `xml:"rowsep,attr" json:",omitempty"` Attrvalign string `xml:"valign,attr" json:",omitempty"` Carchref []*Carchref `xml:"archref,omitempty" json:"archref,omitempty"` Cbibref []*Cbibref `xml:"bibref,omitempty" json:"bibref,omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cemph []*Cemph `xml:"emph,omitempty" json:"emph,omitempty"` Cfamname []*Cfamname `xml:"famname,omitempty" json:"famname,omitempty"` Cfunction *Cfunction `xml:"function,omitempty" json:"function,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cref []*Cref `xml:"ref,omitempty" json:"ref,omitempty"` Csubject *Csubject `xml:"subject,omitempty" json:"subject,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Cunittitle []*Cunittitle `xml:"unittitle,omitempty" json:"unittitle,omitempty"` Entry string `xml:",chardata" json:",omitempty"` }
type Cevent ¶
type Cevent struct { XMLName xml.Name `xml:"event,omitempty" json:"event,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Event string `xml:",chardata" json:",omitempty"` }
type Cextptr ¶ added in v0.1.1
type Cextptr struct { XMLName xml.Name `xml:"extptr,omitempty" json:"extptr,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attrhref string `xml:"href,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` }
type Cextref ¶
type Cextref struct { XMLName xml.Name `xml:"extref,omitempty" json:"extref,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attrhref string `xml:"href,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Extref string `xml:",chardata" json:",omitempty"` }
type Cfiledesc ¶
type Cfiledesc struct { XMLName xml.Name `xml:"filedesc,omitempty" json:"filedesc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Ceditionstmt *Ceditionstmt `xml:"editionstmt,omitempty" json:"editionstmt,omitempty"` Cnotestmt *Cnotestmt `xml:"notestmt,omitempty" json:"notestmt,omitempty"` Cpublicationstmt *Cpublicationstmt `xml:"publicationstmt,omitempty" json:"publicationstmt,omitempty"` Ctitlestmt *Ctitlestmt `xml:"titlestmt,omitempty" json:"titlestmt,omitempty"` }
type Cfileplan ¶ added in v0.1.1
type Cfileplan struct { XMLName xml.Name `xml:"fileplan,omitempty" json:"fileplan,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cfileplan *Cfileplan `xml:"fileplan,omitempty" json:"fileplan,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cgenreform ¶
type Cgeogname ¶ added in v0.1.1
type Cgeogname struct { XMLName xml.Name `xml:"geogname,omitempty" json:"geogname,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrencodinganalog string `xml:"encodinganalog,attr" json:",omitempty"` Attrnormal string `xml:"normal,attr" json:",omitempty"` Geogname string `xml:",chardata" json:",omitempty"` }
type Cimprint ¶ added in v0.1.1
type Cimprint struct { XMLName xml.Name `xml:"imprint,omitempty" json:"imprint,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Cpublisher *Cpublisher `xml:"publisher,omitempty" json:"publisher,omitempty"` Imprint string `xml:",chardata" json:",omitempty"` }
type Cindex ¶ added in v0.1.1
type Cindex struct { XMLName xml.Name `xml:"index,omitempty" json:"index,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cindexentry []*Cindexentry `xml:"indexentry,omitempty" json:"indexentry,omitempty"` Clisthead *Clisthead `xml:"listhead,omitempty" json:"listhead,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
type Cindexentry ¶ added in v0.1.1
type Cindexentry struct { XMLName xml.Name `xml:"indexentry,omitempty" json:"indexentry,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cptrgrp *Cptrgrp `xml:"ptrgrp,omitempty" json:"ptrgrp,omitempty"` Cref []*Cref `xml:"ref,omitempty" json:"ref,omitempty"` Csubject *Csubject `xml:"subject,omitempty" json:"subject,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` }
type Citem ¶
type Citem struct { XMLName xml.Name `xml:"item,omitempty" json:"item,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Carchref []*Carchref `xml:"archref,omitempty" json:"archref,omitempty"` Cbibref []*Cbibref `xml:"bibref,omitempty" json:"bibref,omitempty"` Cchronlist []*Cchronlist `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cemph []*Cemph `xml:"emph,omitempty" json:"emph,omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Citem []*Citem `xml:"item,omitempty" json:"item,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cnum []*Cnum `xml:"num,omitempty" json:"num,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cref []*Cref `xml:"ref,omitempty" json:"ref,omitempty"` Csubject *Csubject `xml:"subject,omitempty" json:"subject,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Cunittitle []*Cunittitle `xml:"unittitle,omitempty" json:"unittitle,omitempty"` Item string `xml:",chardata" json:",omitempty"` }
type Clangmaterial ¶
type Clangmaterial struct { XMLName xml.Name `xml:"langmaterial,omitempty" json:"langmaterial,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Clanguage []*Clanguage `xml:"language,omitempty" json:"language,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Langmaterial string `xml:",chardata" json:",omitempty"` }
type Clanguage ¶
type Clanguage struct { XMLName xml.Name `xml:"language,omitempty" json:"language,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlangcode string `xml:"langcode,attr" json:",omitempty"` Attrscriptcode string `xml:"scriptcode,attr" json:",omitempty"` Language string `xml:",chardata" json:",omitempty"` }
type Clangusage ¶
type Clegalstatus ¶
type Clist ¶
type Clist struct { XMLName xml.Name `xml:"list,omitempty" json:"list,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcontinuation string `xml:"continuation,attr" json:",omitempty"` Attrmark string `xml:"mark,attr" json:",omitempty"` Attrnumeration string `xml:"numeration,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Cdefitem []*Cdefitem `xml:"defitem,omitempty" json:"defitem,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Citem []*Citem `xml:"item,omitempty" json:"item,omitempty"` Clisthead *Clisthead `xml:"listhead,omitempty" json:"listhead,omitempty"` }
type Cmaterialspec ¶
type Cmaterialspec struct { XMLName xml.Name `xml:"materialspec,omitempty" json:"materialspec,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Materialspec string `xml:",chardata" json:",omitempty"` }
type Cnote ¶
type Cnote struct { XMLName xml.Name `xml:"note,omitempty" json:"note,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Note string `xml:",chardata" json:",omitempty"` }
type Cnotestmt ¶ added in v0.1.1
type Cnotestmt struct { XMLName xml.Name `xml:"notestmt,omitempty" json:"notestmt,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Notestmt string `xml:",chardata" json:",omitempty"` }
type Codd ¶
type Codd struct { XMLName xml.Name `xml:"odd,omitempty" json:"odd,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Cchronlist []*Cchronlist `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Codd []*Codd `xml:"odd,omitempty" json:"odd,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Csubject *Csubject `xml:"subject,omitempty" json:"subject,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Coriginalsloc ¶ added in v0.1.1
type Coriginalsloc struct { XMLName xml.Name `xml:"originalsloc,omitempty" json:"originalsloc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Corigination ¶
type Corigination struct { XMLName xml.Name `xml:"origination,omitempty" json:"origination,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cfamname []*Cfamname `xml:"famname,omitempty" json:"famname,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Origination string `xml:",chardata" json:",omitempty"` }
type Cotherfindaid ¶ added in v0.1.1
type Cotherfindaid struct { XMLName xml.Name `xml:"otherfindaid,omitempty" json:"otherfindaid,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
type Cp ¶
type Cp struct { XMLName xml.Name `xml:"p,omitempty" json:"p,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraltrender string `xml:"altrender,attr" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Carchref []*Carchref `xml:"archref,omitempty" json:"archref,omitempty"` Cbibref []*Cbibref `xml:"bibref,omitempty" json:"bibref,omitempty"` Cblockquote *Cblockquote `xml:"blockquote,omitempty" json:"blockquote,omitempty"` Cchronlist []*Cchronlist `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cemph []*Cemph `xml:"emph,omitempty" json:"emph,omitempty"` Cextptr []*Cextptr `xml:"extptr,omitempty" json:"extptr,omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cnum []*Cnum `xml:"num,omitempty" json:"num,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cref []*Cref `xml:"ref,omitempty" json:"ref,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` P string `xml:",chardata" json:",omitempty"` }
type Cpersname ¶ added in v0.1.1
type Cpersname struct { XMLName xml.Name `xml:"persname,omitempty" json:"persname,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Attrnormal string `xml:"normal,attr" json:",omitempty"` Attrrole string `xml:"role,attr" json:",omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Persname string `xml:",chardata" json:",omitempty"` }
type Cphysdesc ¶
type Cphysdesc struct { XMLName xml.Name `xml:"physdesc,omitempty" json:"physdesc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Cdimensions []*Cdimensions `xml:"dimensions,omitempty" json:"dimensions,omitempty"` Cextent []*Cextent `xml:"extent,omitempty" json:"extent,omitempty"` Cgenreform *Cgenreform `xml:"genreform,omitempty" json:"genreform,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Cphysfacet []*Cphysfacet `xml:"physfacet,omitempty" json:"physfacet,omitempty"` Physdesc string `xml:",chardata" json:",omitempty"` }
type Cphysfacet ¶
type Cphysfacet struct { XMLName xml.Name `xml:"physfacet,omitempty" json:"physfacet,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrencodinganalog string `xml:"encodinganalog,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Physfacet string `xml:",chardata" json:",omitempty"` }
type Cphystech ¶
type Cphystech struct { XMLName xml.Name `xml:"phystech,omitempty" json:"phystech,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` }
type Cprefercite ¶
type Cprocessinfo ¶
type Cprocessinfo struct { XMLName xml.Name `xml:"processinfo,omitempty" json:"processinfo,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cprocessinfo []*Cprocessinfo `xml:"processinfo,omitempty" json:"processinfo,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cprofiledesc ¶
type Cprofiledesc struct { XMLName xml.Name `xml:"profiledesc,omitempty" json:"profiledesc,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Ccreation *Ccreation `xml:"creation,omitempty" json:"creation,omitempty"` Cdescrules *Cdescrules `xml:"descrules,omitempty" json:"descrules,omitempty"` Clangusage *Clangusage `xml:"langusage,omitempty" json:"langusage,omitempty"` }
type Cpublicationstmt ¶
type Cpublicationstmt struct { XMLName xml.Name `xml:"publicationstmt,omitempty" json:"publicationstmt,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cpublisher *Cpublisher `xml:"publisher,omitempty" json:"publisher,omitempty"` }
type Cpublisher ¶
type Cref ¶
type Cref struct { XMLName xml.Name `xml:"ref,omitempty" json:"ref,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attractuate string `xml:"actuate,attr" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrshow string `xml:"show,attr" json:",omitempty"` Attrtarget string `xml:"target,attr" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cnote []*Cnote `xml:"note,omitempty" json:"note,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Ref string `xml:",chardata" json:",omitempty"` }
type Crelatedmaterial ¶
type Crelatedmaterial struct {}
type Crepository ¶
type Crepository struct { XMLName xml.Name `xml:"repository,omitempty" json:"repository,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Repository string `xml:",chardata" json:",omitempty"` }
type Crevisiondesc ¶
type Cscopecontent ¶
type Cscopecontent struct { XMLName xml.Name `xml:"scopecontent,omitempty" json:"scopecontent,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraltrender string `xml:"altrender,attr" json:",omitempty"` Cchronlist []*Cchronlist `xml:"chronlist,omitempty" json:"chronlist,omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cscopecontent []*Cscopecontent `xml:"scopecontent,omitempty" json:"scopecontent,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Cseparatedmaterial ¶ added in v0.1.1
type Cseparatedmaterial struct { XMLName xml.Name `xml:"separatedmaterial,omitempty" json:"separatedmaterial,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cseparatedmaterial []*Cseparatedmaterial `xml:"separatedmaterial,omitempty" json:"separatedmaterial,omitempty"` Ctable []*Ctable `xml:"table,omitempty" json:"table,omitempty"` }
type Ctable ¶ added in v0.1.1
type Ctable struct { XMLName xml.Name `xml:"table,omitempty" json:"table,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcolsep string `xml:"colsep,attr" json:",omitempty"` Attrframe string `xml:"frame,attr" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Attrpgwide string `xml:"pgwide,attr" json:",omitempty"` Attrrowsep string `xml:"rowsep,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Ctgroup []*Ctgroup `xml:"tgroup,omitempty" json:"tgroup,omitempty"` }
type Ctgroup ¶ added in v0.1.1
type Ctgroup struct { XMLName xml.Name `xml:"tgroup,omitempty" json:"tgroup,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcols string `xml:"cols,attr" json:",omitempty"` Ccolspec []*Ccolspec `xml:"colspec,omitempty" json:"colspec,omitempty"` Ctbody *Ctbody `xml:"tbody,omitempty" json:"tbody,omitempty"` Cthead *Cthead `xml:"thead,omitempty" json:"thead,omitempty"` }
type Ctitle ¶
type Ctitle struct { XMLName xml.Name `xml:"title,omitempty" json:"title,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlinktype string `xml:"linktype,attr" json:",omitempty"` Attrrender string `xml:"render,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Title string `xml:",chardata" json:",omitempty"` }
type Ctitleproper ¶
type Ctitlestmt ¶
type Ctitlestmt struct { XMLName xml.Name `xml:"titlestmt,omitempty" json:"titlestmt,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Ctitleproper *Ctitleproper `xml:"titleproper,omitempty" json:"titleproper,omitempty"` }
type Cunitdate ¶
type Cunitdate struct { XMLName xml.Name `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrcalendar string `xml:"calendar,attr" json:",omitempty"` Attrcertainty string `xml:"certainty,attr" json:",omitempty"` Attrera string `xml:"era,attr" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Attrnormal string `xml:"normal,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Unitdate string `xml:",chardata" json:",omitempty"` }
func (*Cunitdate) NewNodeDate ¶
NewNodeDate extract date information frme the EAD unitdate
type Cunitid ¶
type Cunitid struct { XMLName xml.Name `xml:"unitid,omitempty" json:"unitid,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attraudience string `xml:"audience,attr" json:",omitempty"` Attrcountrycode string `xml:"countrycode,attr" json:",omitempty"` Attrencodinganalog string `xml:"encodinganalog,attr" json:",omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Attridentifier string `xml:"identifier,attr" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Attrrepositorycode string `xml:"repositorycode,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Unitid string `xml:",chardata" json:",omitempty"` }
type Cunittitle ¶
type Cunittitle struct { XMLName xml.Name `xml:"unittitle,omitempty" json:"unittitle,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrlabel string `xml:"label,attr" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Carchref []*Carchref `xml:"archref,omitempty" json:"archref,omitempty"` Cbibref []*Cbibref `xml:"bibref,omitempty" json:"bibref,omitempty"` Ccorpname []*Ccorpname `xml:"corpname,omitempty" json:"corpname,omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` Cemph []*Cemph `xml:"emph,omitempty" json:"emph,omitempty"` Cextref []*Cextref `xml:"extref,omitempty" json:"extref,omitempty"` Cfamname []*Cfamname `xml:"famname,omitempty" json:"famname,omitempty"` Cgenreform *Cgenreform `xml:"genreform,omitempty" json:"genreform,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Clb []*Clb `xml:"lb,omitempty" json:"lb,omitempty"` Cname []*Cname `xml:"name,omitempty" json:"name,omitempty"` Cnum []*Cnum `xml:"num,omitempty" json:"num,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cref []*Cref `xml:"ref,omitempty" json:"ref,omitempty"` Ctitle []*Ctitle `xml:"title,omitempty" json:"title,omitempty"` Cunitdate []*Cunitdate `xml:"unitdate,omitempty" json:"unitdate,omitempty"` Unittitle string `xml:",chardata" json:",omitempty"` }
func (*Cunittitle) Title ¶
func (ut *Cunittitle) Title() string
type Cuserestrict ¶
type Cuserestrict struct { XMLName xml.Name `xml:"userestrict,omitempty" json:"userestrict,omitempty"` Raw []byte `xml:",innerxml" json:",omitempty"` Attrtype string `xml:"type,attr" json:",omitempty"` Chead []*Chead `xml:"head,omitempty" json:"head,omitempty"` Clist []*Clist `xml:"list,omitempty" json:"list,omitempty"` Cp []*Cp `xml:"p,omitempty" json:"p,omitempty"` Cuserestrict []*Cuserestrict `xml:"userestrict,omitempty" json:"userestrict,omitempty"` }
type DataItem ¶
type DataItem struct { Type DataType `json:"type"` Text string `json:"text,omitempty"` Label string `json:"label,omitempty"` Note string `json:"note,omitempty"` // language type LangCode string `json:"langCode,omitempty"` ScriptCode string `json:"scriptCode,omitempty"` // Unit Number string `json:"number,omitempty"` Units string `json:"units,omitempty"` // datatype tag Tag string `json:"tag,omitempty"` TagType string `json:"tagType,omitempty"` // list tag ListNumber string `json:"listNumber,omitempty"` ListType string `json:"listType,omitempty"` // Repository type Link string `json:"link,omitempty"` LinkType string `json:"linkType,omitempty"` Activate string `json:"activate,omitempty"` ShowLink string `json:"showLink,omitempty"` // nested blocks //Inner []DataItem `json:"inner,omitempty"` Depth int `json:"depth,omitempty"` ParentIDS string `json:"parentIDS"` //FlowType between data items FlowType FlowType `json:"flowType"` Order uint64 `json:"order,omitempty"` Closed bool `json:"closed,omitempty"` // date type Normal string `json:"normal,omitempty"` Era string `json:"era,omitempty"` Calendar string `json:"calendar,omitempty"` }
DataItem holds every data entry in the Archival Description.
type DataType ¶
type DataType int
func (DataType) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*DataType) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to the enum value
type Deque ¶
type Deque struct {
// contains filtered or unexported fields
}
Deque represents a single instance of the deque data structure.
func (*Deque) At ¶
At returns the element at index i in the queue without removing the element from the queue. This method accepts only non-negative index values. At(0) refers to the first element and is the same as Front(). At(Len()-1) refers to the last element and is the same as Back(). If the index is invalid, the call returns false.
The purpose of At is to allow Deque to serve as a more general purpose circular buffer, where items are only added to and removed from the ends of the deque, but may be read from any place within the deque. Consider the case of a fixed-size circular log buffer: A new entry is pushed onto one end and when full the oldest is popped from the other end. All the log entries in the buffer must be readable without altering the buffer contents.
func (*Deque) Back ¶
Back returns the element at the back of the queue. This is the element that would be returned by PopBack(). If the queue is empty, the call returns false.
func (*Deque) Clear ¶
func (q *Deque) Clear()
Clear removes all elements from the queue, but retains the current capacity. This is useful when repeatedly reusing the queue at high frequency to avoid GC during reuse. The queue will not be resized smaller as long as items are only added. Only when items are removed is the queue subject to getting resized smaller.
func (*Deque) Front ¶
Front returns the element at the front of the queue. This is the element that would be returned by PopFront(). If the queue is empty, the call returns false.
func (*Deque) List ¶
func (q *Deque) List() []interface{}
List returns all the elements currently stored in the queue.
func (*Deque) PopBack ¶
PopBack removes and returns the element from the back of the queue. Implements LIFO when used with PushBack(). If the queue is empty, the call returns false.
func (*Deque) PopFront ¶
PopFront removes and returns the element from the front of the queue. Implements FIFO when used with PushBack(). If the queue is empty, the call returns false.
func (*Deque) PushBack ¶
func (q *Deque) PushBack(elem interface{})
PushBack appends an element to the back of the queue. Implements FIFO when elements are removed with PopFront(), and LIFO when elements are removed with PopBack().
func (*Deque) PushFront ¶
func (q *Deque) PushFront(elem interface{})
PushFront prepends an element to the front of the queue.
func (*Deque) Rotate ¶
Rotate rotates the deque n steps front-to-back. If n is negative, rotates back-to-front. Having Deque provide Rotate() avoids resizing that could happen if implementing rotation using only Pop and Push methods.
func (*Deque) SetMinCapacity ¶
SetMinCapacity sets a minimum capacity of 2^minCapacityExp. If the value of the minimum capacity is less than or equal to the minimum allowed, then capacity is set to the minimum allowed. This may be called at anytime to set a new minimum capacity.
Setting a larger minimum capacity may be used to prevent resizing when the number of stored items changes frequently across a wide range.
type Description ¶
type Description struct { Summary Summary `json:"summary,omitempty"` Section []*SectionInfo `json:"sections,omitempty"` NrSections int `json:"nrSections,omitempty"` NrItems int `json:"nrItems,omitempty"` NrHits int `json:"nrHits"` Item []*DataItem `json:"item,omitempty"` }
Description is simplified version of the 'eadheader', 'archdesc/did' and 'archdesc/descgroups'.
The goal of the simplification is reduce the complexity of the Archival Description for searching and rendering without loosing semantic meaning.
func GetDescription ¶ added in v0.1.3
func GetDescription(spec string) (*Description, error)
func NewDescription ¶
func NewDescription(ead *Cead) (*Description, error)
NewDescription creates an Description from a Cead object.
func (*Description) DescriptionGraph ¶ added in v0.1.3
func (desc *Description) DescriptionGraph(cfg *NodeConfig, unitInfo *UnitInfo) (*fragments.FragmentGraph, *fragments.ResourceMap, error)
func (*Description) SaveDescription ¶ added in v0.1.3
func (desc *Description) SaveDescription(cfg *NodeConfig, unitInfo *UnitInfo, p BulkProcessor) error
func (*Description) Write ¶ added in v0.1.3
func (desc *Description) Write() error
type DescriptionIndex ¶ added in v0.1.3
type DescriptionIndex struct {
// contains filtered or unexported fields
}
func GetDescriptionIndex ¶ added in v0.1.3
func GetDescriptionIndex(spec string) (*DescriptionIndex, error)
func NewDescriptionIndex ¶ added in v0.1.3
func NewDescriptionIndex(spec string) *DescriptionIndex
func (*DescriptionIndex) CreateFrom ¶ added in v0.1.3
func (di *DescriptionIndex) CreateFrom(desc *Description) error
func (*DescriptionIndex) HighlightMatches ¶ added in v0.1.3
func (*DescriptionIndex) SearchWithString ¶ added in v0.1.3
func (di *DescriptionIndex) SearchWithString(query string) (*search.Matches, error)
func (*DescriptionIndex) Write ¶ added in v0.1.3
func (di *DescriptionIndex) Write() error
type DuplicateError ¶
type Extractor ¶ added in v0.1.3
type Extractor struct { XMLName xml.Name `xml:"input,omitempty" json:"input,omitempty"` Cgeogname []*Cgeogname `xml:"geogname,omitempty" json:"geogname,omitempty"` Cpersname []*Cpersname `xml:"persname,omitempty" json:"persname,omitempty"` Cdate []*Cdate `xml:"date,omitempty" json:"date,omitempty"` }
func NewExtractor ¶ added in v0.1.3
type File ¶
type File struct { Title string `json:"title,omitempty"` Author string `json:"author,omitempty"` Edition []string `json:"edition,omitempty"` Publisher string `json:"publisher,omitempty"` PublicationDate string `json:"publicationDate,omitempty"` Copyright string `json:"copyright,omitempty"` CopyrightURI string `json:"copyrightURI"` }
File holds the meta-information about the EAD file
type FindingAid ¶
type FindingAid struct { ID string `json:"id,omitempty"` Country string `json:"country,omitempty"` AgencyCode string `json:"agencyCode,omitempty"` Title []string `json:"title,omitempty"` ShortTitle string `json:"shortTitle,omitempty"` UnitInfo *UnitInfo `json:"unit,omitempty"` }
FindingAid holds the core information about the Archival Record
func (*FindingAid) AddUnit ¶
func (fa *FindingAid) AddUnit(archdesc *Carchdesc) error
AddUnit adds the DID information from the ArchDesc to the FindingAid.
type FlowType ¶
type FlowType int
func (FlowType) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*FlowType) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to the enum value
type Header ¶
type Header struct { Type string InventoryNumber string ID []*NodeID Label []string Date []*NodeDate Physdesc string Physloc string DateAsLabel bool HasDigitalObject bool DaoLink string AltRender string Genreform string Attridentifier string }
func (*Header) GetPeriods ¶
GetPeriods return a list of human readable periods from the EAD unitDate
func (*Header) GetTreeLabel ¶
GetTreeLabel returns the label that needs to be shown with the tree
type Manifest ¶
type Manifest struct { InventoryID string `json:"inventoryID"` ArchiveName string `json:"archiveName"` UnitID string `json:"unitID"` UnitTitle string `json:"unitTitle"` }
Manifest holds all the information for an archive to create a IIIF manifest.
type MetsCounter ¶
type MetsCounter struct {
// contains filtered or unexported fields
}
MetsCounter is a concurrency safe counter for number of Mets-files processed
func (*MetsCounter) AppendError ¶
func (mc *MetsCounter) AppendError(err string)
func (*MetsCounter) GetCount ¶
func (mc *MetsCounter) GetCount() uint64
GetCount returns the snapshot of the current count
func (*MetsCounter) GetDigitalObjectCount ¶
func (mc *MetsCounter) GetDigitalObjectCount() uint64
GetDigitalObjectCount returns the snapshot of the current count
func (*MetsCounter) GetErrorCount ¶
func (mc *MetsCounter) GetErrorCount() uint64
GetErrorCount returns the snapshot of the current error count
func (*MetsCounter) GetErrors ¶
func (mc *MetsCounter) GetErrors() []string
func (*MetsCounter) GetUniqueCounter ¶
func (mc *MetsCounter) GetUniqueCounter() map[string]int
GetUniqueCounter returns the map of unique METS links.
func (*MetsCounter) Increment ¶
func (mc *MetsCounter) Increment(daoLink string)
Increment increments the count by one
func (*MetsCounter) IncrementDigitalObject ¶
func (mc *MetsCounter) IncrementDigitalObject(delta uint64)
IncrementDigitalObject increments the count by one
func (*MetsCounter) IncrementError ¶
func (mc *MetsCounter) IncrementError()
IncrementError increments the error count by one
type Node ¶
type Node struct { CTag string Depth int32 Type string SubType string Header *Header Nodes []*Node Order uint64 ParentIDs []string Path string BranchID string AccessRestrict string AccessRestrictYear string Material string Phystech []string // contains filtered or unexported fields }
Node holds all the clevel information.
func NewNode ¶
func NewNode(cl CLevel, parentIDs []string, cfg *NodeConfig) (*Node, error)
NewNode converts EAD c01 to a Archival Node
func (*Node) ESSave ¶
func (n *Node) ESSave(cfg *NodeConfig, p *elastic.BulkProcessor) error
ESSave stores a Fragments and a FragmentGraph in ElasticSearch
func (*Node) FragmentGraph ¶
func (n *Node) FragmentGraph(cfg *NodeConfig) (*fragments.FragmentGraph, *fragments.ResourceMap, error)
FragmentGraph returns the archival node as a FragmentGraph
func (*Node) GetSubject ¶
func (n *Node) GetSubject(cfg *NodeConfig) string
GetSubject creates subject URI for the parent Node the header itself is an anonymous BlankNode
type NodeConfig ¶
type NodeConfig struct { Counter *NodeCounter MetsCounter *MetsCounter OrgID string Spec string Title []string TitleShort string Revision int32 PeriodDesc []string MimeTypes map[string][]string Errors []*DuplicateError Client *http.Client BulkProcessor BulkProcessor CreateTree func(cfg *NodeConfig, n *Node, hubID string, id string) *fragments.Tree ContentIdentical bool // contains filtered or unexported fields }
NodeConfig holds all the configuration options fo generating Archive Nodes
func NewNodeConfig ¶
func NewNodeConfig(ctx context.Context) *NodeConfig
NewNodeConfig creates a new NodeConfig
func ProcessEAD ¶
func (*NodeConfig) AddLabel ¶
func (nc *NodeConfig) AddLabel(id, label string)
AddLabel adds a cLevel id and its label to the label map This map is used to resolve the label for each clevel for rendering the tree
func (*NodeConfig) ErrorToCSV ¶
func (nc *NodeConfig) ErrorToCSV() ([]byte, error)
type NodeCounter ¶
type NodeCounter struct {
// contains filtered or unexported fields
}
NodeCounter is a concurrency safe counter for number of Nodes processed
func (*NodeCounter) GetCount ¶
func (nc *NodeCounter) GetCount() uint64
GetCount returns the snapshot of the current count
func (*NodeCounter) Increment ¶
func (nc *NodeCounter) Increment()
Increment increments the count by one
type NodeDate ¶
func (*NodeDate) ValidDateNormal ¶
ValidDateNormal returns if the range in Normal is valid.
type NodeList ¶
func (*NodeList) ESSave ¶
func (nl *NodeList) ESSave(cfg *NodeConfig, p *elastic.BulkProcessor) error
ESSave saves the list of Archive Nodes to ElasticSearch
type Profile ¶
type Profile struct { Creation string `json:"creation,omitempty"` Language string `json:"language,omitempty"` }
Profile details information about the creation of the Archival Record
type SearchRequest ¶ added in v0.1.3
type SearchRequest struct { Page int Rows int Query *elastic.BoolQuery RawQuery string Service *elastic.SearchService FacetFields []string Filters []*fragments.QueryFilter FacetSize int FacetAndBoolType bool SortBy string NestedSortField string SortAsc bool NoCache bool CacheRefresh bool CacheReset bool InventoryID string }
SearchRequest holds all information for EAD search
type SearchResponse ¶ added in v0.1.3
type SearchResponse struct { // ArchiveCount returns the number of collapsed Archives that match the search query ArchiveCount int `json:"archiveCount"` // Cursor the location of the first result in the ElasticSearch search response Cursor int `json:"cursor"` // TotalPages is the total number of pages in the search response TotalPages int `json:"totalPages"` // TotalClevelCount returns the total number of clevel that mathc the search query // this counts is per clevel, so multiple hits inside a clevel are counted as one TotalClevelCount int `json:"totalClevelCount"` // TotalDescriptionCount returns the total number of hits in the description. // This is an cardinatility aggregation so each hit inside the decription counts as a hit. TotalDescriptionCount int `json:"totalDescriptionCount"` // TotalHits is a combination of TotalClevelCount and TotalDescriptiontCount. TotalHits int `json:"totalHits"` // Archives contains the list of archives from the response constrained by the search pagination Archives []Archive `json:"archives"` // CLevels contains a paged result of the cLevels for a specific archive that match the search query // It is ordered by the ead orderKey. CLevels []CLevelEntry `json:"cLevels,omitempty"` // Facets holds the QueryFacets for filtering Facets []*fragments.QueryFacet `json:"facets,omitempty"` // Explain response from elasticsearch Explain *elastic.SearchResult `json:"explain,omitempty"` // Service is the elasticsearch query Service interface{} `json:"service,omitempty"` }
SearchResponse contains the EAD Search response.
func PerformClusteredSearch ¶ added in v0.1.3
func PerformClusteredSearch(r *http.Request) (*SearchResponse, error)
func PerformDetailSearch ¶ added in v0.1.3
func PerformDetailSearch(r *http.Request) (*SearchResponse, error)
type SectionInfo ¶
type SectionInfo struct { Text string `json:"text,omitempty"` Start int `json:"start,omitempty"` End int `json:"end,omitempty"` Order int `json:"order,omitempty"` }
SectionInfo holds meta information about each section so that it could render the DataItems per section.
type Summary ¶
type Summary struct { FindingAid *FindingAid `json:"findingAid,omitempty"` File *File `json:"file,omitempty"` Profile *Profile `json:"profile,omitempty"` }
Summary holds the essential metadata information to describe an Archive.
type UnitInfo ¶
type UnitInfo struct { Date []string `json:"date,omitempty"` DateBulk string `json:"dateBulk"` ID string `json:"id,omitempty"` Physical string `json:"physical,omitempty"` Files string `json:"files,omitempty"` Length string `json:"length,omitempty"` Language string `json:"language,omitempty"` Material string `json:"material,omitempty"` Repository string `json:"repository,omitempty"` PhysicalLocation string `json:"physicalLocation,omitempty"` Origin []string `json:"origin,omitempty"` Abstract []string `json:"abstract,omitempty"` }
UnitInfo holds the meta information of the Archival Record