hacking dp2OPAC - DigitalPlatform/dp2 GitHub Wiki
这是一个示范页面,演示了如何从图书馆门户网站检索 dp2OPAC,或者登录到 dp2OPAC。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>首页</title>
<style type="text/css">
div.frame
{
border-style: dotted;
border-color: #cccc00;
border-width: 2px;
margin: 8px;
padding: 8px;
border-radius: 6px;
width: 281px;
float: left;
display: inline;
}
.title
{
font-weight: bold;
}
</style>
</head>
<body>
<div class="frame">
<form action="http://localhost/dp2opac/searchbiblio.aspx" method="GET" name="cnmarcBook">
<table>
<tr>
<td colspan="2" class="title">
最简单检索
</td>
</tr>
<tr>
<td>
检索词
</td>
<td>
<input name="word" type="text"><input type="submit" value="检索">
</td>
</tr>
</table>
<input name="dbname" type="hidden" value="<全部>">
</form>
</div>
<div class="frame">
<form action="http://localhost/dp2opac/searchbiblio.aspx" method="GET" name="cnmarcBook">
<table class="search">
<tr>
<td colspan="2" class="title">
简单检索
</td>
</tr>
<tr>
<td>
检索词:
</td>
<td>
<input name="word" type="text">
</td>
</tr>
<tr>
<td>
匹配方式:
</td>
<td>
<select name="match">
<option value="left">前方一致</option>
<option value="exact">精确一致</option>
<option value="right">后方一致</option>
<option selected="selected" value="middle">中间一致</option>
</select>
</td>
</tr>
<tr>
<td>
数据库名:
</td>
<td>
<select name="dbname">
<option value="<全部>"><全部></option>
<option value="中文图书">中文图书</option>
<option value="英文图书">英文图书</option>
</select>
</td>
</tr>
<tr>
<td>
检索途径:
</td>
<td>
<select name="from">
<option value="<全部>"><全部></option>
<option value="isbn">ISBN</option>
<option value="issn">ISSN</option>
<option value="title">题名</option>
<option value="pinyin_title">题名拼音</option>
<option value="subject">主题词</option>
<option value="class,__class">分类号</option>
<option value="contributor">责任者</option>
<option value="pinyin_contributor">责任者拼音</option>
<option value="publisher">出版发行者</option>
<option value="batchno">批次号</option>
<option value="targetrecpath">目标记录路径</option>
<option value="state">状态</option>
<option value="opertime">操作时间</option>
<option value="">索取号</option>
<option value="">收藏单位</option>
<option value="">索取类号</option>
<option value="publishtime,_time,_freetime">出版时间</option>
<option value="identifier">其它标识号</option>
<option value="recid">__id</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="检索">
</td>
</tr>
</table>
</form>
</div>
<div class="frame">
<form action="http://localhost/dp2opac/login.aspx" method="post" name="login">
<table id="login" class="login">
<tr>
<td colspan="2" class="title">
登录
</td>
</tr>
<tr>
<td>
证条码
</td>
<td>
<input name="username" class="username" type="text">
</td>
</tr>
<tr>
<td>
密 码
</td>
<td>
<input name="password" class="password" type="password" id="password">
</td>
</tr>
<tr>
<td colspan="2" class="loginbutton">
<input type="submit" value="证条码登录">
</td>
</tr>
</table>
<input name="usertype" type="hidden" value="reader" />
<input name="action" type="hidden" value="autologin">
<input name="redirect" type="hidden" value="mymessage.aspx">
</form>
</div>
</body>
</html>