欢迎您来到 数字平台。 您尚未登录。[登录] [注册新用户]
当前位置: 论坛首页 / 栏目 产品与服务 / 文章 129

点击:32458[回复顶层] [树状] [简明]


头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 1 楼
文章id: 129
dp2libraryws -- 图书馆应用服务器 -- 安装包

作者: xietao




发表时间: 2006-10-30 16:09:21
最后修改时间: 2006-12-13 15:00:38





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 2 楼
文章id: 156
circulation.xml的配置

作者: xietao


跟踪dt1000/dt1500功能的配置办法:


<traceDTLP>
 <origin serverAddr="test" UserName="root" Password="" >
  <databaseMap>
   <item targetDatabase="跟踪流通库" originDatabase="流通库" marcSyntax="unimarc"/>
   <item targetDatabase="跟踪中文图书" originDatabase="图书总库" marcSyntax="unimarc" />
   <item targetDatabase="跟踪英文图书" originDatabase="English Books" marcSyntax="usmarc" />
  </databaseMap>
 </origin>
</traceDTLP>

校验条码脚本的配置办法:

        <script><![CDATA[
using System;

using DigitalPlatform.LibraryServer;

public class MyLibraryHost : LibraryHost
{
 // return: 0 not valid barcode; 1: is valid reader barcode; 2: is valid item barcode
 public int VerifyBarcode(string strBarcode,
  out string strError)
 {
  strError = "";

  if (String.IsNullOrEmpty(strBarcode) == true)
   return 0;
  if (strBarcode.Length != 8)
   return 0;

  if (strBarcode[0] == 'R')
   return 1;

  if (strBarcode[0] == 'B')
   return 2;

  return 0;
 }

}

]]></script>

工作日历的配置方法:

    <rightstable>
        <!-- 所有类型的缺省参数 -->
        <param name="工作日历名" value="基本日历" />

...

 

 ~~~~

http://localhost/dp2libraryws/search.aspx?dbname=中文书刊&from=题名&matchstyle=prev&word=中国

http://localhost/dp2libraryws/search.aspx?dbname=%e4%b8%ad%e6%96%87%e4%b9%a6%e5%88%8a&from=%e9%a2%98%e5%90%8d&matchstyle=left&word=%e4%b8%ad%e5%9b%bd

 

 

 



发表时间: 2006-11-27 16:41:59
最后修改时间: 2006-12-14 17:40:44





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 3 楼
文章id: 160
乐山师院circulation.xml配置

作者: xietao


条码校验

=======

    // return: 0 not valid barcode; 1: is valid reader barcode; 2: is valid item barcode

    public int VerifyBarcode(string strBarcode,

        out string strError)

    {

        strError = "";

        if (String.IsNullOrEmpty(strBarcode) == true)

        {

            strError = "条码为空";

            return 0;

        }

        // 读者

        if (strBarcode.Length == 7)

        {

            char c = strBarcode[0];

            if (c != 'P' && c != 'S' && c != 'R' && c != 'T')

            {

                strError = "读者条码第一字符应当为PSRT之一";

                return 0;

            }

            string strNumber = strBarcode.Substring(1);

            if (IsPureNumber(strNumber) == false)

            {

                strError = "读者条码第一字符以外的其他字符应当为纯数字";

                return 0;

            }

            return 1;

        }

        // 册

        if (strBarcode.Length == 8)

        {

            char c = strBarcode[0];

            if (c != 'L')

            {

                strError = "册条码第一字符应当为L";

                return 0;

            }

            string strNumber = strBarcode.Substring(1);

            if (IsPureNumber(strNumber) == false)

            {

                strError = "册条码第一字符以外的其他字符应当为纯数字";

                return 0;

            }

            return 2;

        }

        strError = "条码长度既不是7位,也不是8位";

        return 0;

    }

        // 检测字符串是否为纯数字(不包含'-','.'号)

        public static bool IsPureNumber(string s)

        {

            if (s == null)

                return false;

            for(int i=0;i<s.Length;i++) 

            {

                if ( s[i] > '9' || s[i] < '0' )

                    return false;

            }

            return true;

        }



发表时间: 2006-12-21 16:28:28
最后修改时间: 2006-12-21 17:09:29





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 4 楼
文章id: 161
几个文件

作者: xietao


 

 

 



发表时间: 2007-01-03 12:56:02





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 5 楼
文章id: 162
readerxml2html.cs

作者: xietao




资源:

-- ID: 0 文件名: readerxml2html.cs 尺寸: 11467 最后修改时间: --
readerxml2html.cs [下载] 警告:某些文件下载后,如打开(或执行),可能危害您的计算机安全,请谨慎行事。


发表时间: 2007-01-03 12:56:35
最后修改时间: 2007-01-15 16:11:32





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 6 楼
文章id: 163
readerhtml.css

作者: xietao


BODY {
 FONT-FAMILY: Verdana
}

