using System; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.IO; using System.Text; using System.Xml; using dp2Catalog; using DigitalPlatform.Marc; using DigitalPlatform.Xml; using DigitalPlatform.Script; public class MyMarcQueryHost : MarcQueryHost { // 新的加拼音字段配置。$9 string PinyinCfgXml = "" + "" + "" + "" + "" + "" + ""; string OldPinyinCfgXml = "" + "" + "" + "" + "" + "" + ""; public override void OnRecord(object sender, StatisEventArgs e) { this.MainForm.RemovePinyin( this.MarcRecord, this.PinyinCfgXml); this.MainForm.RemovePinyin( this.MarcRecord, this.OldPinyinCfgXml); int nRet = this.MainForm.AddPinyin( this.MarcRecord, this.PinyinCfgXml, PinyinStyle.None, "", true); if (nRet == -1) { e.Continue = ContinueType.SkipAll; return; } this.Changed = true; } }