diff --git a/MARCScriptLib/README.md b/MARCScriptLib/README.md new file mode 100644 index 00000000..d0a46946 --- /dev/null +++ b/MARCScriptLib/README.md @@ -0,0 +1,3 @@ +# MARCScriptLib + +Marc转换脚本集锦 diff --git a/MARCScriptLib/select/CheckContainHanzi.cs b/MARCScriptLib/select/CheckContainHanzi.cs new file mode 100644 index 00000000..d44421c5 --- /dev/null +++ b/MARCScriptLib/select/CheckContainHanzi.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Windows.Forms; +using System.IO; +using System.Text; +using System.Xml; + +using dp2Circulation; +using DigitalPlatform.Marc; +using DigitalPlatform.Script; +using DigitalPlatform.Text; + +public class CheckContainHanzi : MarcQueryHost +{ + // 将包含汉字的记录选中 + public override void OnRecord(object sender, StatisEventArgs e) + { + ListViewItem item = (ListViewItem)this.UiItem; + + if (StringUtil.ContainHanzi(this.MarcRecord.Text)) + item.Selected = true; + else + item.Selected = false; + } +} + diff --git a/MARCScriptLib/select/README.md b/MARCScriptLib/select/README.md new file mode 100644 index 00000000..a471ece2 --- /dev/null +++ b/MARCScriptLib/select/README.md @@ -0,0 +1,6 @@ +## CheckContainHanzi.cs 将包含汉字的Marc记录选中 + +一些说明 + +## 第2个cs +