TD.regular {
 FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TD.regular A:visited
{
 font-weight: bold;
}


TABLE.readerinfo
{
 font-size: 9pt;
 border-left-color: lightgrey;
 border-bottom-color: lightgrey;
 border-top-color: lightgrey;
 border-right-color: lightgrey;
 background-color: lightgrey;
}

TABLE.readerinfo TR.info
{
 font-size: 9pt;
}

TABLE.readerinfo TR.columntitle
{
 font-size: 11pt;
 font-weight: bolder;
 background-color: white;
}

TABLE.readerinfo TR.content
{
 font-size: 7pt;
 background-color: white;
}


TABLE.readerinfo TR.content TD.name
{
 font-size: 7pt;
 background-color: whitesmoke;
}

TABLE.readerinfo TR.content TD.barcode_value
{
 font-weight: bolder;
 font-size: 12pt;
}

TABLE.readerinfo TR.content TD.name_value
{
 font-weight: bolder;
 font-size: 12pt;
}

TABLE.readerinfo TR.cmdline
{
 font-size: 9pt;
}

/* borrowinfo */


TABLE.borrowinfo
{
 font-size: 9pt;
 border-left-color: lightgrey;
 border-bottom-color: lightgrey;
 border-top-color: lightgrey;
 border-right-color: lightgrey;
 background-color: lightgrey;
}

TABLE.borrowinfo TR.borrow_count
{
 background-color: whitesmoke;
}

TABLE.borrowinfo TR.columntitle
{
 font-size: 8pt;
 font-weight: bolder;
 background-color: white;
}

TABLE.borrowinfo TR.content
{
 font-size: 9pt;
 background-color: white;
}

TABLE.borrowinfo TR.content_active
{
 font-size: 10pt;
 background-color: cornsilk;
}


TABLE.borrowinfo TR.content TD.state
{
 font-weight: bolder;
 background-color: whitesmoke;
}

TABLE.borrowinfo TR.content TD.price
{
 background-color: whitesmoke;
}

TABLE.borrowinfo TR.content TD.borrower
{
 background-color: whitesmoke;
}

TABLE.borrowinfo TR.content TD.borrowdate
{
 font-size: 7pt;
}

/* reservation */

TABLE.reservation
{
 font-size: 9pt;
 border-left-color: lightgrey;
 border-bottom-color: lightgrey;
 border-top-color: lightgrey;
 border-right-color: lightgrey;
 background-color: lightgrey;
}

TABLE.reservation TR.info
{
 font-size: 9pt;
}

TABLE.reservation TR.columntitle
{
 font-size: 8pt;
 font-weight: bolder;
 background-color: white;
}

TABLE.reservation TR.content
{
 font-size: 9pt;
 background-color: white;
}

TABLE.reservation TR.content_active
{
 font-size: 10pt;
 background-color: yellow;
}

/* overdue */
TABLE.overdue
{
 font-size: 9pt;
 border-left-color: lightgrey;
 border-bottom-color: lightgrey;
 border-top-color: lightgrey;
 border-right-color: lightgrey;
 background-color: lightgrey;
}


TABLE.overdue TR.columntitle
{
 font-size: 8pt;
 font-weight: bolder;
 background-color: white;
}

TABLE.overdue TR.content
{
 font-size: 9pt;
 background-color: yellow;
}



发表时间: 2007-01-03 12:57:17





头衔: 总工
文章数: 539
积分: 5390
注册时间: 2005/9/5
[回复留言] [回复(需要先登录)] [引用(需要先登录)]普通文章第 7 楼
文章id: 164
history.css

作者: xietao


body

{

    font-family: Tahoma, Arial, Helvetica, sans-serif;

    /*font-size: 11px;

    line-height: 15px;

    color: #333333;

    background-color: #e0e0e0;

*/

    margin-top: 0px;

    margin-bottom: 0px;

    margin-left: 0px;

    margin-right: 0px;

    padding-top: 0px;

    padding-bottom: 0px;

    padding-left: 0px;

    padding-right: 0px;

}

DIV.oper_1

{

    background-color: #fefeff;

}

DIV.oper_2

{

    background-color: #ddddff;

}

DIV.time_line

{

}

SPAN.time

{

    font-size: 7pt;

    font-weight: lighter;

}

DIV.reader_line

{

}

SPAN.reader_prefix_text

{

    font-size: 9pt;

    font-weight: normal;

}

SPAN.reader_barcode

{

    font-size: 10pt;

    font-weight: normal;

}

SPAN.reader_summary

{

    font-size: 10pt;

    font-weight: bolder;

}

DIV.opername_line

{

}

SPAN.opername

{

    font-size: 10pt;

    font-weight: bolder;

}

DIV.item_line

{

}

SPAN.item_prefix_text

{

    font-size: 9pt;

    font-weight: normal;

}

SPAN.item_barcode

{

    font-size: 10pt;

    font-weight: normal;

}

SPAN.item_summary

{

    font-size: 8pt;

    font-weight: normal;

}



发表时间: 2007-01-03 13:46:58
最后修改时间: 2007-01-03 13:57:40



页 1 / 1
 

在线用户
访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客   访客访客
当前栏目在线用户数 29, 总在线用户数 38