DigitalPlatform / dp2

Integrated Library System / 图书馆集成系统
http://digitalplatform.github.io/dp2
Apache License 2.0
105 stars 54 forks source link

某用户 keys 文件保护 #1157

Open DigitalPlatform opened 1 year ago

DigitalPlatform commented 1 year ago

图书总库 keys

  <key reserved="true">
    <xpath nstable="">//marc:record/marc:datafield[@tag='687']/marc:subfield[@code='a']</xpath>
    <from>shitoutangClass</from>
    <table ref="shitoutangClass" />
  </key>
  <table name="shitoutangClass" id="1005" type="stt,__class" reserved="true">
    <convert>
      <string style="upper" />
    </convert>
    <convertquery>
      <string style="upper" />
    </convertquery>
    <caption lang="zh-CN">石头汤分类号</caption>
    <caption lang="en">Shi tou Tang Class number</caption>
  </table>
  <key reserved="true">
    <xpath nstable="">//marc:record/marc:datafield[@tag='686']/marc:subfield[@code='a']</xpath>
    <from>hnb</from>
    <table ref="hnb" />
  </key>
  <table name="hnb" id="1018" type="hnb,__class" reserved="true">
    <convert>
      <string style="upper" />
    </convert>
    <convertquery>
      <string style="upper" />
    </convertquery>
    <caption lang="zh-CN">红泥巴排架号</caption>
    <caption lang="en">hnb number</caption>
  </table>

外文图书 keys

    <key reserved="true">
        <xpath nstable="usmarc">//marc:record/marc:datafield[@tag='084']/marc:subfield[@code='a']</xpath>
        <from>hnbClass</from>
        <table ref="hnbClass" />
    </key>
    <table name="hnbClass" id="1006" type="hnb,__class" reserved="true">
        <convert>
            <string style="upper" />
        </convert>
        <convertquery>
            <string style="upper" />
        </convertquery>
        <caption lang="zh-CN">红泥巴分类号</caption>
        <caption lang="en">Hong Ni Ba Class number</caption>
    </table>
    <key reserved="true">
        <xpath nstable="usmarc">//marc:record/marc:datafield[@tag='087']/marc:subfield[@code='a']</xpath>
        <from>shitoutangClass</from>
        <table ref="shitoutangClass" />
    </key>
    <table name="shitoutangClass" id="1007" type="stt,__class" reserved="true">
        <convert>
            <string style="upper" />
        </convert>
        <convertquery>
            <string style="upper" />
        </convertquery>
        <caption lang="zh-CN">石头汤分类号</caption>
        <caption lang="en">Shi tou Tang Class number</caption>
    </table>

注: 安装包中的外文图书 keys 配置文件模板也做了修改,把几种分类法的检索点从集中变为独立了。

期刊 keys

同 图书总库 keys

外源库 keys

不用保护

临时编目 keys

同 图书总库 keys

检查要点

注意检查每个(要保护的) key 和 table 元素,都应该有 reserved="true" 属性。 注意检查 convert 或 convertquery 下级的 string 元素的 style 属性值,如果里面包含井号,则还需要同时建立单独的 script 元素,并有 reserved="true" 属性保护。(上面例子中暂没有发现这种情况)