dp2
dp2 copied to clipboard
西文检索点添加以及检索点配置文件分析
在dp2系统中西文检索点的配置在内务->功能->系统维护-系统管理窗->内核,选择西文图书,点击cfgs,其中展开的下级节点中,keys文件节点就是西文检索点的配置文件。
西文检索点配置如下 以西文中的杜威十进制分类法(Dewey Decimal Classification,DC/DDC)为例:
<table name="ddc" id="36" type="ddc,__class">
<convert>
<string style="upper" />
</convert>
<convertquery>
<string style="upper" />
</convertquery>
<caption lang="zh-CN">杜威十进制分类号</caption>
<caption lang="en">DDC Class number</caption>
</table>
<key>
<xpath nstable="usmarc">//marc:record/marc:datafield[@tag='093']/marc:subfield[@code='a']</xpath>
<from>class</from>
<table ref="class" />
</key>
现在有需求如下:需要将西文的丛编项 490 $a原出版信息 534 $c加为检索点,因此可在文件中加入下列内容:
<table name="seriesarea" id="18" type="seriesarea">
<convert>
<string style="upper,stopword,simplify" stopwordTable="title" />
</convert>
<convertquery>
<string style="upper,stopword,simplify" stopwordTable="title" />
</convertquery>
<caption lang="zh-CN">丛编项</caption>
<caption lang="en">series area</caption>
</table>
<key>
<xpath nstable="usmarc">//marc:record/marc:datafield[@tag='490']/marc:subfield[@code='a']</xpath>
<from>publisher</from>
<table ref="seriesarea" />
</key>
<table name="originpubifo" id="19" type="originpubifo">
<convert>
<string style="upper,stopword,simplify" stopwordTable="title" />
</convert>
<convertquery>
<string style="upper,stopword,simplify" stopwordTable="title" />
</convertquery>
<caption lang="zh-CN">原出版信息</caption>
<caption lang="en">originpubifo</caption>
</table>
<key>
<xpath nstable="usmarc">//marc:record/marc:datafield[@tag='534']/marc:subfield[@code='c']</xpath>
<from>publisher</from>
<table ref="seriesarea" />
</key>
每一个检索点的文件是由xml中的 table 元素和 key 元素组合,table 元素的内容将在书目检索窗的查询条件中可以看到 caption 元素中的内容, key 元素中的 xpath 元素详细描述需要将marc中的字段设为检索点的具体内容。