任延华

Results 222 comments of 任延华

https://github.com/DigitalPlatform/dp2/issues/260

2018/12/02 这个功能挺好,正在我想要的,仅对重复的册条码或登录号增加后缀,这样最后在系统里也方便过滤出问题记录;而不是全部加了后缀,区别不出来原来不重复和重复的。 适用的场合不同。比如某馆的案例,另外两个分馆的号码空间明显侵入了原馆的号码空间,这时候就要给它们全部都加上后缀。如果改用新功能,则就会变成丛林法则,后面原馆自己的新书号码就会遇到被占的情况。 所以新功能是给那些偶尔重复的情况。而不适用于明显号码空间被入侵的情况。 那某馆还是以为导入数据的册条码全部增加后缀的方案。

## 登录 http://dp2003.com/dp2library/demo/rest/login POST Content-Type:application/json request ``` { "strUserName":"test", "strPassword":"2024", "strParameters":"type=worker,client=testclient|0.1" } ``` response ``` { "LoginResult": { "ErrorCode": 0, "ErrorInfo": null, "Value": 1 }, "strOutputUserName": "test", "strRights": "borrow,getbiblioinfo,getiteminfo,getreaderinfo,renew,return,searchbiblio,searchitem,searchreader,getsystemparameter,librarian,checkclientversion", "strLibraryCode":...

## 检索读者 接口文档:https://github.com/DigitalPlatform/dp2/wiki/dp2API%E4%B9%8BSearchReader http://dp2003.com/dp2library/demo/rest/SearchReader POST Content-Type:application/json sessionid=c02c4b00-0e11-4396-813f-e413d10a37b8; Path=/; Domain=123.57.163.11; request ``` { "strReaderDbNames":"", "strQueryWord":"", "strFrom":"__id", "strMatchStyle":"left", "nPerMax":"-1", "strResultSetName":"readers" } ``` 样例2 ``` { "strReaderDbNames":"", "strQueryWord":"任", "strFrom":"姓名", "strMatchStyle":"left", "nPerMax":"-1", "strResultSetName":"myResult" }...

## 检索书目 http://dp2003.com/dp2library/demo/rest/SearchBiblio POST Content-Type:application/json request ``` { "strBiblioDbNames":"", "strFromStyle":"recid", "strMatchStyle":"left", "nPerMax":"-1", "strResultSetName":"biblios" } ``` response ``` { "SearchBiblioResult": { "ErrorCode": 0, "ErrorInfo": "", "Value": 1748 }, "strQueryXml": "left=string-1" }...

## 获取书目下的册记录 http://dp2003.com/dp2library/demo/rest/GetEntities POST Content-Type:application/json request ``` { "strBiblioRecPath":"中文图书/1", "lStart":"0", "lCount":"-1", "strStyle":"opac" } ``` response ``` { "GetEntitiesResult": { "ErrorCode": 0, "ErrorInfo": "", "Value": 11 }, "entityinfos": [ { "Action":...

# 借阅历史 http://dp2003.com/dp2library/demo/rest/SearchCharging POST Content-Type:application/json request ``` { "patronBarcode":"XZP10001", "timeRange":"2022/01/01~", "actions":"return,lost", "order":"", "start":"0", "count":"-1" } ``` 参数说明: patronBarcode:读者证条码号 timeRange:时间范围,格式为:`2022/10/11 00:00~2022/11/09 23:59`,有几种写法:`~`表示全部借阅历史,`2022/01/01~`表示从2022/01/01至今的借阅历史。 actions:以逗号分隔,borrow表示借,return表示还,lost表示丢失的。 order:排序方式。默认 ascending start:要跳过这么多个记录 count:希望返回的记录数 response ``` { "SearchChargingResult":...

### 获取一条预约信息 http://dp2003.com/dp2library/demo/rest/GetRecord ``` {"strPath":"预约到书/20"} ``` *** ``` { "GetRecordResult": { "ErrorCode": 0, "ErrorInfo": "", "Value": 0 }, "timestamp": [ 70, 39, 83, 26, 14, 204, 216, 8, 0, 0,...

# 预约接口 ``` LibraryServerResult Reservation( string strFunction, string strReaderBarcode, string strItemBarcodeList); ``` 用途:预约借书。 参数表: 类型 参数名 说明 string strFunction 动作参数 string strReaderBarcode 证条码号 string strItemBarcodeList 册条码号列表。多个册条码号之间用逗号间隔 返回值: 成员 返回值 说明...

# 获取读者信息 ## 接口说明 https://github.com/DigitalPlatform/dp2/wiki/GetReaderInfo%28%29%E2%80%90%E8%8E%B7%E5%8F%96%E8%AF%BB%E8%80%85%E4%BF%A1%E6%81%AF ## 示例 http://dp2003.com/dp2library/demo/rest/GetReaderInfo POST Content-Type:application/json request ``` { "strBarcode":"证条码号", "strResultTypeList":"advancexml,advancexml_borrow_bibliosummary" } ``` 注: strBarcode:测试读者可用P999999 strBarcode也传读者记录路径,格式样例为:@path:读者/72", strResultTypeList中的advancexml_borrow_bibliosummary参数表示可以带上书目摘要 response ``` { "GetReaderInfoResult": { "ErrorCode": 0, "ErrorInfo": "",...