Documentation ¶
Overview ¶
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Center for Digital Matter HGK FHNW, Basel. Copyright 2020 info-age GmbH, Basel.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AppendIfMissing(slice []string, s string) []string
- func CheckJWT(tokenstring string, secret string, alg []string, subject string) error
- func CheckJWTValid(tokenstring string, secret string, alg []string) (map[string]interface{}, error)
- func CheckRequestJWT(req *http.Request, secret string, alg []string, subject string) error
- func Compress(data []byte) []byte
- func CreateLogger(module string, logfile string, loglevel string) (log *logging.Logger, lf *os.File)
- func Decompress(data []byte) ([]byte, error)
- func EscapeSolrString(str string) string
- func FileExists(filename string) bool
- func GUnzip(data string) (string, error)
- func GetClaim(claim map[string]interface{}, name string) (string, error)
- func InList(slice []string, s string) bool
- func NewJWT(secret string, subject string, alg string, valid int64, domain string, ...) (tokenString string, err error)
- func SingleJoiningSlash(a, b string) string
- func UrlAmp(u string, ampCache string, t string) (string, error)
- type CollectionsStatus
- type DetailStatus
- type Document
- type FacetCountField
- type FacetCountResult
- type FacetManager
- type ImageSearchStatus
- type ItemDataBase
- type ItemDataPerson
- type ItemGeneric
- type ItemMedia
- type ItemMediaMeta
- type ItemTag
- type JSONDomainMap
- func (jdm *JSONDomainMap) SetBlockParentQuery(allParentsQuery string) *JSONDomainMap
- func (jdm *JSONDomainMap) WithFilter(filter string) *JSONDomainMap
- func (jdm *JSONDomainMap) WithQuery(query string) *JSONDomainMap
- func (jdm *JSONDomainMap) WithTagsToExclude(excludeTagsValue string) *JSONDomainMap
- type JSONFacetMap
- type JSONHeatmapFacetMap
- func (jfm *JSONHeatmapFacetMap) SetDistErr(distErr float64) *JSONHeatmapFacetMap
- func (jfm *JSONHeatmapFacetMap) SetDistErrPct(distErrPct float64) *JSONHeatmapFacetMap
- func (jfm *JSONHeatmapFacetMap) SetGridLevel(individualCellSize int64) *JSONHeatmapFacetMap
- func (jfm *JSONHeatmapFacetMap) SetHeatmapFormat(format string) *JSONHeatmapFacetMap
- func (jfm *JSONHeatmapFacetMap) SetRegionQuery(queryString string) *JSONHeatmapFacetMap
- type JSONQueryFacetMap
- type JSONRangeFacetMap
- type JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) IncludeAllBucketsUnionBucket(shouldInclude bool) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) IncludeMissingBucket(missingBucket bool) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) IncludeTotalNumBuckets(numBuckets bool) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) JSONFacetMap() *JSONFacetMap
- func (jfm *JSONTermsFacetMap) SetMinCount(minCount int64) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) SetOverRefine(numExtraBuckets int64) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) SetOverRequest(numExtraBuckets int64) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) SetPreliminarySort(preliminarySort string) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) SetTermPrefix(termPrefix string) *JSONTermsFacetMap
- func (jfm *JSONTermsFacetMap) UseDistributedFacetRefining(useRefining bool) *JSONTermsFacetMap
- type MTSolr
- func (mts *MTSolr) GetContent(entry *cacheEntry) (Source, error)
- func (mts *MTSolr) LoadEntities(ids []string) (map[string]*Document, error)
- func (mts *MTSolr) LoadEntity(id string) (*Document, error)
- func (mts *MTSolr) Search(text string, filters []string, facets map[string]termFacet, groups []string, ...) ([]*Document, int64, FacetCountResult, error)
- type Media
- type MediaList
- type Menu
- type NetGroups
- type Note
- type Notification
- type Parent
- type Person
- type Query
- type Reference
- type RelationList
- type Resource
- type ResourceParam
- type SearchResult
- type SearchResultItem
- type SearchStatus
- type Server
- func (s *Server) DoPanic(writer http.ResponseWriter, status int, message string) error
- func (s *Server) DoPanicJSON(writer http.ResponseWriter, status int, message string) (err error)
- func (s *Server) DoPanicf(writer http.ResponseWriter, status int, message string, json bool, ...) (err error)
- func (s *Server) GetClaimUser(claims map[string]interface{}) (*User, error)
- func (s *Server) InitTemplates(templates map[string][]string) (err error)
- func (s *Server) ListenAndServe(cert, key string) error
- func (s *Server) Shutdown(ctx context.Context) error
- type SolrFacet
- type SolrFacetList
- type SolrResultJSONFacetBucket
- type SolrResultJSONFacetElement
- type SolrResultJSONFacets
- type Source
- type SourceCDK
- func (cdk *SourceCDK) GetAbstract() string
- func (cdk *SourceCDK) GetCollectionTitle() string
- func (cdk *SourceCDK) GetContentMime() string
- func (cdk *SourceCDK) GetContentString() string
- func (cdk *SourceCDK) GetContentType() string
- func (cdk *SourceCDK) GetDate() string
- func (cdk *SourceCDK) GetExtra() map[string]string
- func (cdk *SourceCDK) GetMedia() map[string]MediaList
- func (cdk *SourceCDK) GetMeta() map[string]string
- func (cdk *SourceCDK) GetNotes() []Note
- func (cdk *SourceCDK) GetPersons() []Person
- func (cdk *SourceCDK) GetPlace() string
- func (cdk *SourceCDK) GetPoster() *Media
- func (cdk *SourceCDK) GetQueries() []Query
- func (cdk *SourceCDK) GetReferences() []Reference
- func (cdk *SourceCDK) GetSolrDoc() *solr.Document
- func (cdk *SourceCDK) GetTags() []string
- func (cdk *SourceCDK) GetTitle() string
- func (cdk *SourceCDK) Init(entry *cacheEntry) error
- func (cdk *SourceCDK) Name() string
- type SourceCDKData
- type SourceData
- type SourceDiplomHGK
- func (dhgk *SourceDiplomHGK) GetAbstract() string
- func (dhgk *SourceDiplomHGK) GetCollectionTitle() string
- func (dhgk *SourceDiplomHGK) GetContentMime() string
- func (dhgk *SourceDiplomHGK) GetContentString() string
- func (dhgk *SourceDiplomHGK) GetContentType() string
- func (dhgk *SourceDiplomHGK) GetDate() string
- func (dhgk *SourceDiplomHGK) GetExtra() map[string]string
- func (dhgk *SourceDiplomHGK) GetMedia() map[string]MediaList
- func (dhgk *SourceDiplomHGK) GetMeta() map[string]string
- func (dhgk *SourceDiplomHGK) GetNotes() []Note
- func (dhgk *SourceDiplomHGK) GetPersons() []Person
- func (dhgk *SourceDiplomHGK) GetPlace() string
- func (dhgk *SourceDiplomHGK) GetPoster() *Media
- func (dhgk *SourceDiplomHGK) GetQueries() []Query
- func (dhgk *SourceDiplomHGK) GetReferences() []Reference
- func (dhgk *SourceDiplomHGK) GetSolrDoc() *solr.Document
- func (dhgk *SourceDiplomHGK) GetTags() []string
- func (dhgk *SourceDiplomHGK) GetTitle() string
- func (dhgk *SourceDiplomHGK) Init(entry *cacheEntry) error
- func (dhgk *SourceDiplomHGK) Name() string
- type SourceDiplomHGKData
- type SourceDiplomHGKFile
- type SourceDiplomHGKFileMeta
- type SourceError
- func (serr *SourceError) GetAbstract() string
- func (serr *SourceError) GetCollectionTitle() string
- func (serr *SourceError) GetDate() string
- func (serr *SourceError) GetMedia() map[string]MediaList
- func (serr *SourceError) GetMeta() map[string]string
- func (serr *SourceError) GetNames() []Person
- func (serr *SourceError) GetNotes() []Note
- func (serr *SourceError) GetPlace() string
- func (serr *SourceError) GetQueries() []Query
- func (serr *SourceError) GetReferences() []Reference
- func (serr *SourceError) GetSolrDoc() *solr.Document
- func (serr *SourceError) GetTags() []string
- func (serr *SourceError) GetTitle() string
- func (serr *SourceError) GetType() string
- func (serr *SourceError) Name() string
- type SourceZoteroDeprecated
- func (zot *SourceZoteroDeprecated) GetAbstract() string
- func (zot *SourceZoteroDeprecated) GetChildren(itemType, linkMode string) []ZoteroData
- func (zot *SourceZoteroDeprecated) GetCollectionTitle() string
- func (zot *SourceZoteroDeprecated) GetContentMime() string
- func (zot *SourceZoteroDeprecated) GetContentString() string
- func (zot *SourceZoteroDeprecated) GetContentType() string
- func (zot *SourceZoteroDeprecated) GetDate() string
- func (zot *SourceZoteroDeprecated) GetExtra() map[string]string
- func (zot *SourceZoteroDeprecated) GetMedia() map[string]MediaList
- func (zot *SourceZoteroDeprecated) GetMeta() map[string]string
- func (zot *SourceZoteroDeprecated) GetNotes() []Note
- func (zot *SourceZoteroDeprecated) GetPersons() []Person
- func (zot *SourceZoteroDeprecated) GetPlace() string
- func (zot *SourceZoteroDeprecated) GetPoster() *Media
- func (zot *SourceZoteroDeprecated) GetQueries() []Query
- func (zot *SourceZoteroDeprecated) GetReferences() []Reference
- func (zot *SourceZoteroDeprecated) GetSolrDoc() *solr.Document
- func (zot *SourceZoteroDeprecated) GetTags() []string
- func (zot *SourceZoteroDeprecated) GetTitle() string
- func (zot *SourceZoteroDeprecated) Init(entry *cacheEntry) error
- func (zot *SourceZoteroDeprecated) Name() string
- type SubFilter
- type User
- type UserCache
- type ZoteroCollection
- type ZoteroCollectionData
- type ZoteroCollectionMeta
- type ZoteroData
- type ZoteroGroup
- type ZoteroGroupData
- type ZoteroGroupMeta
- type ZoteroLibrary
- type ZoteroStringList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
func CheckJWTValid ¶
func CheckRequestJWT ¶
func CreateLogger ¶
func Decompress ¶
func EscapeSolrString ¶
func FileExists ¶
func SingleJoiningSlash ¶
Types ¶
type CollectionsStatus ¶
type CollectionsStatus struct { Type string Notifications []Notification User *User Self string Token string BaseUrl string SelfPath string AmpBase string LoginUrl string Title string SearchResult template.JS Result map[string][]*Document QueryApi template.URL SearchResultStart int SearchResultRows int SearchResultTotal int SearchResultVisible bool Menu []Menu MetaDescription string }
type DetailStatus ¶
type DetailStatus struct { Type string Notifications []Notification Doc *Document User *User Token string MetaPublic bool ContentPublic bool MetaOK bool ContentOK bool IsAmp bool Self string BaseUrl string SelfPath string AmpBase string LoginUrl string Title string Menu []Menu MetaDescription string }
type FacetCountField ¶
type FacetCountResult ¶
type FacetManager ¶
type FacetManager struct { DefaultFacets SolrFacetList Facets SolrFacetList // contains filtered or unexported fields }
func NewFacetManager ¶
func NewFacetManager(defaults SolrFacetList) *FacetManager
type ImageSearchStatus ¶
type ImageSearchStatus struct { Type string Notifications []Notification User *User Self string Token string BaseUrl string SelfPath string AmpBase string LoginUrl string Title string SearchResult template.JS Result *SearchResult QueryApi template.URL SearchResultStart int SearchResultRows int SearchResultTotal int SearchString string Menu []Menu MetaDescription string }
type ItemDataBase ¶
type ItemDataBase struct { Key string `json:"key,omitempty"` Version int64 `json:"version"` ItemType string `json:"itemType"` Tags []ItemTag `json:"tags"` Relations RelationList `json:"relations"` ParentItem Parent `json:"parentItem,omitempty"` Collections []string `json:"collections"` DateAdded string `json:"dateAdded,omitempty"` DateModified string `json:"dateModified,omitempty"` Creators []ItemDataPerson `json:"creators"` Media ItemMedia `json:"media,omitempty"` }
type ItemDataPerson ¶
type ItemGeneric ¶
type ItemGeneric struct { ItemDataBase NumPages string `json:"numPages,omitempty"` // # of Pages NumberOfVolumes string `json:"numberOfVolumes,omitempty"` // # of Volumes AbstractNote string `json:"abstractNote,omitempty"` // Abstract AccessDate string `json:"accessDate,omitempty"` // Accessed ApplicationNumber string `json:"applicationNumber,omitempty"` // Application Number Archive string `json:"archive,omitempty"` // Archive ArtworkSize string `json:"artworkSize,omitempty"` // Artwork Size Assignee string `json:"assignee,omitempty"` // Assignee BillNumber string `json:"billNumber,omitempty"` // Bill Number BlogTitle string `json:"blogTitle,omitempty"` // Blog Title BookTitle string `json:"bookTitle,omitempty"` // Book Title CallNumber string `json:"callNumber,omitempty"` // Call Number CaseName string `json:"caseName,omitempty"` // Case Name Code string `json:"code,omitempty"` // Code CodeNumber string `json:"codeNumber,omitempty"` // Code Number CodePages string `json:"codePages,omitempty"` // Code Pages CodeVolume string `json:"codeVolume,omitempty"` // Code Volume Committee string `json:"committee,omitempty"` // Committee Company string `json:"company,omitempty"` // Company ConferenceName string `json:"conferenceName,omitempty"` // Conference Name Country string `json:"country,omitempty"` // Country Court string `json:"court,omitempty"` // Court DOI string `json:"DOI,omitempty"` // DOI Date string `json:"date,omitempty"` // Date DateDecided string `json:"dateDecided,omitempty"` // Date Decided DateEnacted string `json:"dateEnacted,omitempty"` // Date Enacted DictionaryTitle string `json:"dictionaryTitle,omitempty"` // Dictionary Title Distributor string `json:"distributor,omitempty"` // Distributor DocketNumber string `json:"docketNumber,omitempty"` // Docket Number DocumentNumber string `json:"documentNumber,omitempty"` // Document Number Edition string `json:"edition,omitempty"` // Edition EncyclopediaTitle string `json:"encyclopediaTitle,omitempty"` // Encyclopedia Title EpisodeNumber string `json:"episodeNumber,omitempty"` // Episode Number Extra string `json:"extra,omitempty"` // Extra AudioFileType string `json:"audioFileType,omitempty"` // File Type FilingDate string `json:"filingDate,omitempty"` // Filing Date FirstPage string `json:"firstPage,omitempty"` // First Page AudioRecordingFormat string `json:"audioRecordingFormat,omitempty"` // Format VideoRecordingFormat string `json:"videoRecordingFormat,omitempty"` // Format ForumTitle string `json:"forumTitle,omitempty"` // Forum/Listserv Title Genre string `json:"genre,omitempty"` // Genre History string `json:"history,omitempty"` // History ISBN string `json:"ISBN,omitempty"` // ISBN ISSN string `json:"ISSN,omitempty"` // ISSN Institution string `json:"institution,omitempty"` // Institution Issue string `json:"issue,omitempty"` // Issue IssueDate string `json:"issueDate,omitempty"` // Issue Date IssuingAuthority string `json:"issuingAuthority,omitempty"` // Issuing Authority JournalAbbreviation string `json:"journalAbbreviation,omitempty"` // Journal Abbr Label string `json:"label,omitempty"` // Label Language string `json:"language,omitempty"` // Language ProgrammingLanguage string `json:"programmingLanguage,omitempty"` // Language LegalStatus string `json:"legalStatus,omitempty"` // Legal Status LegislativeBody string `json:"legislativeBody,omitempty"` // Legislative Body LibraryCatalog string `json:"libraryCatalog,omitempty"` // ZoteroLibrary Catalog ArchiveLocation string `json:"archiveLocation,omitempty"` // Loc. in Archive InterviewMedium string `json:"interviewMedium,omitempty"` // Medium ArtworkMedium string `json:"artworkMedium,omitempty"` // Medium MeetingName string `json:"meetingName,omitempty"` // Meeting Name NameOfAct string `json:"nameOfAct,omitempty"` // Name of Act Network string `json:"network,omitempty"` // Network Pages float64 `json:"pages,omitempty"` // Pages PatentNumber string `json:"patentNumber,omitempty"` // Patent Number Place string `json:"place,omitempty"` // Place PostType string `json:"postType,omitempty"` // Post Type PriorityNumbers string `json:"priorityNumbers,omitempty"` // Priority Numbers ProceedingsTitle string `json:"proceedingsTitle,omitempty"` // Proceedings Title ProgramTitle string `json:"programTitle,omitempty"` // Program Title PublicLawNumber string `json:"publicLawNumber,omitempty"` // Public Law Number PublicationTitle string `json:"publicationTitle,omitempty"` // Publication Publisher string `json:"publisher,omitempty"` // Publisher References string `json:"references,omitempty"` // References ReportNumber string `json:"reportNumber,omitempty"` // Report Number ReportType string `json:"reportType,omitempty"` // Report Type Reporter string `json:"reporter,omitempty"` // Reporter ReporterVolume string `json:"reporterVolume,omitempty"` // Reporter Volume Rights string `json:"rights,omitempty"` // Rights RunningTime string `json:"runningTime,omitempty"` // Running Time Scale string `json:"scale,omitempty"` // Scale Section string `json:"section,omitempty"` // Section Series string `json:"series,omitempty"` // Series SeriesNumber string `json:"seriesNumber,omitempty"` // Series Number SeriesText string `json:"seriesText,omitempty"` // Series Text SeriesTitle string `json:"seriesTitle,omitempty"` // Series Title Session string `json:"session,omitempty"` // Session ShortTitle string `json:"shortTitle,omitempty"` // Short Title Studio string `json:"studio,omitempty"` // Studio Subject string `json:"subject,omitempty"` // Subject System string `json:"system,omitempty"` // System Title string `json:"title,omitempty"` // Title ThesisType string `json:"thesisType,omitempty"` // Type PresentationType string `json:"presentationType,omitempty"` // Type MapType string `json:"mapType,omitempty"` // Type ManuscriptType string `json:"manuscriptType,omitempty"` // Type LetterType string `json:"letterType,omitempty"` // Type Url string `json:"url,omitempty"` // URL University string `json:"university,omitempty"` // University VersionNumber string `json:"versionNumber,omitempty"` // Version Volume string `json:"volume,omitempty"` // Volume WebsiteTitle string `json:"websiteTitle,omitempty"` // Website Title WebsiteType string `json:"websiteType,omitempty"` // Website Type // Attachment LinkMode string `json:"linkMode,omitempty"` Note string `json:"note,omitempty"` ContentType string `json:"contentType,omitempty"` Charset string `json:"charset,omitempty"` Filename string `json:"filename,omitempty"` MD5 string `json:"md5,omitempty"` MTime int64 `json:"mtime,omitempty"` }
type ItemMedia ¶
type ItemMedia struct {
Metadata ItemMediaMeta `json:"metadata,omitempty"`
}
type ItemMediaMeta ¶
type ItemMediaMeta struct { Mimetype string `json:"mimetype"` Type string `json:"type"` Ext string `json:"ext,omitempty"` Sha256 string `json:"sha256,omitempty"` Duration float64 `json:"duration,omitempty"` Width float64 `json:"width,omitempty"` Height float64 `json:"height,omitempty"` Video interface{} `json:"video,omitempty"` Audio interface{} `json:audio,omitempty` Image interface{} `json:image,omitempty` }
func (*ItemMediaMeta) UnmarshalJSON ¶
func (imm *ItemMediaMeta) UnmarshalJSON(data []byte) error
type JSONDomainMap ¶
type JSONDomainMap map[string]interface{}
func CreateJSONDomainMap ¶
func CreateJSONDomainMap() *JSONDomainMap
func (*JSONDomainMap) SetBlockParentQuery ¶
func (jdm *JSONDomainMap) SetBlockParentQuery(allParentsQuery string) *JSONDomainMap
*
- Indicates that the resulting domain will contain all parent documents of the children in the existing domain *
- @param allParentsQuery a query used to identify all parent documents in the collection
func (*JSONDomainMap) WithFilter ¶
func (jdm *JSONDomainMap) WithFilter(filter string) *JSONDomainMap
*
- Indicates that the domain should be narrowed by the specified filter *
- May be called multiple times. Each added filter is retained and used to narrow the domain.
func (*JSONDomainMap) WithQuery ¶
func (jdm *JSONDomainMap) WithQuery(query string) *JSONDomainMap
*
- Indicates that the domain should be the following query *
- May be called multiple times. Each specified query is retained and included in the domain.
func (*JSONDomainMap) WithTagsToExclude ¶
func (jdm *JSONDomainMap) WithTagsToExclude(excludeTagsValue string) *JSONDomainMap
*
- Provide a tag or tags that correspond to filters or queries to exclude from the domain *
- May be called multiple times. Each exclude-string is retained and used for removing queries/filters from the
- domain specification. *
- @param excludeTagsValue a comma-delimited String containing filter/query tags to exclude
type JSONFacetMap ¶
type JSONFacetMap map[string]interface{}
func CreateJSONFacetMap ¶
func CreateJSONFacetMap(t string) *JSONFacetMap
type JSONHeatmapFacetMap ¶
type JSONHeatmapFacetMap JSONFacetMap
func CreateJSONHeatmapFacetMap ¶
func CreateJSONHeatmapFacetMap(fieldname string) *JSONHeatmapFacetMap
func (*JSONHeatmapFacetMap) SetDistErr ¶
func (jfm *JSONHeatmapFacetMap) SetDistErr(distErr float64) *JSONHeatmapFacetMap
*
- Indicates the maximum acceptable cell error distance. *
- Used to compute the size of each cell in the heatmap grid rather than specifying {@link #setGridLevel(int)} *
- @param distErr a positive value representing the maximum acceptable cell error. *
- @see #setGridLevel(int)
- @see #setDistErrPct(double)
func (*JSONHeatmapFacetMap) SetDistErrPct ¶
func (jfm *JSONHeatmapFacetMap) SetDistErrPct(distErrPct float64) *JSONHeatmapFacetMap
*
- A fraction of the heatmap region that is used to compute the cell size. *
- Defaults to 0.15 if not specified. *
- @see #setGridLevel(int)
- @see #setDistErr(double)
func (*JSONHeatmapFacetMap) SetGridLevel ¶
func (jfm *JSONHeatmapFacetMap) SetGridLevel(individualCellSize int64) *JSONHeatmapFacetMap
*
- Indicates the size of each cell in the computed heatmap grid *
- If not set, defaults to being computed by {@code distErrPct} or {@code distErr} *
- @param individualCellSize the forced size of each cell in the heatmap grid *
- @see #setDistErr(double)
- @see #setDistErrPct(double)
func (*JSONHeatmapFacetMap) SetHeatmapFormat ¶
func (jfm *JSONHeatmapFacetMap) SetHeatmapFormat(format string) *JSONHeatmapFacetMap
*
- Sets the format that the computed heatmap should be returned in. *
- Defaults to 'ints2D' if not specified.
func (*JSONHeatmapFacetMap) SetRegionQuery ¶
func (jfm *JSONHeatmapFacetMap) SetRegionQuery(queryString string) *JSONHeatmapFacetMap
*
- Indicate the region to compute the heatmap facet on. *
- Defaults to the "world" ("[-180,-90 TO 180,90]")
type JSONQueryFacetMap ¶
type JSONQueryFacetMap JSONFacetMap
func CreateJSONQueryFacetMap ¶
func CreateJSONQueryFacetMap() *JSONQueryFacetMap
type JSONRangeFacetMap ¶
type JSONRangeFacetMap JSONFacetMap
func CreateJSONRangeFacetMap ¶
func CreateJSONRangeFacetMap(field string, start, end, gap interface{}) (*JSONRangeFacetMap, error)
func (*JSONRangeFacetMap) SetMinCount ¶
func (jfm *JSONRangeFacetMap) SetMinCount(minOccurrences int64) *JSONRangeFacetMap
*
- Indicates that buckets should be returned only if they have a count of at least {@code minOccurrences} *
- Defaults to '0' if not specified.
func (*JSONRangeFacetMap) SetOtherBuckets ¶
func (jfm *JSONRangeFacetMap) SetOtherBuckets(bucketSpecifier string) *JSONRangeFacetMap
*
- Indicates that an additional range bucket(s) should be computed and added to those computed for {@code start} and {@code end} *
- See {@link OtherBuckets} for possible options.
type JSONTermsFacetMap ¶
type JSONTermsFacetMap JSONFacetMap // https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/request/json/TermsFacetMap.java
func CreateJSONTermsFacetMap ¶
func CreateJSONTermsFacetMap(field string) *JSONTermsFacetMap
func (*JSONTermsFacetMap) IncludeAllBucketsUnionBucket ¶
func (jfm *JSONTermsFacetMap) IncludeAllBucketsUnionBucket(shouldInclude bool) *JSONTermsFacetMap
*
- Creates a bucket representing the union of all other buckets. *
- For multi-valued fields this is different than a bucket for the entire domain, since documents can belong to
- multiple buckets. Defaults to false if not specified. *
- @param shouldInclude true if the union bucket "allBuckets" should be computed; false otherwise
func (*JSONTermsFacetMap) IncludeMissingBucket ¶
func (jfm *JSONTermsFacetMap) IncludeMissingBucket(missingBucket bool) *JSONTermsFacetMap
*
- Indicates that Solr should create a bucket corresponding to documents missing the field used by this facet. *
- Defaults to false if not specified. *
- @param missingBucket true if the special "missing" bucket should be created; false otherwise
func (*JSONTermsFacetMap) IncludeTotalNumBuckets ¶
func (jfm *JSONTermsFacetMap) IncludeTotalNumBuckets(numBuckets bool) *JSONTermsFacetMap
*
- Indicates that Solr should include the total number of buckets for this facet. *
- Note that this is different than the number of buckets returned. Defaults to false if not specified *
- @param numBuckets true if the "numBuckets" field should be computed; false otherwise
func (*JSONTermsFacetMap) JSONFacetMap ¶
func (jfm *JSONTermsFacetMap) JSONFacetMap() *JSONFacetMap
func (*JSONTermsFacetMap) SetMinCount ¶
func (jfm *JSONTermsFacetMap) SetMinCount(minCount int64) *JSONTermsFacetMap
*
- Indicates that the facet results should not include any buckets with a count less than {@code minCount}. *
- Defaults to 1 if not specified.
func (*JSONTermsFacetMap) SetOverRefine ¶
func (jfm *JSONTermsFacetMap) SetOverRefine(numExtraBuckets int64) *JSONTermsFacetMap
*
- Indicates how many extra buckets to request during distributed-facet-refining beyond those required by {@link #setLimit(int)} *
- Defaults to -1 if not specified, which triggers some heuristic guessing based on other settings.
func (*JSONTermsFacetMap) SetOverRequest ¶
func (jfm *JSONTermsFacetMap) SetOverRequest(numExtraBuckets int64) *JSONTermsFacetMap
*
- Indicates the number of additional buckets to request internally beyond those required by {@link #setLimit(int)}. *
- Defaults to -1 if not specified, which triggers some heuristic guessing based on other settings.
func (*JSONTermsFacetMap) SetPreliminarySort ¶
func (jfm *JSONTermsFacetMap) SetPreliminarySort(preliminarySort string) *JSONTermsFacetMap
*
- Indicates an approximate sort calculation to be performed during initial bucket generation and collection. *
- Values can be based on 'count' (the number of results in each bucket), 'index' (the natural order of bucket values),
- or on any stat facet that occurs in the bucket. Defaults to "count desc" if not specified. *
- When no {@code prelim_sort} is provided, {@code sort} is calculated on all buckets generated by all shards. If
- {@code sort} is expensive, {@code prelim_sort} can be used to provide a cheaper approximation calculation that is
- run instead on initial bucket collection. {@code sort} is still used when assembling the final list of buckets. *
- @see TermsFacetMap#setSort(String)
func (*JSONTermsFacetMap) SetTermPrefix ¶
func (jfm *JSONTermsFacetMap) SetTermPrefix(termPrefix string) *JSONTermsFacetMap
*
- Indicates that the facet should only produce buckets for terms that start with the specified prefix.
func (*JSONTermsFacetMap) UseDistributedFacetRefining ¶
func (jfm *JSONTermsFacetMap) UseDistributedFacetRefining(useRefining bool) *JSONTermsFacetMap
*
- Indicates whether this facet should use distributed facet refining. *
- "Distributed facet refining" is a second, optional stage in the facet process that ensures that counts for the
- returned buckets are exact. Enabling it is a tradeoff between precision and speed/performance. Defaults to false
- if not specified.
- @param useRefining true if distributed facet refining should be used; false otherwise
type Notification ¶
type Parent ¶
type Parent string
zotero treats empty strings as false in ParentCollection
func (*Parent) UnmarshalJSON ¶
type RelationList ¶
Relations are empty array or string map
func (*RelationList) UnmarshalJSON ¶
func (rl *RelationList) UnmarshalJSON(data []byte) error
type Resource ¶
type Resource struct { Src string `json:"src"` Name string `json:"name"` Param ResourceParam `json:"param"` }
type ResourceParam ¶
type SearchResult ¶
type SearchResultItem ¶
type SearchResultItem struct { Id string `json:"Id"` Type string `json:"type"` Title string `json:"title"` Text string `json:"text"` Collection string `json:"collection"` Authors []string `json:"authors"` AuthorText string `json:"authortext"` Link string `json:"link"` FirstItem bool `json:"firstitem"` Total int64 `json:"total,omitempty"` Date string `json:"date"` Icon string `json:"icon"` Media map[string]int `json:"media"` MetaPublic bool `json:"metapublic"` ContentPublic bool `json:"contentpublic"` MetaOK bool `json:"metaok"` ContentOK bool `json:"contentok"` Poster *Media `json:"poster"` }
type SearchStatus ¶
type SearchStatus struct { Type string Notifications []Notification User *User Self string Token string BaseUrl string SelfPath string AmpBase string LoginUrl string Title string SearchResult template.JS Result *SearchResult QueryApi template.URL SearchResultStart int SearchResultRows int SearchResultTotal int SearchString string SearchResultVisible bool //FacetCount map[string]FacetCountField Facet map[string]map[string]FacetCountField CoreFacets []string Menu []Menu MetaDescription string }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( mts *MTSolr, uc *UserCache, templates map[string][]string, templateDev bool, addr, addrExt, mediaserver, mediaserverkey string, mediatokenexp time.Duration, log *logging.Logger, accesslog io.Writer, staticPrefix, staticDir, staticCacheControl, jwtKey string, jwtAlg []string, linkTokenExp time.Duration, loginUrl, loginIssuer string, guestGroup string, adminGroup string, detailPrefix string, updatePrefix string, searchPrefix string, imageSearchPrefix string, collectionsPrefix string, apiPrefix string, AmpCache string, ampApiKeyFile string, searchFields map[string]string, facets SolrFacetList, locations NetGroups, menu []Menu, icons map[string]string, baseFilter string, subFilter []SubFilter, collectionsCatalog string, ) (*Server, error)
func (*Server) DoPanicJSON ¶
func (*Server) GetClaimUser ¶
func (*Server) InitTemplates ¶
func (*Server) ListenAndServe ¶
type SolrFacet ¶
type SolrFacetList ¶
type SolrResultJSONFacetBucket ¶
func NewSolrResultJSONFacetBucket ¶
func NewSolrResultJSONFacetBucket() (*SolrResultJSONFacetBucket, error)
func (*SolrResultJSONFacetBucket) Init ¶
func (fb *SolrResultJSONFacetBucket) Init(data interface{}) error
type SolrResultJSONFacetElement ¶
type SolrResultJSONFacetElement struct { //Name string `json:"name"` Buckets []*SolrResultJSONFacetBucket `json:"buckets"` }
func NewSolrResultJSONFacetElement ¶
func NewSolrResultJSONFacetElement() (*SolrResultJSONFacetElement, error)
func (*SolrResultJSONFacetElement) Init ¶
func (fe *SolrResultJSONFacetElement) Init(data interface{}) error
type SolrResultJSONFacets ¶
type SolrResultJSONFacets struct { Count int64 `json:"count"` Elements map[string]*SolrResultJSONFacetElement `json:"elements"` }
func NewSolrResultJSONFacets ¶
func NewSolrResultJSONFacets() (*SolrResultJSONFacets, error)
func (*SolrResultJSONFacets) Init ¶
func (fa *SolrResultJSONFacets) Init(data interface{}) error
type Source ¶
type Source interface { Name() string GetTitle() string GetPlace() string GetDate() string GetCollectionTitle() string GetPersons() []Person GetTags() []string GetMedia() map[string]MediaList GetPoster() *Media GetNotes() []Note GetAbstract() string GetReferences() []Reference GetMeta() map[string]string GetExtra() map[string]string GetContentType() string GetQueries() []Query GetSolrDoc() *solr.Document GetContentString() string GetContentMime() string }
type SourceCDK ¶
type SourceCDK struct { CDKData SourceCDKData `json:"CDKData"` // contains filtered or unexported fields }
func NewSourceCDK ¶
func (*SourceCDK) GetAbstract ¶
func (*SourceCDK) GetCollectionTitle ¶
func (*SourceCDK) GetContentMime ¶
func (*SourceCDK) GetContentString ¶
func (*SourceCDK) GetContentType ¶
func (*SourceCDK) GetPersons ¶
func (*SourceCDK) GetQueries ¶
func (*SourceCDK) GetReferences ¶
func (*SourceCDK) GetSolrDoc ¶
type SourceCDKData ¶
type SourceCDKData struct { }
type SourceData ¶
type SourceData struct { Source string `json:"Source"` Title string `json:"title"` Place string `json:"place"` Date string `json:"date"` CollectionTitle string `json:"collectiontitle"` Persons []Person `json:"persons"` Tags []string `json:"tags"` Media map[string]MediaList `json:"media"` Poster *Media `json:poster` Notes []Note `json:"notes"` Abstract string `json:"abstract"` HasMedia bool `json:"hasmedia"` References []Reference `json:"references"` Extra map[string]string `json:"extra"` Meta map[string]string `json:"meta"` Type string `json:"type"` Queries []Query `json:"queries"` ContentStr string ContentMime string }
type SourceDiplomHGK ¶
type SourceDiplomHGK struct { DData SourceDiplomHGKData `json:"DData"` // contains filtered or unexported fields }
func NewSourceDiplomHGK ¶
func NewSourceDiplomHGK(entry *cacheEntry, mts *MTSolr) (*SourceDiplomHGK, error)
func (*SourceDiplomHGK) GetAbstract ¶
func (dhgk *SourceDiplomHGK) GetAbstract() string
func (*SourceDiplomHGK) GetCollectionTitle ¶
func (dhgk *SourceDiplomHGK) GetCollectionTitle() string
func (*SourceDiplomHGK) GetContentMime ¶
func (dhgk *SourceDiplomHGK) GetContentMime() string
func (*SourceDiplomHGK) GetContentString ¶
func (dhgk *SourceDiplomHGK) GetContentString() string
func (*SourceDiplomHGK) GetContentType ¶
func (dhgk *SourceDiplomHGK) GetContentType() string
func (*SourceDiplomHGK) GetDate ¶
func (dhgk *SourceDiplomHGK) GetDate() string
func (*SourceDiplomHGK) GetExtra ¶
func (dhgk *SourceDiplomHGK) GetExtra() map[string]string
func (*SourceDiplomHGK) GetMedia ¶
func (dhgk *SourceDiplomHGK) GetMedia() map[string]MediaList
func (*SourceDiplomHGK) GetMeta ¶
func (dhgk *SourceDiplomHGK) GetMeta() map[string]string
func (*SourceDiplomHGK) GetNotes ¶
func (dhgk *SourceDiplomHGK) GetNotes() []Note
func (*SourceDiplomHGK) GetPersons ¶
func (dhgk *SourceDiplomHGK) GetPersons() []Person
func (*SourceDiplomHGK) GetPlace ¶
func (dhgk *SourceDiplomHGK) GetPlace() string
func (*SourceDiplomHGK) GetPoster ¶
func (dhgk *SourceDiplomHGK) GetPoster() *Media
func (*SourceDiplomHGK) GetQueries ¶
func (dhgk *SourceDiplomHGK) GetQueries() []Query
func (*SourceDiplomHGK) GetReferences ¶
func (dhgk *SourceDiplomHGK) GetReferences() []Reference
func (*SourceDiplomHGK) GetSolrDoc ¶
func (dhgk *SourceDiplomHGK) GetSolrDoc() *solr.Document
func (*SourceDiplomHGK) GetTags ¶
func (dhgk *SourceDiplomHGK) GetTags() []string
func (*SourceDiplomHGK) GetTitle ¶
func (dhgk *SourceDiplomHGK) GetTitle() string
func (*SourceDiplomHGK) Init ¶
func (dhgk *SourceDiplomHGK) Init(entry *cacheEntry) error
func (*SourceDiplomHGK) Name ¶
func (dhgk *SourceDiplomHGK) Name() string
type SourceDiplomHGKData ¶
type SourceDiplomHGKData struct { Year string `json:"year"` Anlassnummer string `json:"anlassnummer"` Anlassbezeichnung string `json:"anlassbezeichnung"` IDPerson string `json:"idperson"` Anrede string `json:"anrede"` Vornamen string `json:"vornamen"` Nachname string `json:"nachname"` Email2 string `json"e-mail 2"` Done string `json:"done"` Meta map[string]string `json:"meta"` References []string `json:"references"` Videos []string `json:"videos"` Beschreibung string `json:"beschreibung"` Betreuer1 string `json:"betreuer1"` Betreuer2 string `json:"betreuer2"` Email string `json:"email"` Title string `json:"title"` Untertitel string `json:"untertitel"` Web1 string `json:"web1"` Web2 string `json:"web2"` Webmedia string `json:"webmedia"` Abschluss string `json:"abschluss"` Institut string `json:"institut"` Categories []string `json:"categories"` Tags []string `json:"tags"` Slug string `json:"slug"` Series []string `json:"series"` Resources []Resource `json:"resources"` Files []SourceDiplomHGKFile `json:"files"` Images []string `json:"images"` Pdfs []string `json:"pdfs"` Rights string `json:"rights"` }
type SourceDiplomHGKFile ¶
type SourceDiplomHGKFile struct { Year string `json:"year"` IDPerson string `json:"idperson"` FileID string `json:"fileid"` Name string `json:"name"` Filename string `json:"filename"` Thumbname string `json:"thumbname"` Webname string `json:"webname"` Mimetype string `json:"mimetype"` Size string `json:"size"` Tech string `json:"tech"` Uploadtime string `json:"uploadtime"` Metadata SourceDiplomHGKFileMeta `json:"metadata"` Url string `json:"url"` }
type SourceDiplomHGKFileMeta ¶
type SourceError ¶
type SourceError struct {
// contains filtered or unexported fields
}
func NewSourceError ¶
func NewSourceError(err error, mts *MTSolr) (*SourceError, error)
func (*SourceError) GetAbstract ¶
func (serr *SourceError) GetAbstract() string
func (*SourceError) GetCollectionTitle ¶
func (serr *SourceError) GetCollectionTitle() string
func (*SourceError) GetDate ¶
func (serr *SourceError) GetDate() string
func (*SourceError) GetMedia ¶
func (serr *SourceError) GetMedia() map[string]MediaList
func (*SourceError) GetMeta ¶
func (serr *SourceError) GetMeta() map[string]string
func (*SourceError) GetNames ¶
func (serr *SourceError) GetNames() []Person
func (*SourceError) GetNotes ¶
func (serr *SourceError) GetNotes() []Note
func (*SourceError) GetPlace ¶
func (serr *SourceError) GetPlace() string
func (*SourceError) GetQueries ¶
func (serr *SourceError) GetQueries() []Query
func (*SourceError) GetReferences ¶
func (serr *SourceError) GetReferences() []Reference
func (*SourceError) GetSolrDoc ¶
func (serr *SourceError) GetSolrDoc() *solr.Document
func (*SourceError) GetTags ¶
func (serr *SourceError) GetTags() []string
func (*SourceError) GetTitle ¶
func (serr *SourceError) GetTitle() string
func (*SourceError) GetType ¶
func (serr *SourceError) GetType() string
func (*SourceError) Name ¶
func (serr *SourceError) Name() string
type SourceZoteroDeprecated ¶
type SourceZoteroDeprecated struct { ZData ZoteroData `json:"ZData"` CollMeta map[string]string `json:"collmeta"` // contains filtered or unexported fields }
func NewSourceZoteroDeprecated ¶
func NewSourceZoteroDeprecated(entry *cacheEntry, mts *MTSolr) (*SourceZoteroDeprecated, error)
func (*SourceZoteroDeprecated) GetAbstract ¶
func (zot *SourceZoteroDeprecated) GetAbstract() string
func (*SourceZoteroDeprecated) GetChildren ¶
func (zot *SourceZoteroDeprecated) GetChildren(itemType, linkMode string) []ZoteroData
func (*SourceZoteroDeprecated) GetCollectionTitle ¶
func (zot *SourceZoteroDeprecated) GetCollectionTitle() string
func (*SourceZoteroDeprecated) GetContentMime ¶
func (zot *SourceZoteroDeprecated) GetContentMime() string
func (*SourceZoteroDeprecated) GetContentString ¶
func (zot *SourceZoteroDeprecated) GetContentString() string
func (*SourceZoteroDeprecated) GetContentType ¶
func (zot *SourceZoteroDeprecated) GetContentType() string
func (*SourceZoteroDeprecated) GetDate ¶
func (zot *SourceZoteroDeprecated) GetDate() string
func (*SourceZoteroDeprecated) GetExtra ¶
func (zot *SourceZoteroDeprecated) GetExtra() map[string]string
func (*SourceZoteroDeprecated) GetMedia ¶
func (zot *SourceZoteroDeprecated) GetMedia() map[string]MediaList
func (*SourceZoteroDeprecated) GetMeta ¶
func (zot *SourceZoteroDeprecated) GetMeta() map[string]string
func (*SourceZoteroDeprecated) GetNotes ¶
func (zot *SourceZoteroDeprecated) GetNotes() []Note
func (*SourceZoteroDeprecated) GetPersons ¶
func (zot *SourceZoteroDeprecated) GetPersons() []Person
func (*SourceZoteroDeprecated) GetPlace ¶
func (zot *SourceZoteroDeprecated) GetPlace() string
func (*SourceZoteroDeprecated) GetPoster ¶
func (zot *SourceZoteroDeprecated) GetPoster() *Media
func (*SourceZoteroDeprecated) GetQueries ¶
func (zot *SourceZoteroDeprecated) GetQueries() []Query
func (*SourceZoteroDeprecated) GetReferences ¶
func (zot *SourceZoteroDeprecated) GetReferences() []Reference
func (*SourceZoteroDeprecated) GetSolrDoc ¶
func (zot *SourceZoteroDeprecated) GetSolrDoc() *solr.Document
func (*SourceZoteroDeprecated) GetTags ¶
func (zot *SourceZoteroDeprecated) GetTags() []string
func (*SourceZoteroDeprecated) GetTitle ¶
func (zot *SourceZoteroDeprecated) GetTitle() string
func (*SourceZoteroDeprecated) Init ¶
func (zot *SourceZoteroDeprecated) Init(entry *cacheEntry) error
func (*SourceZoteroDeprecated) Name ¶
func (zot *SourceZoteroDeprecated) Name() string
type User ¶
type User struct { Server *Server `json:"-"` Id string `json:"Id"` Groups []string `json:"groups"` Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` HomeOrg string `json:"homeOrg"` Exp time.Time `json:"exp"` LoggedIn bool `json:"loggedIn"` LoggedOut bool `json:"loggedOut"` }
func NewGuestUser ¶
func (User) LinkSignature ¶
func (User) LinkSignatureCache ¶
type UserCache ¶
type UserCache struct {
// contains filtered or unexported fields
}
func NewUserCache ¶
type ZoteroCollection ¶
type ZoteroCollection struct { Key string `json:"key"` Version int64 `json:"version"` Library ZoteroLibrary `json:"library,omitempty"` Links interface{} `json:"links,omitempty"` Meta ZoteroCollectionMeta `json:"meta,omitempty"` Data ZoteroCollectionData `json:"data,omitempty"` Parent *ZoteroCollection `json:"parent,omitempty"` }
func (*ZoteroCollection) GetParents ¶
func (zc *ZoteroCollection) GetParents() []string
type ZoteroCollectionData ¶
type ZoteroCollectionData struct { Key string `json:"key"` Name string `json:"name"` Version int64 `json:"version"` Relations RelationList `json:"relations"` ParentCollection Parent `json:"parentCollection,omitempty"` }
type ZoteroCollectionMeta ¶
type ZoteroData ¶
type ZoteroData struct { Key string `json:"key"` Version int `json:"version"` Library ZoteroLibrary `json:"library"` Links interface{} `json:"links"` Meta interface{} `json:"meta"` Data ItemGeneric `json:"data"` Group ZoteroGroup `json:"group"` Children []ZoteroData `json:"children,omitempty"` Collections []ZoteroCollection `json:"collections,omitempty"` }
type ZoteroGroup ¶
type ZoteroGroup struct { Id int64 `json:"id"` Version int64 `json:"version"` Links interface{} `json:"links,omitempty"` Meta ZoteroGroupMeta `json:"meta"` Data ZoteroGroupData `json:"data"` }
type ZoteroGroupData ¶
type ZoteroGroupData struct { Id int64 `json:"id"` Version int64 `json:"version"` Name string `json:"name"` Owner int64 `json:"owner"` Type string `json:"type"` Description string `json:"description"` Url string `json:"url"` HasImage int64 `json:"hasImage"` LibraryEditing string `json:"libraryEditing"` LibraryReading string `json:"libraryReading"` FileEditing string `json:"fileEditing"` Admins []int64 `json:"admins"` }
type ZoteroGroupMeta ¶
type ZoteroLibrary ¶
type ZoteroStringList ¶
type ZoteroStringList []string
zotero returns single item lists as string
func (*ZoteroStringList) UnmarshalJSON ¶
func (irl *ZoteroStringList) UnmarshalJSON(data []byte) error
Source Files ¶
- Source.go
- SourceCDK.go
- SourceDiplomHGK.go
- SourceError.go
- SourceZoteroDeprecated.go
- document.go
- facetManager.go
- helper.go
- server.go
- serverCollectionsHandler.go
- serverDetailHandler.go
- serverImageSearchHAndler.go
- serverSearchHandler.go
- serverUpdateHandler.go
- serverUserHandler.go
- solr.go
- solrFacet.go
- solrJSONDomainMap.go
- solrJSONFacetMap.go
- solrJSONHeatmapFacetMap.go
- solrJSONQueryFacetMap.go
- solrJSONRangeFacetMap.go
- solrJSONTermsFacetMap.go
- solrResultJSONFacets.go
- sourceZotero.go
- userCache.go
- zoteroItemData.go