Documentation
¶
Index ¶
- Variables
- func NewSessionSearchUrl(iurl string) (string, error)
- func RM(r []byte) int
- func Setup()
- type Api
- type BibliographicRecord
- type Book
- type CachedCmd
- type Cacher
- type CircRecord
- type CirculationData
- type Cmd
- type Field
- type HoldingsAndCirc
- type HoldingsData
- type Indicator
- type Leader
- type NodbCache
- type Opt
- type Option
- type Opts
- type Parser
- type Place
- type Places
- type Queue
- type QueueOpts
- type Record
- type Records
- type Result
- type Session
- type Subfield
- type Tag
- type Tags
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BASE_URL = "http://92.241.99.100/Scripts/zgate.exe" INDEX_QUERY = "Init+test.xml,simple.xsl+rus" PRESENT_FORMAT = "present+%s+default+%d+%d+X+1.2.840.10003.5.102+rus" HOST = "192.168.0.1" PORT = "210" LANG = "rus" ACTION = "SEARCH" ESNAME = "B" MATERIAL_TYPE = "" DBNAMES = []string{"BOOK", "REF", "STAT", "ЭЛЕКТР_РЕСУРСЫ", "ФРК"} USE_1 = "1035" TERM_1 = "%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0" BOOLEAN_OP1 = "AND" USE_2 = "4" TERM_2 = "" BOOLEAN_OP2 = "AND" USE_3 = "21" TERM_3 = "" SHOW_HOLDINGS = "on" MAXRECORDS = "60" SEARCH = "SEARCH" BY_AUTHOR = "1003" BY_TITLE = "4" )
Functions ¶
func NewSessionSearchUrl ¶
Types ¶
type Api ¶
type Api struct {
Ssid string
SsidFile string
SsidAssign time.Time
InitialUrl string
PresentUrl string
GetAllRecords bool
MAXRECORDS int
// contains filtered or unexported fields
}
func (*Api) ProxySearch ¶
type BibliographicRecord ¶
type BibliographicRecord struct {
Record Record `xml:"record"`
}
type Book ¶
type Book struct {
Id int64 `json:"id"`
SourceId string `json:"source_id"`
Title string `json:"title"`
Author string `json:"author"`
Series string `json:"series"`
Tags []string `db:"-" json:"tags"`
Genre string `json:"genre"`
Places []Place `db:"-" json:"places"`
PageNum int `json:"pagenum"`
City string `json:"city"`
Publishing string `json:"publishing"`
PublicationYear int `json:"publication_year"`
Edition string `json:"edition"`
Fields map[string]map[string]string `json:"fields"`
LastMod string `json:"lastmod"`
}
type CircRecord ¶
type CircRecord struct {
AvailableNow int `xml:"availableNow"`
}
type CirculationData ¶
type CirculationData struct {
CircRecord CircRecord `xml:"circRecord"`
}
type Cmd ¶
type HoldingsAndCirc ¶
type HoldingsData ¶
type HoldingsData struct {
HoldingsAndCirc []HoldingsAndCirc `xml:"holdingsAndCirc"`
}
type NodbCache ¶
type NodbCache struct {
// contains filtered or unexported fields
}
func NewNodbCache ¶
func (NodbCache) SetLifeTime ¶
type Queue ¶
type Queue struct {
*QueueOpts
// contains filtered or unexported fields
}
type Records ¶
func GetBooksData ¶
type Result ¶
type Result struct {
XMLName xml.Name `xml:"record"`
BibliographicRecord BibliographicRecord `xml:"bibliographicRecord"`
HoldingsData HoldingsData `xml:"holdingsData"`
}
Click to show internal directories.
Click to hide internal directories.