-
Notifications
You must be signed in to change notification settings - Fork 18
超期通知
任延华 edited this page Jan 20, 2020
·
1 revision
主体格式如下:
<?xml version="1.0" encoding="utf-8"?>
<root>
<type>patronNotify</type>
<recipient>R0000001@LUID:62637a12-1965-4876-af3a-fc1d3009af8a</recipient>
<mime>xml</mime>
<body>...</body>
</root>
和预约到书通知的主体格式相同。
body元素里面是超期通知记录(注意这是一个字符串,需要另行装入一个XmlDocument解析),其格式如下:
<?xml version="1.0" encoding="utf-8"?>
<root>
<type>超期通知</type>
<items overdueCount="1" normalCount="0">
<item barcode=”0000001” refID=”xxxxxxxxxxx” summary="船舶柴油机 / 聂云超主编. -- ISBN 7-..." timeReturning="2016/5/18" overdue="已超期 31 天" overdueType="overdue" />
</items>
<text>您借阅的下列书刊:
船舶柴油机 / 聂云超主编. -- ISBN 7-... 应还日期: 2016/5/18 已超期 31 天
</text>
<patronRecord>
<barcode>R0000001</barcode>
<readerType>本科生</readerType>
<name>张三</name>
<refID>be13ecc5-6a9c-4400-9453-a072c50cede1</refID>
<add1>test1</add1>
<add2>test2 ---</add2>
<reservations>
</reservations>
<department>/</department>
<address>address</address>
<cardNumber>C12345</cardNumber>
<refid>8aa41a9a-fb42-48c0-b9b9-9d6656dbeb76</refid>
<email>email:xietao@dp2003.com,weixinid:testwx2,testid:123456</email>
<idCardNumber>1234567890123</idCardNumber>
<tel>13641016400</tel>
</patronRecord>
</root>
其中,items元素下级的若干item元素,列出了超期的册的信息。
item元素的summary属性是书目摘要;timeReturning是应还日期;overdue属性是超期情况也就是描述超期多少天;overdueType是超期类型,overdue表示超期,warning表示即将超期。
items元素的overdueCount属性是超期的册数;normalCount是即将超期的册数。
text元素里面是通知的纯文本形态,注意它是将若干册的超期情况集合在一起描述的。
patronRecord元素相当于一条读者记录,是比较完整的读者信息,是从读者记录中复制重要字段形成的。
为了获得读者的详细信息,可以从patronRecord元素下的各个元素去获得。